2 * Copyright (C) 2007 The Android Open Source Project
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 /*******************************************************************************
24 * Audio codec header file
28 * Audio codec function
34 *------------------------------------------------------------------------------
40 *******************************************************************************/
42 #ifndef _AUDIO_CODEC_63xx_H
43 #define _AUDIO_CODEC_63xx_H
45 void audckbufEnable(bool enable
);
46 void ClsqEnable(bool enable
);
47 void Topck_Enable(bool enable
);
48 void NvregEnable(bool enable
);
49 void OpenClassAB(void);
50 void OpenAnalogHeadphone(bool bEnable
);
51 void OpenAnalogTrimHardware(bool bEnable
);
52 void SetSdmLevel(unsigned int level
);
53 void setOffsetTrimMux(unsigned int Mux
);
54 void setOffsetTrimBufferGain(unsigned int gain
);
55 void EnableTrimbuffer(bool benable
);
56 void SetHplTrimOffset(int Offset
);
57 void SetHprTrimOffset(int Offset
);
58 void setHpGainZero(void);
59 bool OpenHeadPhoneImpedanceSetting(bool bEnable
);
60 void SetAnalogSuspend(bool bEnable
);
61 void OpenTrimBufferHardware(bool bEnable
);