summaryrefslogtreecommitdiffstats
path: root/firmware/target
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2008-09-30 20:26:25 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2008-09-30 20:26:25 +0000
commit66f5eec8f0e0f533c9ab1798356a656035aa423f (patch)
treeb07aab126805008615b2697b47290cfe5424346e /firmware/target
parente10a5a5ef55b5c3cf4618124614bf72578971673 (diff)
downloadrockbox-66f5eec8f0e0f533c9ab1798356a656035aa423f.tar.gz
rockbox-66f5eec8f0e0f533c9ab1798356a656035aa423f.zip
Fix samplerate setting for mini 1g/2g
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18673 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/pcm-pp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/pcm-pp.c b/firmware/target/arm/pcm-pp.c
index cbc1c17fbb..2f25353fff 100644
--- a/firmware/target/arm/pcm-pp.c
+++ b/firmware/target/arm/pcm-pp.c
@@ -95,7 +95,7 @@ static int sr_ctrl = MROBE100_44100HZ;
void pcm_set_frequency(unsigned int frequency)
{
-#ifdef HAVE_WM8731
+#if defined(HAVE_WM8731) || defined(HAVE_WM8721)
pcm_freq = frequency;
#else
(void)frequency;
@@ -112,7 +112,7 @@ void pcm_apply_settings(void)
audiohw_set_frequency(sr_ctrl);
#endif
-#ifdef HAVE_WM8731
+#if defined(HAVE_WM8731) || defined(HAVE_WM8721)
audiohw_set_sample_rate(pcm_freq);
#endif
pcm_curr_sampr = pcm_freq;