summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/drivers/audio/wm8721.c6
-rw-r--r--firmware/drivers/audio/wm8731.c17
-rw-r--r--firmware/drivers/audio/wm8758.c5
-rw-r--r--firmware/drivers/audio/wm8975.c5
-rw-r--r--firmware/export/wm8721.h1
-rw-r--r--firmware/export/wm8731.h1
-rw-r--r--firmware/export/wm8758.h1
-rw-r--r--firmware/export/wm8975.h1
8 files changed, 0 insertions, 37 deletions
diff --git a/firmware/drivers/audio/wm8721.c b/firmware/drivers/audio/wm8721.c
index 1740a48d18..6c4e12b9dc 100644
--- a/firmware/drivers/audio/wm8721.c
+++ b/firmware/drivers/audio/wm8721.c
@@ -160,12 +160,6 @@ void audiohw_close(void)
160 wmcodec_write(PDCTRL, 0xff); 160 wmcodec_write(PDCTRL, 0xff);
161} 161}
162 162
163/* Change the order of the noise shaper, 5th order is recommended above 32kHz */
164void audiohw_set_nsorder(int order)
165{
166 (void)order;
167}
168
169void audiohw_set_sample_rate(int sampling_control) 163void audiohw_set_sample_rate(int sampling_control)
170{ 164{
171 int rate = 0; 165 int rate = 0;
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;
diff --git a/firmware/drivers/audio/wm8758.c b/firmware/drivers/audio/wm8758.c
index d698049a8b..e9d4b5c5c7 100644
--- a/firmware/drivers/audio/wm8758.c
+++ b/firmware/drivers/audio/wm8758.c
@@ -172,11 +172,6 @@ void audiohw_close(void)
172 wmcodec_write(PWRMGMT2, PWRMGMT2_SLEEP); 172 wmcodec_write(PWRMGMT2, PWRMGMT2_SLEEP);
173} 173}
174 174
175void audiohw_set_nsorder(int order)
176{
177 (void)order;
178}
179
180/* Note: Disable output before calling this function */ 175/* Note: Disable output before calling this function */
181void audiohw_set_sample_rate(int sampling_control) 176void audiohw_set_sample_rate(int sampling_control)
182{ 177{
diff --git a/firmware/drivers/audio/wm8975.c b/firmware/drivers/audio/wm8975.c
index 23ce91fb5b..86e463cdff 100644
--- a/firmware/drivers/audio/wm8975.c
+++ b/firmware/drivers/audio/wm8975.c
@@ -226,11 +226,6 @@ void audiohw_close(void)
226 wmcodec_write(PWRMGMT1, 0x0); 226 wmcodec_write(PWRMGMT1, 0x0);
227} 227}
228 228
229void audiohw_set_nsorder(int order)
230{
231 (void)order;
232}
233
234/* Note: Disable output before calling this function */ 229/* Note: Disable output before calling this function */
235void audiohw_set_sample_rate(int sampling_control) 230void audiohw_set_sample_rate(int sampling_control)
236{ 231{
diff --git a/firmware/export/wm8721.h b/firmware/export/wm8721.h
index 3611e4d6ee..814535621a 100644
--- a/firmware/export/wm8721.h
+++ b/firmware/export/wm8721.h
@@ -29,7 +29,6 @@
29extern int tenthdb2master(int db); 29extern int tenthdb2master(int db);
30 30
31extern void audiohw_set_master_vol(int vol_l, int vol_r); 31extern void audiohw_set_master_vol(int vol_l, int vol_r);
32extern void audiohw_set_nsorder(int order);
33extern void audiohw_set_sample_rate(int sampling_control); 32extern void audiohw_set_sample_rate(int sampling_control);
34 33
35/* Register addresses and bits */ 34/* Register addresses and bits */
diff --git a/firmware/export/wm8731.h b/firmware/export/wm8731.h
index b21568406d..a572546e95 100644
--- a/firmware/export/wm8731.h
+++ b/firmware/export/wm8731.h
@@ -29,7 +29,6 @@
29extern int tenthdb2master(int db); 29extern int tenthdb2master(int db);
30 30
31extern void audiohw_set_master_vol(int vol_l, int vol_r); 31extern void audiohw_set_master_vol(int vol_l, int vol_r);
32extern void audiohw_set_nsorder(int order);
33extern void audiohw_set_sample_rate(int sampling_control); 32extern void audiohw_set_sample_rate(int sampling_control);
34 33
35/* Register addresses and bits */ 34/* Register addresses and bits */
diff --git a/firmware/export/wm8758.h b/firmware/export/wm8758.h
index e7f7906651..c094b1296a 100644
--- a/firmware/export/wm8758.h
+++ b/firmware/export/wm8758.h
@@ -34,7 +34,6 @@ extern int tenthdb2mixer(int db);
34extern void audiohw_set_master_vol(int vol_l, int vol_r); 34extern void audiohw_set_master_vol(int vol_l, int vol_r);
35extern void audiohw_set_lineout_vol(int vol_l, int vol_r); 35extern void audiohw_set_lineout_vol(int vol_l, int vol_r);
36extern void audiohw_set_mixer_vol(int channel1, int channel2); 36extern void audiohw_set_mixer_vol(int channel1, int channel2);
37extern void audiohw_set_nsorder(int order);
38extern void audiohw_set_sample_rate(int sampling_control); 37extern void audiohw_set_sample_rate(int sampling_control);
39 38
40#define RESET 0x00 39#define RESET 0x00
diff --git a/firmware/export/wm8975.h b/firmware/export/wm8975.h
index 881e7110bd..e2e443213a 100644
--- a/firmware/export/wm8975.h
+++ b/firmware/export/wm8975.h
@@ -32,7 +32,6 @@ extern int tenthdb2master(int db);
32 32
33extern void audiohw_set_master_vol(int vol_l, int vol_r); 33extern void audiohw_set_master_vol(int vol_l, int vol_r);
34extern void audiohw_set_lineout_vol(int vol_l, int vol_r); 34extern void audiohw_set_lineout_vol(int vol_l, int vol_r);
35extern void audiohw_set_nsorder(int order);
36extern void audiohw_set_sample_rate(int sampling_control); 35extern void audiohw_set_sample_rate(int sampling_control);
37 36
38/* Register addresses and bits */ 37/* Register addresses and bits */