diff options
author | Peter D'Hoye <peter.dhoye@gmail.com> | 2008-05-25 21:19:07 +0000 |
---|---|---|
committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2008-05-25 21:19:07 +0000 |
commit | 825d89fe282a6797cef5ef7266c908d2986334d4 (patch) | |
tree | fb9d61b727ba643abfedf39359bf7ec71a21ee35 /firmware/drivers/audio/tsc2100.c | |
parent | 43d02f66a0ade99a8de3bd76a9d2533b11c7aa41 (diff) | |
download | rockbox-825d89fe282a6797cef5ef7266c908d2986334d4.tar.gz rockbox-825d89fe282a6797cef5ef7266c908d2986334d4.zip |
Accept FS #9021 by James Vasile and apply the fix to the other drivers that have the same issue.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17630 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/audio/tsc2100.c')
-rw-r--r-- | firmware/drivers/audio/tsc2100.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/drivers/audio/tsc2100.c b/firmware/drivers/audio/tsc2100.c index 08306b3823..dfa24cf848 100644 --- a/firmware/drivers/audio/tsc2100.c +++ b/firmware/drivers/audio/tsc2100.c | |||
@@ -35,10 +35,12 @@ const struct sound_settings_info audiohw_settings[] = { | |||
35 | [SOUND_BALANCE] = {"%", 0, 1,-100, 100, 0}, | 35 | [SOUND_BALANCE] = {"%", 0, 1,-100, 100, 0}, |
36 | [SOUND_CHANNELS] = {"", 0, 1, 0, 5, 0}, | 36 | [SOUND_CHANNELS] = {"", 0, 1, 0, 5, 0}, |
37 | [SOUND_STEREO_WIDTH] = {"%", 0, 5, 0, 250, 100}, | 37 | [SOUND_STEREO_WIDTH] = {"%", 0, 5, 0, 250, 100}, |
38 | #ifdef HAVE_RECORDING | ||
38 | [SOUND_MIC_GAIN] = {"dB", 1, 1, 0, 39, 23}, | 39 | [SOUND_MIC_GAIN] = {"dB", 1, 1, 0, 39, 23}, |
39 | [SOUND_LEFT_GAIN] = {"dB", 1, 1, 0, 31, 23}, | 40 | [SOUND_LEFT_GAIN] = {"dB", 1, 1, 0, 31, 23}, |
40 | [SOUND_RIGHT_GAIN] = {"dB", 1, 1, 0, 31, 23}, | 41 | [SOUND_RIGHT_GAIN] = {"dB", 1, 1, 0, 31, 23}, |
41 | #endif | 42 | #endif |
43 | #endif | ||
42 | }; | 44 | }; |
43 | static bool is_muted = false; | 45 | static bool is_muted = false; |
44 | /* convert tenth of dB volume to master volume register value */ | 46 | /* convert tenth of dB volume to master volume register value */ |