blob: f2701a8277e2bfa456a39089e807ca355f17daed
1 | #ifndef __TV_AUDIO_API_H__ |
2 | #define __TV_AUDIO_API_H__ |
3 | |
4 | |
5 | #include "tvsetting/audio_cfg.h" |
6 | #include "audio_alsa.h" |
7 | #include "audio_effect.h" |
8 | #include <audio_amaudio.h> |
9 | #include "CAudioCustomerCtrl.h" |
10 | |
11 | enum CC_AUDIO_SWITCH_STATUS { |
12 | CC_SWITCH_OFF, |
13 | CC_SWITCH_ON, |
14 | }; |
15 | |
16 | enum CC_AMAUDIO_OUT_MODE { |
17 | CC_AMAUDIO_OUT_MODE_DIRECT, |
18 | CC_AMAUDIO_OUT_MODE_INTER_MIX, |
19 | CC_AMAUDIO_OUT_MODE_DIRECT_MIX, |
20 | }; |
21 | |
22 | static const int CC_SPDIF_MODE_PCM = 0; |
23 | static const int CC_SPDIF_MODE_RAW = 1; |
24 | |
25 | static const int CC_MIN_SOUND_VOL = 0; |
26 | static const int CC_MAX_SOUND_VOL = 100; |
27 | static const int CC_DEF_SOUND_VOL = 10; |
28 | static const int CC_MIN_SUPPERBASS_VOL = 0; |
29 | static const int CC_MAX_SUPPERBASS_VOL = 100; |
30 | static const int CC_DEF_SUPPERBASS_VOL = 50; |
31 | |
32 | static const int CC_DEF_BASS_TREBLE_VOL = 50; |
33 | static const int CC_EQ_BASS_IND = 1; |
34 | static const int CC_EQ_TREBLE_IND = 3; |
35 | static const int CC_EQ_DEF_UI_MIN_GAIN = 0; |
36 | static const int CC_EQ_DEF_UI_MAX_GAIN = 100; |
37 | static const int CC_MIN_EQ_GAIN_VAL = -10; |
38 | static const int CC_MAX_EQ_GAIN_VAL = 10; |
39 | |
40 | static const int CC_LUT_BUF_MASTER = 0; |
41 | static const int CC_LUT_BUF_SUPPERBASS = 1; |
42 | static const int CC_LUT_BUF_SIZE = 101; |
43 | static const int CC_NO_LINE_POINTS_MAX_CNT = 101; |
44 | |
45 | |
46 | enum CC_AUD_SOUND_MODE { |
47 | CC_SOUND_MODE_START = 0, |
48 | CC_SOUND_MODE_STD = 0, |
49 | CC_SOUND_MODE_MUSIC, |
50 | CC_SOUND_MODE_NEWS, |
51 | CC_SOUND_MODE_THEATER, |
52 | CC_SOUND_MODE_USER, |
53 | CC_SOUND_MODE_END = CC_SOUND_MODE_USER |
54 | }; |
55 | |
56 | enum CC_AUD_EQ_MODE { |
57 | CC_EQ_MODE_START = 0, |
58 | CC_EQ_MODE_NOMAL = 0, |
59 | CC_EQ_MODE_POP, |
60 | CC_EQ_MODE_JAZZ, |
61 | CC_EQ_MODE_ROCK, |
62 | CC_EQ_MODE_CLASSIC, |
63 | CC_EQ_MODE_DANCE, |
64 | CC_EQ_MODE_PARTY, |
65 | CC_EQ_MODE_BASS, |
66 | CC_EQ_MODE_TREBLE, |
67 | CC_EQ_MODE_CUSTOM, |
68 | CC_EQ_MODE_END = CC_EQ_MODE_CUSTOM |
69 | }; |
70 | |
71 | class CTvAudio { |
72 | public: |
73 | CTvAudio(); |
74 | ~CTvAudio(); |
75 | }; |
76 | #endif //__TV_AUDIO_API_H__ |
77 |