diff options
Diffstat (limited to 'firmware/drivers/audio/imx233-codec.c')
-rw-r--r-- | firmware/drivers/audio/imx233-codec.c | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/firmware/drivers/audio/imx233-codec.c b/firmware/drivers/audio/imx233-codec.c index 20edf005e8..ef4e3ca1d5 100644 --- a/firmware/drivers/audio/imx233-codec.c +++ b/firmware/drivers/audio/imx233-codec.c | |||
@@ -25,30 +25,6 @@ | |||
25 | #include "audioout-imx233.h" | 25 | #include "audioout-imx233.h" |
26 | #include "audioin-imx233.h" | 26 | #include "audioin-imx233.h" |
27 | 27 | ||
28 | const struct sound_settings_info audiohw_settings[] = | ||
29 | { | ||
30 | /* i.MX233 has half dB steps */ | ||
31 | [SOUND_VOLUME] = {"dB", 0, 5, VOLUME_MIN / 10, VOLUME_MAX / 10, -25}, | ||
32 | /* HAVE_SW_TONE_CONTROLS */ | ||
33 | [SOUND_BASS] = {"dB", 0, 1, -24, 24, 0}, | ||
34 | [SOUND_TREBLE] = {"dB", 0, 1, -24, 24, 0}, | ||
35 | [SOUND_BALANCE] = {"%", 0, 1,-100, 100, 0}, | ||
36 | [SOUND_CHANNELS] = {"", 0, 1, 0, 5, 0}, | ||
37 | [SOUND_STEREO_WIDTH] = {"%", 0, 5, 0, 250, 100}, | ||
38 | #ifdef HAVE_RECORDING | ||
39 | [SOUND_LEFT_GAIN] = {"dB", 1, 1, 0, 31, 23}, | ||
40 | [SOUND_RIGHT_GAIN] = {"dB", 1, 1, 0, 31, 23}, | ||
41 | [SOUND_MIC_GAIN] = {"dB", 1, 1, 0, 1, 0}, | ||
42 | #endif | ||
43 | [SOUND_DEPTH_3D] = {"%", 0, 1, 0, 15, 0}, | ||
44 | }; | ||
45 | |||
46 | int tenthdb2master(int tdb) | ||
47 | { | ||
48 | /* Just go from tenth of dB to half to dB */ | ||
49 | return tdb / 5; | ||
50 | } | ||
51 | |||
52 | void audiohw_preinit(void) | 28 | void audiohw_preinit(void) |
53 | { | 29 | { |
54 | imx233_audioout_preinit(); | 30 | imx233_audioout_preinit(); |
@@ -69,7 +45,7 @@ void audiohw_close(void) | |||
69 | 45 | ||
70 | void audiohw_set_headphone_vol(int vol_l, int vol_r) | 46 | void audiohw_set_headphone_vol(int vol_l, int vol_r) |
71 | { | 47 | { |
72 | imx233_audioout_set_hp_vol(vol_l, vol_r); | 48 | imx233_audioout_set_hp_vol(vol_l / 5, vol_r / 5); |
73 | } | 49 | } |
74 | 50 | ||
75 | void audiohw_set_frequency(int fsel) | 51 | void audiohw_set_frequency(int fsel) |