summaryrefslogtreecommitdiffstats
path: root/firmware/drivers/audio/wm8978.c
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-04-27 00:05:02 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-04-27 00:05:02 +0000
commitf2f34881ec84fb18020ae9a492f347e87c36359c (patch)
tree125941daf63f365e523d3e0d3dddb35284728e96 /firmware/drivers/audio/wm8978.c
parent5e88c4b4de14eeb16ddfa6632523ed6d5068f368 (diff)
downloadrockbox-f2f34881ec84fb18020ae9a492f347e87c36359c.tar.gz
rockbox-f2f34881ec84fb18020ae9a492f347e87c36359c.zip
Remove pcm_mute() which has been unused since r19308
Remove audiohw_mute from header as well, and make this function static to each driver (commented out when it was unused) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25733 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/audio/wm8978.c')
-rw-r--r--firmware/drivers/audio/wm8978.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/firmware/drivers/audio/wm8978.c b/firmware/drivers/audio/wm8978.c
index eb2e28aa69..e93c33b5ec 100644
--- a/firmware/drivers/audio/wm8978.c
+++ b/firmware/drivers/audio/wm8978.c
@@ -346,25 +346,7 @@ void audiohw_set_headphone_vol(int vol_l, int vol_r)
}
}
-void audiohw_close(void)
-{
- /* 1. Mute all analogue outputs */
- audiohw_mute(true);
- audiohw_enable_headphone_jack(false);
-
- /* 2. Disable power management register 1. R1 = 00 */
- wmc_write(WMC_POWER_MANAGEMENT1, 0x000);
-
- /* 3. Disable power management register 2. R2 = 00 */
- wmc_write(WMC_POWER_MANAGEMENT2, 0x000);
-
- /* 4. Disable power management register 3. R3 = 00 */
- wmc_write(WMC_POWER_MANAGEMENT3, 0x000);
-
- /* 5. Remove external power supplies. */
-}
-
-void audiohw_mute(bool mute)
+static void audiohw_mute(bool mute)
{
wmc_vol.ahw_mute = mute;
@@ -385,6 +367,24 @@ void audiohw_mute(bool mute)
}
}
+void audiohw_close(void)
+{
+ /* 1. Mute all analogue outputs */
+ audiohw_mute(true);
+ audiohw_enable_headphone_jack(false);
+
+ /* 2. Disable power management register 1. R1 = 00 */
+ wmc_write(WMC_POWER_MANAGEMENT1, 0x000);
+
+ /* 3. Disable power management register 2. R2 = 00 */
+ wmc_write(WMC_POWER_MANAGEMENT2, 0x000);
+
+ /* 4. Disable power management register 3. R3 = 00 */
+ wmc_write(WMC_POWER_MANAGEMENT3, 0x000);
+
+ /* 5. Remove external power supplies. */
+}
+
void audiohw_set_frequency(int fsel)
{
/* For 16.9344MHz MCLK, codec as master. */