diff options
Diffstat (limited to 'firmware/sound.c')
-rw-r--r-- | firmware/sound.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/firmware/sound.c b/firmware/sound.c index d66a93a70d..ca8b79e4d9 100644 --- a/firmware/sound.c +++ b/firmware/sound.c | |||
@@ -200,12 +200,15 @@ static void set_prescaled_volume(void) | |||
200 | int prescale = 0; | 200 | int prescale = 0; |
201 | int l, r; | 201 | int l, r; |
202 | 202 | ||
203 | /* The WM codecs listed don't have suitable prescaler functionality, so we let | 203 | /* The codecs listed use HW tone controls but don't have suitable prescaler |
204 | * the prescaler stay at 0 for these unless SW tone controls are in use */ | 204 | * functionality, so we let the prescaler stay at 0 for these, unless |
205 | * SW tone controls are in use. This is to avoid needing the SW DSP just for | ||
206 | * the prescaling. | ||
207 | */ | ||
205 | #if defined(HAVE_SW_TONE_CONTROLS) || !(defined(HAVE_WM8975) \ | 208 | #if defined(HAVE_SW_TONE_CONTROLS) || !(defined(HAVE_WM8975) \ |
206 | || defined(HAVE_WM8711) || defined(HAVE_WM8721) || defined(HAVE_WM8731) \ | 209 | || defined(HAVE_WM8711) || defined(HAVE_WM8721) || defined(HAVE_WM8731) \ |
207 | || defined(HAVE_WM8751) || defined(HAVE_WM8758) || defined(HAVE_WM8985)) \ | 210 | || defined(HAVE_WM8751) || defined(HAVE_WM8758) || defined(HAVE_WM8985) \ |
208 | || defined(HAVE_TSC2100) || defined(HAVE_UDA1341) | 211 | || defined(HAVE_UDA1341)) |
209 | 212 | ||
210 | prescale = MAX(current_bass, current_treble); | 213 | prescale = MAX(current_bass, current_treble); |
211 | if (prescale < 0) | 214 | if (prescale < 0) |