summaryrefslogtreecommitdiffstats
path: root/firmware/sound.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2011-01-21 08:31:40 +0000
committerMichael Sevakis <jethead71@rockbox.org>2011-01-21 08:31:40 +0000
commit485aecd923b4a984c8697fa6c6b773db338b5ab3 (patch)
tree4f2d534943368b83e8560e48bdce3d69162fb43e /firmware/sound.c
parent863c03f2ae08e8fa431f3d40a167605fae726a15 (diff)
downloadrockbox-485aecd923b4a984c8697fa6c6b773db338b5ab3.tar.gz
rockbox-485aecd923b4a984c8697fa6c6b773db338b5ab3.tar.bz2
rockbox-485aecd923b4a984c8697fa6c6b773db338b5ab3.zip
WM8978: sound.c weirdness strikes again. Prescaler values have to be in centibels.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29100 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/sound.c')
-rw-r--r--firmware/sound.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/sound.c b/firmware/sound.c
index de96360198..4dea2b8a84 100644
--- a/firmware/sound.c
+++ b/firmware/sound.c
@@ -477,10 +477,14 @@ int sound_enum_hw_eq_band_setting(unsigned int band,
static void sound_set_hw_eq_band_gain(unsigned int band, int value)
{
+ int setting;
+
if(!audio_is_initialized)
return;
- current_eq_band_gain[band] = value;
+ setting = sound_enum_hw_eq_band_setting(band, AUDIOHW_EQ_GAIN);
+ current_eq_band_gain[band] = sound_val2phys(setting + 0x10000, value);
+
audiohw_set_eq_band_gain(band, value);
set_prescaled_volume();
}