summaryrefslogtreecommitdiff
path: root/tvapi/libtv/tvsetting/audio_cfg.h (plain)
blob: 3ff82df0fa762ca563027593f0054118e77342d6
1#ifndef __TV_AUDIO_CFG_H__
2#define __TV_AUDIO_CFG_H__
3
4#include "../tvconfig/tvconfig.h"
5#include "../tvutils/tvutils.h"
6
7#define CC_LUT_BUF_MASTER (0)
8#define CC_LUT_BUF_SUPPERBASS (1)
9#define CC_LUT_BUF_HEADSET (2)
10
11#define CC_LUT_BUF_SIZE (101)
12
13#define CC_EQ_PRESET_BUF_SIZE (24)
14
15#define CC_SUPPERBASS_ADD_SIZE (24)
16
17#define CC_NO_LINE_POINTS_MAX_CNT (101)
18
19#define CC_GET_LUT_TV (0)
20#define CC_GET_LUT_AV (1)
21#define CC_GET_LUT_COMP (2)
22#define CC_GET_LUT_HDMI (3)
23#define CC_GET_LUT_VGA (4)
24#define CC_GET_LUT_MPEG (5)
25#define CC_GET_LUT_HDMI_4K2K (6)
26#define CC_GET_LUT_USB_4K2K (7)
27#define CC_GET_TYPE_CNT (8)
28
29#define CC_CFG_NOLINE_CFG_SWITCH_IND (0)
30#define CC_CFG_NOLINE_CFG_IND_IND (1)
31#define CC_CFG_LUT_BUF_CFG_IND (2)
32#define CC_CFG_EQ_CFG_IND (3)
33#define CC_CFG_EQ_PRESET_BUF_IND (4)
34
35#define CC_SRS_SURROUND_GAIN_VAL (50)
36#define CC_SRS_SURROUND_AMP_MASTER_GAIN_VAL (18)
37#define CC_SRS_SURROUND_AMP_SUPPERBASS_GAIN_VAL (21)
38
39#define CC_SRS_TRUBASS_ONLY_GAIN_VAL (30)
40#define CC_SRS_TRUBASS_ONLY_AMP_MASTER_GAIN_VAL (12)
41#define CC_SRS_TRUBASS_ONLY_AMP_SUPPERBASS_GAIN_VAL (15)
42
43#define CC_SRS_DIALOGCLARITY_ONLY_GAIN_VAL (30)
44#define CC_SRS_DIALOGCLARITY_ONLY_AMP_MASTER_GAIN_VAL (12)
45#define CC_SRS_DIALOGCLARITY_ONLY_AMP_SUPPERBASS_GAIN_VAL (21)
46#define CC_SRS_DIALOGCLARITY_ONLY_DEFINITION_GAIN_VAL (20)
47
48#define CC_SRS_TRUBASS_DIALOGCLARITY_TRUBASS_GAIN_VAL (28)
49#define CC_SRS_TRUBASS_DIALOGCLARITY_DIALOGCLARITY_GAIN_VAL (20)
50#define CC_SRS_TRUBASS_DIALOGCLARITY_DEFINITION_GAIN_VAL (5)
51
52#define CC_SRS_TRUBASS_DIALOGCLARITY_AMP_MASTER_GAIN_VAL (12)
53#define CC_SRS_TRUBASS_DIALOGCLARITY_AMP_SUPPERBASS_GAIN_VAL (15)
54
55#define CC_EQ_AMP_MASTER_GAIN_VAL (0)
56#define CC_EQ_AMP_SUPPERBASS_GAIN_VAL (0)
57
58#define CC_DAC_M6C_EXTERNAL_DAC_ON_BOARD (0)
59#define CC_DAC_T866_EXTERNAL_DAC_ON_BOARD (1)
60#define CC_DAC_T866_EXTERNAL_DAC_OFF_BOARD_FBC (2)
61#define CC_DAC_T866_EXTERNAL_DAC_OFF_BOARD_CUSTOMER_LIB (3)
62#define CC_DAC_T866_EXTERNAL_DAC_OFF_BOARD_DIGITAL (4)
63#define CC_DAC_T866_INTERNAL_DAC (5)
64
65#define CC_AUD_RESAMPLE_TYPE_HW (1)
66#define CC_AUD_RESAMPLE_TYPE_SW (2)
67
68extern int *GetAudioAmplifierNoLinePointsIndexBuffer(int lut_buf_type,
69 int get_type);
70extern int *GetAudioAmplifierNoLinePointsDataBuffer(int lut_buf_type,
71 int get_type);
72
73extern int GetAudioAmplifierMasterNoLineSwitchFlag();
74extern int GetAudioAmplifierMasterNoLinePointsCount();
75extern int *GetAudioAmplifierMasterNoLinePointsDataBuffer(int get_type);
76extern int *GetAudioAmplifierMasterNoLinePointsIndexBuffer(int get_type);
77extern int *GetAudioAmplifierMasterNoLinePointsDefIndexBuffer();
78extern int *GetAudioAmplifierMasterNoLinePointsDefDataBuffer(int buf_type);
79
80extern int GetAudioAmplifierSupperBassNoLineSwitchFlag();
81extern int GetAudioAmplifierSupperBassNoLinePointsCount();
82extern int *GetAudioAmplifierSupperBassNoLinePointsDataBuffer(int get_type);
83extern int *GetAudioAmplifierSupperBassNoLinePointsIndexBuffer(int get_type);
84extern int *GetAudioAmplifierSupperBassNoLinePointsDefIndexBuffer();
85extern int *GetAudioAmplifierSupperBassNoLinePointsDefDataBuffer();
86
87extern int GetAudioAmplifierBalanceExchangeCFG();
88
89extern int GetAudioTrebleBassType();
90extern int *GetAudioAmplifierNoLinePointsBuffer(int get_type);
91extern int GetAudioMainVolLutBufNameModifyFromUbootenv();
92extern int GetAudioMainVolLutBufNameModifyUbootenvCFG();
93extern int GetAudioMainVolLutBufNameModifyEnableCFG();
94extern int GetAudioMainVolLutBufNameCFG(int get_type, char name_buf[]);
95extern int *GetAudioAmplifierMasterVolumeLUTBufferPtr(int get_type,
96 int audio_std);
97extern int GetAudioSupperBassVolLutBufNameModifyEnableCFG();
98extern int GetAudioSupperBassVolLutBufNameCFG(int get_type, char name_buf[]);
99extern int *GetAudioAmplifierSupperBassVolumeLUTBufferPtr(int get_type,
100 int audio_std);
101extern int *GetAudioEQPresetBufferPtr();
102extern int GetAudioDVISupportEnable();
103extern int GetTvAudioCardID(char tv_card_id_buf[]);
104extern int GetTvAudioCardName(char tv_card_name_buf[]);
105extern int GetTvAudioCardNeedSet();
106extern int GetAudioSRSModuleDisableCFG();
107extern int GetAudioSRSSourroundDisableCFG();
108extern int GetAudioSRSTrubassDisableCFG();
109extern int GetAudioSRSDialogClarityDisableCFG();
110extern int GetAudioSRSSourroundGainCfg();
111extern int GetAudioSRSSourroundAmplifierMasterGainCfg();
112extern int GetAudioSRSSourroundAmplifierSupperBassGainCfg();
113extern int GetAudioSRSTrubassOnlyGainCfg();
114extern int GetAudioSRSTrubassOnlyAmplifierMasterGainCfg();
115extern int GetAudioSRSTrubassOnlyAmplifierSupperBassGainCfg();
116extern int GetAudioSRSDialogClarityOnlyGainCfg();
117extern int GetAudioSRSDialogClarityOnlyAmplifierMasterGainCfg();
118extern int GetAudioSRSDialogClarityOnlyAmplifierSupperBassGainCfg();
119extern int GetAudioSRSDialogClarityOnlyDefinitionGainCfg();
120extern int GetAudioSRSTrubassAndDialogClarityTrubassGainCfg();
121extern int GetAudioSRSTrubassAndDialogClarityDialogClarityGainCfg();
122extern int GetAudioSRSTrubassAndDialogClarityDefinitionGainCfg();
123extern int GetAudioSRSTrubassAndDialogClarityAmplifierMasterGainCfg();
124extern int GetAudioSRSTrubassAndDialogClarityAmplifierSupperBassGainCfg();
125extern int GetAudioSRSSupperBassTrubassSpeakerSizeCfg(int get_flag);
126extern int GetAudioEQAmplifierMasterAddGainCfg();
127extern int GetAudioEQAmplifierSupperBassAddGainCfg();
128extern int GetAudioEqModuleDisableCFG();
129extern int GetAudioEqUsingAndroidCFG();
130extern int GetAudioEQGainRangeCFG(int *min_val, int *max_val);
131extern int GetAudioEQUIGainRangeCFG(int *min_val, int *max_val);
132
133extern int GetAudioDumpDataEnableFlagCfg();
134extern int GetAudioKeyMuteCfg();
135extern int GetAudioAVOutInitMuteStatusCFG();
136extern int GetAudioSupperBassModuleDisableCFG();
137extern int GetAudioSupperBassSwitchDisableCFG();
138extern int GetAudioSrcInputTVLineInVol(int *l_vol, int *r_vol);
139extern int GetAudioSrcInputAVLineInVol(int *l_vol, int *r_vol);
140extern int GetAudioSrcInputCOMPLineInVol(int *l_vol, int *r_vol);
141extern int GetAudioSrcInputHDMILineInVol(int *l_vol, int *r_vol);
142extern int GetAudioSrcInputVGALineInVol(int *l_vol, int *r_vol);
143extern int GetAudioSrcInputMPEGLineInVol(int *l_vol, int *r_vol);
144extern int GetAudioSrcInputTVLineOutVol(int *l_vol, int *r_vol);
145extern int GetAudioSrcInputAVLineOutVol(int *l_vol, int *r_vol);
146extern int GetAudioSrcInputCOMPLineOutVol(int *l_vol, int *r_vol);
147extern int GetAudioSrcInputHDMILineOutVol(int *l_vol, int *r_vol);
148extern int GetAudioSrcInputVGALineOutVol(int *l_vol, int *r_vol);
149extern int GetAudioSrcInputMPEGLineOutVol(int *l_vol, int *r_vol);
150extern int GetAudioWallEffectTypeCfg();
151extern int GetAudioMainVolumeLutBufTVCompensation();
152extern int GetAudioMainVolumeLutBufAVCompensation();
153extern int GetAudioMainVolumeLutBufCOMPCompensation();
154extern int GetAudioMainVolumeLutBufHDMICompensation();
155extern int GetAudioMainVolumeLutBufVGACompensation();
156extern int GetAudioMainVolumeLutBufMPEGCompensation();
157extern int GetAudioMainVolumeLutBufDTVCompensation();
158extern int GetAudioNoiseGateEnableCFG();
159extern int GetAudioNoiseGateUpperBoundCFG();
160extern int GetAudioNoiseGateThresholdCFG();
161extern int GetDisableResetSystemFrameSize();
162extern int GetDisableReset_System_framesizeCFG();
163
164extern int GetAudioArchitectureTypeCFG();
165extern int GetAudioResampleTypeCFG();
166extern int GetamAudioDisableFlagCFG();
167extern int GetAudioFirstInitSetTypeCFG();
168
169#endif //__TV_AUDIO_CFG_H__
170