blob: 59a418aececdc05a33b5d708ba3bbf3e01cfb6e0 [file] [log] [blame]
/*
* All Rights Reserved
*
* MARVELL CONFIDENTIAL
* Copyright 2012 Marvell International Ltd All Rights Reserved.
* The source code contained or described herein and all documents related to
* the source code ("Material") are owned by Marvell International Ltd or its
* suppliers or licensors. Title to the Material remains with Marvell International Ltd
* or its suppliers and licensors. The Material contains trade secrets and
* proprietary and confidential information of Marvell or its suppliers and
* licensors. The Material is protected by worldwide copyright and trade secret
* laws and treaty provisions. No part of the Material may be used, copied,
* reproduced, modified, published, uploaded, posted, transmitted, distributed,
* or disclosed in any way without Marvell's prior express written permission.
*
* No license under any patent, copyright, trade secret or other intellectual
* property right is granted to or conferred upon you by disclosure or delivery
* of the Materials, either expressly, by implication, inducement, estoppel or
* otherwise. Any license under such intellectual property rights must be
* express and approved by Marvell in writing.
*
*/
#ifndef __H_ACM__
#define __H_ACM__
typedef enum {
ACM_RC_OK,
ACM_RC_INVALID_PATH,
ACM_RC_PATH_CONFIG_NOT_EXIST,
ACM_RC_PATH_ALREADY_ENABLED,
ACM_RC_PATH_ALREADY_DISABLED,
ACM_RC_PATH_NOT_ENABLED,
ACM_RC_NO_MUTE_CHANGE_NEEDED,
ACM_RC_INVALID_VOLUME_CHANGE,
ACM_RC_INVALID_PARAMETER,
ACM_RC_FORCE_DELAY,
ACM_RC_FAIL_RELOADCALIBRATIONDATA,
ACM_RC_OK_HIFI_MATCHED,
ACM_RC_OK_VOICE_MATCHED
} ACM_ReturnCode;
void ACMInit(void);
void ACMDeInit(void);
ACM_ReturnCode ACMAudioPathEnable(const char * path, unsigned int value);
ACM_ReturnCode ACMAudioPathDisable(const char * path);
ACM_ReturnCode ACMAudioPathSwitch (const char * path_Rx, const char * path_Tx, unsigned int value);
ACM_ReturnCode ACMAudioPathMute(const char * path, unsigned int value);
ACM_ReturnCode ACMAudioPathVolumeSet(const char * path, unsigned int value);
ACM_ReturnCode ACMGetParameter(unsigned int param_id, void *param, unsigned int *size);
ACM_ReturnCode ACMSetParameter(unsigned int param_id, void *param, unsigned int size);
ACM_ReturnCode ACMGetPathStatus(char * buff, unsigned int MaxSize);
#endif