summaryrefslogtreecommitdiff
path: root/firmware/drivers/audio/wm8731l.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/audio/wm8731l.c')
-rw-r--r--firmware/drivers/audio/wm8731l.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/firmware/drivers/audio/wm8731l.c b/firmware/drivers/audio/wm8731l.c
index ffed5c9347..dcf7c4eca0 100644
--- a/firmware/drivers/audio/wm8731l.c
+++ b/firmware/drivers/audio/wm8731l.c
@@ -37,6 +37,19 @@
37/* use zero crossing to reduce clicks during volume changes */ 37/* use zero crossing to reduce clicks during volume changes */
38#define VOLUME_ZC_WAIT (1<<7) 38#define VOLUME_ZC_WAIT (1<<7)
39 39
40const struct sound_settings_info audiohw_settings[] = {
41 [SOUND_VOLUME] = {"dB", 0, 1, -74, 6, -25},
42 /* HAVE_SW_TONE_CONTROLS */
43 [SOUND_BASS] = {"dB", 0, 1, -24, 24, 0},
44 [SOUND_TREBLE] = {"dB", 0, 1, -24, 24, 0},
45 [SOUND_BALANCE] = {"%", 0, 1,-100, 100, 0},
46 [SOUND_CHANNELS] = {"", 0, 1, 0, 5, 0},
47 [SOUND_STEREO_WIDTH] = {"%", 0, 1, 0, 255, 100},
48 [SOUND_LEFT_GAIN] = {"dB", 1, 1,-128, 96, 0},
49 [SOUND_RIGHT_GAIN] = {"dB", 1, 1,-128, 96, 0},
50 [SOUND_MIC_GAIN] = {"dB", 1, 1,-128, 108, 16},
51};
52
40/* convert tenth of dB volume (-730..60) to master volume register value */ 53/* convert tenth of dB volume (-730..60) to master volume register value */
41int tenthdb2master(int db) 54int tenthdb2master(int db)
42{ 55{