From e69d567d9ebf7d236ff9663b11ac396cc71dcd75 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Fri, 12 Dec 2008 11:01:07 +0000 Subject: Bring consistency to pcm implementation and samplerate handling. Less low-level duplication. A small test_sampr fix so it works on coldfire again. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19400 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/audio/wm8985.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'firmware/drivers/audio/wm8985.c') diff --git a/firmware/drivers/audio/wm8985.c b/firmware/drivers/audio/wm8985.c index 0467e3718a..f7b2e510ae 100644 --- a/firmware/drivers/audio/wm8985.c +++ b/firmware/drivers/audio/wm8985.c @@ -235,12 +235,12 @@ void audiohw_close(void) } /* Note: Disable output before calling this function */ -void audiohw_set_sample_rate(int sampling_control) +void audiohw_set_sample_rate(int fsel) { /* Currently the WM8985 acts as slave to the SoC I2S controller, so no setup is needed here. This seems to be in contrast to every other WM driver in Rockbox, so this may need to change in the future. */ - (void)sampling_control; + (void)fsel; } #ifdef HAVE_RECORDING @@ -261,7 +261,7 @@ void audiohw_enable_recording(bool source_mic) /* The iPod can handle multiple frequencies, but fix at 44.1KHz for now */ - audiohw_set_sample_rate(WM8985_44100HZ); + audiohw_set_frequency(HW_FREQ_DEFAULT); wmcodec_write(INCTRL,0x44); /* Connect L2 and R2 inputs */ -- cgit v1.2.3