diff options
Diffstat (limited to 'firmware/drivers/audio/wm8975.c')
-rw-r--r-- | firmware/drivers/audio/wm8975.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/drivers/audio/wm8975.c b/firmware/drivers/audio/wm8975.c index aa519e8819..f14890db74 100644 --- a/firmware/drivers/audio/wm8975.c +++ b/firmware/drivers/audio/wm8975.c | |||
@@ -145,7 +145,7 @@ void audiohw_preinit(void) | |||
145 | 145 | ||
146 | wm8975_write(DAPCTRL, wm8975_regs[DAPCTRL] ); | 146 | wm8975_write(DAPCTRL, wm8975_regs[DAPCTRL] ); |
147 | 147 | ||
148 | audiohw_set_sample_rate(WM8975_44100HZ); | 148 | wmcodec_write(SAMPCTRL, WM8975_44100HZ); |
149 | 149 | ||
150 | /* set the volume to -6dB */ | 150 | /* set the volume to -6dB */ |
151 | wmcodec_write(LOUT1VOL, LOUT1VOL_LO1ZC | IPOD_PCM_LEVEL); | 151 | wmcodec_write(LOUT1VOL, LOUT1VOL_LO1ZC | IPOD_PCM_LEVEL); |
@@ -224,9 +224,9 @@ void audiohw_close(void) | |||
224 | } | 224 | } |
225 | 225 | ||
226 | /* Note: Disable output before calling this function */ | 226 | /* Note: Disable output before calling this function */ |
227 | void audiohw_set_sample_rate(int sampling_control) | 227 | void audiohw_set_frequency(int fsel) |
228 | { | 228 | { |
229 | wmcodec_write(SAMPCTRL, sampling_control); | 229 | (void)fsel; |
230 | } | 230 | } |
231 | 231 | ||
232 | #ifdef HAVE_RECORDING | 232 | #ifdef HAVE_RECORDING |