import PULS_20160108
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / sound / soc / mediatek / mt_soc_audio_v3 / mt_soc_codec_63xx.h
1 /*
2 * Copyright (C) 2007 The Android Open Source Project
3 *
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
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
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.
15 */
16 /*******************************************************************************
17 *
18 * Filename:
19 * ---------
20 * mt_sco_codec_63xx.h
21 *
22 * Project:
23 * --------
24 * Audio codec header file
25 *
26 * Description:
27 * ------------
28 * Audio codec function
29 *
30 * Author:
31 * -------
32 * Chipeng Chang
33 *
34 *------------------------------------------------------------------------------
35 * $Revision: #1 $
36 * $Modtime:$
37 * $Log:$
38 *
39 *
40 *******************************************************************************/
41
42 #ifndef _AUDIO_CODEC_63xx_H
43 #define _AUDIO_CODEC_63xx_H
44
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);
62
63 #endif
64