summaryrefslogtreecommitdiff
path: root/firmware/drivers/audio
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2008-10-18 22:37:41 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2008-10-18 22:37:41 +0000
commit695c39bc9cb56214ae86bc79bf129d6cb074a43b (patch)
tree9bcaa214f17c37e3dfd3f2858fd9fa1746debd60 /firmware/drivers/audio
parent5047b2e180ee72d869d6a50eabac5ebe5fdbd9cc (diff)
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
Diffstat (limited to 'firmware/drivers/audio')
-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
4 files changed, 0 insertions, 33 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)
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)
{