Fix samplerate setting for mini 1g/2g

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18673 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Peter D'Hoye 2008-09-30 20:26:25 +00:00
parent e10a5a5ef5
commit 66f5eec8f0

View file

@ -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;