diff options
Diffstat (limited to 'firmware/sound.c')
-rw-r--r-- | firmware/sound.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/firmware/sound.c b/firmware/sound.c index 8282decbbe..5c6a821d48 100644 --- a/firmware/sound.c +++ b/firmware/sound.c | |||
@@ -264,12 +264,10 @@ static void set_prescaled_volume(void) | |||
264 | prescale = VOLUME_MAX - current_volume; | 264 | prescale = VOLUME_MAX - current_volume; |
265 | #endif | 265 | #endif |
266 | 266 | ||
267 | #if defined(HAVE_SW_TONE_CONTROLS) | 267 | #if defined(AUDIOHW_HAVE_PRESCALER) |
268 | audiohw_set_prescaler(prescale); | ||
269 | #else | ||
268 | dsp_callback(DSP_CALLBACK_SET_PRESCALE, prescale); | 270 | dsp_callback(DSP_CALLBACK_SET_PRESCALE, prescale); |
269 | #elif CONFIG_CODEC == MAS3507D | ||
270 | mas_writereg(MAS_REG_KPRESCALE, prescale_table[prescale/10]); | ||
271 | #elif defined(HAVE_UDA1380) | ||
272 | audiohw_set_mixer_vol(tenthdb2mixer(-prescale), tenthdb2mixer(-prescale)); | ||
273 | #endif | 271 | #endif |
274 | 272 | ||
275 | if (current_volume == VOLUME_MIN) | 273 | if (current_volume == VOLUME_MIN) |