diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2008-12-12 11:01:07 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2008-12-12 11:01:07 +0000 |
commit | e69d567d9ebf7d236ff9663b11ac396cc71dcd75 (patch) | |
tree | 093b9d1bc979d79be1fcd0daac1d8daf8ac55503 /firmware/drivers/audio/wm8985.c | |
parent | 0ad97d13fc52b28de566dc0ddaf7245583eec2cc (diff) | |
download | rockbox-e69d567d9ebf7d236ff9663b11ac396cc71dcd75.tar.gz rockbox-e69d567d9ebf7d236ff9663b11ac396cc71dcd75.zip |
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
Diffstat (limited to 'firmware/drivers/audio/wm8985.c')
-rw-r--r-- | firmware/drivers/audio/wm8985.c | 6 |
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 */ |
238 | void audiohw_set_sample_rate(int sampling_control) | 238 | void 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 | ||