diff options
Diffstat (limited to 'firmware/drivers/audio/tlv320.c')
-rw-r--r-- | firmware/drivers/audio/tlv320.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/firmware/drivers/audio/tlv320.c b/firmware/drivers/audio/tlv320.c index 90587fc23a..95945883bf 100644 --- a/firmware/drivers/audio/tlv320.c +++ b/firmware/drivers/audio/tlv320.c | |||
@@ -24,6 +24,19 @@ | |||
24 | #include "i2c-coldfire.h" | 24 | #include "i2c-coldfire.h" |
25 | #include "tlv320.h" | 25 | #include "tlv320.h" |
26 | 26 | ||
27 | const struct sound_settings_info audiohw_settings[] = { | ||
28 | [SOUND_VOLUME] = {"dB", 0, 1, -73, 6, -20}, | ||
29 | /* HAVE_SW_TONE_CONTROLS */ | ||
30 | [SOUND_BASS] = {"dB", 0, 1, -24, 24, 0}, | ||
31 | [SOUND_TREBLE] = {"dB", 0, 1, -24, 24, 0}, | ||
32 | [SOUND_BALANCE] = {"%", 0, 1,-100, 100, 0}, | ||
33 | [SOUND_CHANNELS] = {"", 0, 1, 0, 5, 0}, | ||
34 | [SOUND_STEREO_WIDTH] = {"%", 0, 1, 0, 255, 100}, | ||
35 | [SOUND_LEFT_GAIN] = {"dB", 1, 1, 0, 31, 23}, | ||
36 | [SOUND_RIGHT_GAIN] = {"dB", 1, 1, 0, 31, 23}, | ||
37 | [SOUND_MIC_GAIN] = {"dB", 1, 1, 0, 1, 1}, | ||
38 | }; | ||
39 | |||
27 | /* convert tenth of dB volume (-840..0) to master volume register value */ | 40 | /* convert tenth of dB volume (-840..0) to master volume register value */ |
28 | int tenthdb2master(int db) | 41 | int tenthdb2master(int db) |
29 | { | 42 | { |