summaryrefslogtreecommitdiff
path: root/firmware/drivers/audio/wm8985.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/audio/wm8985.c')
-rw-r--r--firmware/drivers/audio/wm8985.c6
1 files changed, 3 insertions, 3 deletions
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)
235} 235}
236 236
237/* Note: Disable output before calling this function */ 237/* Note: Disable output before calling this function */
238void audiohw_set_sample_rate(int sampling_control) 238void audiohw_set_sample_rate(int fsel)
239{ 239{
240 /* Currently the WM8985 acts as slave to the SoC I2S controller, so no 240 /* Currently the WM8985 acts as slave to the SoC I2S controller, so no
241 setup is needed here. This seems to be in contrast to every other WM 241 setup is needed here. This seems to be in contrast to every other WM
242 driver in Rockbox, so this may need to change in the future. */ 242 driver in Rockbox, so this may need to change in the future. */
243 (void)sampling_control; 243 (void)fsel;
244} 244}
245 245
246#ifdef HAVE_RECORDING 246#ifdef HAVE_RECORDING
@@ -261,7 +261,7 @@ void audiohw_enable_recording(bool source_mic)
261 261
262 /* The iPod can handle multiple frequencies, but fix at 44.1KHz 262 /* The iPod can handle multiple frequencies, but fix at 44.1KHz
263 for now */ 263 for now */
264 audiohw_set_sample_rate(WM8985_44100HZ); 264 audiohw_set_frequency(HW_FREQ_DEFAULT);
265 265
266 wmcodec_write(INCTRL,0x44); /* Connect L2 and R2 inputs */ 266 wmcodec_write(INCTRL,0x44); /* Connect L2 and R2 inputs */
267 267