summaryrefslogtreecommitdiffstats
path: root/firmware/sound.c
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2011-03-14 23:06:33 +0000
committerMarcin Bukat <marcin.bukat@gmail.com>2011-03-14 23:06:33 +0000
commitae68278c8d3c253b2417439b0176f97476f8caa4 (patch)
treee77982e35bc3d4e5124295d7f4e6f8608dd96392 /firmware/sound.c
parent9c41252d771e8b1d114ca023aaa837c99782a3c3 (diff)
downloadrockbox-ae68278c8d3c253b2417439b0176f97476f8caa4.tar.gz
rockbox-ae68278c8d3c253b2417439b0176f97476f8caa4.tar.bz2
rockbox-ae68278c8d3c253b2417439b0176f97476f8caa4.zip
WM8750/51 driver:
1) Set prescaler correctly when 3d enhancement in use. 2) Implement sound_val2phys so gains in recording screen are correct. 3) Minor cleanups. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29588 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/sound.c')
-rw-r--r--firmware/sound.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/sound.c b/firmware/sound.c
index efdcb19987..658a732a15 100644
--- a/firmware/sound.c
+++ b/firmware/sound.c
@@ -669,6 +669,7 @@ void sound_set(int setting, int value)
&& !defined(HAVE_WM8758) && !defined(HAVE_TSC2100) \
&& !defined (HAVE_WM8711) && !defined (HAVE_WM8721) \
&& !defined (HAVE_WM8731) && !defined (HAVE_WM8978) \
+ && !defined (HAVE_WM8750) && !defined (HAVE_WM8751) \
&& !defined(HAVE_AK4537)) || (CONFIG_PLATFORM & PLATFORM_HOSTED)
int sound_val2phys(int setting, int value)
{
@@ -748,7 +749,7 @@ int sound_val2phys(int setting, int value)
}
return result;
-#elif defined(HAVE_WM8978)
+#elif defined(HAVE_WM8978) || defined(HAVE_WM8750) || defined(HAVE_WM8751)
int result;
switch (setting)