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) 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 c4376ff34a..d96701ca9d 100644 --- a/firmware/drivers/audio/wm8731.c +++ b/firmware/drivers/audio/wm8731.c @@ -204,23 +204,6 @@ void audiohw_close(void) /* 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 d698049a8b..e9d4b5c5c7 100644 --- a/firmware/drivers/audio/wm8758.c +++ b/firmware/drivers/audio/wm8758.c @@ -172,11 +172,6 @@ void audiohw_close(void) 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 23ce91fb5b..86e463cdff 100644 --- a/firmware/drivers/audio/wm8975.c +++ b/firmware/drivers/audio/wm8975.c @@ -226,11 +226,6 @@ void audiohw_close(void) 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 3611e4d6ee..814535621a 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 b21568406d..a572546e95 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 e7f7906651..c094b1296a 100644 --- a/firmware/export/wm8758.h +++ b/firmware/export/wm8758.h @@ -34,7 +34,6 @@ extern int tenthdb2mixer(int db); 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 881e7110bd..e2e443213a 100644 --- a/firmware/export/wm8975.h +++ b/firmware/export/wm8975.h @@ -32,7 +32,6 @@ extern int tenthdb2master(int db); 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 */