summaryrefslogtreecommitdiff
path: root/firmware/drivers/audio/wm8731.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/audio/wm8731.c')
-rw-r--r--firmware/drivers/audio/wm8731.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/firmware/drivers/audio/wm8731.c b/firmware/drivers/audio/wm8731.c
index c4376ff34a..d96701ca9d 100644
--- a/firmware/drivers/audio/wm8731.c
+++ b/firmware/drivers/audio/wm8731.c
@@ -204,23 +204,6 @@ void audiohw_close(void)
204 /* 2) Remove the WM8731 supplies. */ 204 /* 2) Remove the WM8731 supplies. */
205} 205}
206 206
207void audiohw_set_nsorder(int order)
208{
209 static const unsigned char deemp[4] =
210 {
211 DAPCTRL_DEEMP_DISABLE,
212 DAPCTRL_DEEMP_32KHz,
213 DAPCTRL_DEEMP_44KHz,
214 DAPCTRL_DEEMP_48KHz
215 };
216
217 if ((unsigned)order >= ARRAYLEN(deemp))
218 order = 0;
219
220 wm8731_write(DAPCTRL,
221 (wm8731_regs[DAPCTRL] & ~DAPCTRL_DEEMP_MASK) | deemp[order]);
222}
223
224void audiohw_set_sample_rate(int sampling_control) 207void audiohw_set_sample_rate(int sampling_control)
225{ 208{
226 int rate = 0; 209 int rate = 0;