1
0
Fork 0
forked from len0rd/rockbox

Fix FS#12859 - Bass/Treble not doing anything in new builds

Just one more SNAFU after redoing sound.c. Software bass/treble controls
in the DSP expect .1 dB gain increments but the gains were being set as
1 dB increments because that's what the AUDIOHW_SETTING specifies. Just
x10 the gains given to audiohw_set_bass/treble.

Change-Id: Id5296f93908ec0036a5605d3a60a2cb5eec91bb5
This commit is contained in:
Michael Sevakis 2013-05-04 22:46:18 -04:00
parent 736c3780f1
commit fd00d3cf48

View file

@ -47,12 +47,12 @@ void audiohw_set_stereo_width(int value)
#ifdef HAVE_SW_TONE_CONTROLS #ifdef HAVE_SW_TONE_CONTROLS
void audiohw_set_bass(int value) void audiohw_set_bass(int value)
{ {
callback(DSP_CALLBACK_SET_BASS, value); callback(DSP_CALLBACK_SET_BASS, value*10);
} }
void audiohw_set_treble(int value) void audiohw_set_treble(int value)
{ {
callback(DSP_CALLBACK_SET_TREBLE, value); callback(DSP_CALLBACK_SET_TREBLE, value*10);
} }
#endif /* HAVE_SW_TONE_CONTROLS */ #endif /* HAVE_SW_TONE_CONTROLS */