From fd00d3cf4815e8a5bd5ec3df405e449b2bd0083a Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sat, 4 May 2013 22:46:18 -0400 Subject: [PATCH] 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 --- firmware/drivers/audio/audiohw-swcodec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/drivers/audio/audiohw-swcodec.c b/firmware/drivers/audio/audiohw-swcodec.c index 45b21183ad..9cfc2ce413 100644 --- a/firmware/drivers/audio/audiohw-swcodec.c +++ b/firmware/drivers/audio/audiohw-swcodec.c @@ -47,12 +47,12 @@ void audiohw_set_stereo_width(int value) #ifdef HAVE_SW_TONE_CONTROLS 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) { - callback(DSP_CALLBACK_SET_TREBLE, value); + callback(DSP_CALLBACK_SET_TREBLE, value*10); } #endif /* HAVE_SW_TONE_CONTROLS */