summaryrefslogtreecommitdiff
path: root/firmware/sound.c
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2008-05-14 21:35:19 +0000
committerChristian Gmeiner <christian.gmeiner@gmail.com>2008-05-14 21:35:19 +0000
commit05e8488ad8f3ff849ab63f2273e44132c64fbfcd (patch)
tree334b360767aecc3050d1d7b0fd80f51e47d893d7 /firmware/sound.c
parent955d889a15e6d61e9cbd9b2f35af48ec7b6f3bac (diff)
downloadrockbox-05e8488ad8f3ff849ab63f2273e44132c64fbfcd.tar.gz
rockbox-05e8488ad8f3ff849ab63f2273e44132c64fbfcd.zip
Introduce PRESCALER_CAP and move some driver specific code to the correct place.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17516 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/sound.c')
-rw-r--r--firmware/sound.c8
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)