Remove the audiohw_set_nsorder() function since it is not used, only implemented on WM8731 and not wanted/used there.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18829 a1c6a512-1295-4272-9138-f99709370657
diff --git a/firmware/drivers/audio/wm8721.c b/firmware/drivers/audio/wm8721.c
index 1740a48..6c4e12b 100644
--- a/firmware/drivers/audio/wm8721.c
+++ b/firmware/drivers/audio/wm8721.c
@@ -160,12 +160,6 @@
wmcodec_write(PDCTRL, 0xff);
}
-/* Change the order of the noise shaper, 5th order is recommended above 32kHz */
-void audiohw_set_nsorder(int order)
-{
- (void)order;
-}
-
void audiohw_set_sample_rate(int sampling_control)
{
int rate = 0;
diff --git a/firmware/drivers/audio/wm8731.c b/firmware/drivers/audio/wm8731.c
index c4376ff..d96701c 100644
--- a/firmware/drivers/audio/wm8731.c
+++ b/firmware/drivers/audio/wm8731.c
@@ -204,23 +204,6 @@
/* 2) Remove the WM8731 supplies. */
}
-void audiohw_set_nsorder(int order)
-{
- static const unsigned char deemp[4] =
- {
- DAPCTRL_DEEMP_DISABLE,
- DAPCTRL_DEEMP_32KHz,
- DAPCTRL_DEEMP_44KHz,
- DAPCTRL_DEEMP_48KHz
- };
-
- if ((unsigned)order >= ARRAYLEN(deemp))
- order = 0;
-
- wm8731_write(DAPCTRL,
- (wm8731_regs[DAPCTRL] & ~DAPCTRL_DEEMP_MASK) | deemp[order]);
-}
-
void audiohw_set_sample_rate(int sampling_control)
{
int rate = 0;
diff --git a/firmware/drivers/audio/wm8758.c b/firmware/drivers/audio/wm8758.c
index d698049..e9d4b5c 100644
--- a/firmware/drivers/audio/wm8758.c
+++ b/firmware/drivers/audio/wm8758.c
@@ -172,11 +172,6 @@
wmcodec_write(PWRMGMT2, PWRMGMT2_SLEEP);
}
-void audiohw_set_nsorder(int order)
-{
- (void)order;
-}
-
/* Note: Disable output before calling this function */
void audiohw_set_sample_rate(int sampling_control)
{
diff --git a/firmware/drivers/audio/wm8975.c b/firmware/drivers/audio/wm8975.c
index 23ce91f..86e463c 100644
--- a/firmware/drivers/audio/wm8975.c
+++ b/firmware/drivers/audio/wm8975.c
@@ -226,11 +226,6 @@
wmcodec_write(PWRMGMT1, 0x0);
}
-void audiohw_set_nsorder(int order)
-{
- (void)order;
-}
-
/* Note: Disable output before calling this function */
void audiohw_set_sample_rate(int sampling_control)
{
diff --git a/firmware/export/wm8721.h b/firmware/export/wm8721.h
index 3611e4d..8145356 100644
--- a/firmware/export/wm8721.h
+++ b/firmware/export/wm8721.h
@@ -29,7 +29,6 @@
extern int tenthdb2master(int db);
extern void audiohw_set_master_vol(int vol_l, int vol_r);
-extern void audiohw_set_nsorder(int order);
extern void audiohw_set_sample_rate(int sampling_control);
/* Register addresses and bits */
diff --git a/firmware/export/wm8731.h b/firmware/export/wm8731.h
index b215684..a572546 100644
--- a/firmware/export/wm8731.h
+++ b/firmware/export/wm8731.h
@@ -29,7 +29,6 @@
extern int tenthdb2master(int db);
extern void audiohw_set_master_vol(int vol_l, int vol_r);
-extern void audiohw_set_nsorder(int order);
extern void audiohw_set_sample_rate(int sampling_control);
/* Register addresses and bits */
diff --git a/firmware/export/wm8758.h b/firmware/export/wm8758.h
index e7f7906..c094b12 100644
--- a/firmware/export/wm8758.h
+++ b/firmware/export/wm8758.h
@@ -34,7 +34,6 @@
extern void audiohw_set_master_vol(int vol_l, int vol_r);
extern void audiohw_set_lineout_vol(int vol_l, int vol_r);
extern void audiohw_set_mixer_vol(int channel1, int channel2);
-extern void audiohw_set_nsorder(int order);
extern void audiohw_set_sample_rate(int sampling_control);
#define RESET 0x00
diff --git a/firmware/export/wm8975.h b/firmware/export/wm8975.h
index 881e711..e2e4432 100644
--- a/firmware/export/wm8975.h
+++ b/firmware/export/wm8975.h
@@ -32,7 +32,6 @@
extern void audiohw_set_master_vol(int vol_l, int vol_r);
extern void audiohw_set_lineout_vol(int vol_l, int vol_r);
-extern void audiohw_set_nsorder(int order);
extern void audiohw_set_sample_rate(int sampling_control);
/* Register addresses and bits */