1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Christian Gmeiner 2008-05-14 21:35:19 +00:00
parent 955d889a15
commit 05e8488ad8
6 changed files with 32 additions and 7 deletions

View file

@ -264,12 +264,10 @@ static void set_prescaled_volume(void)
prescale = VOLUME_MAX - current_volume;
#endif
#if defined(HAVE_SW_TONE_CONTROLS)
#if defined(AUDIOHW_HAVE_PRESCALER)
audiohw_set_prescaler(prescale);
#else
dsp_callback(DSP_CALLBACK_SET_PRESCALE, prescale);
#elif CONFIG_CODEC == MAS3507D
mas_writereg(MAS_REG_KPRESCALE, prescale_table[prescale/10]);
#elif defined(HAVE_UDA1380)
audiohw_set_mixer_vol(tenthdb2mixer(-prescale), tenthdb2mixer(-prescale));
#endif
if (current_volume == VOLUME_MIN)