summaryrefslogtreecommitdiff
path: root/firmware/drivers/audio/wm8751.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/audio/wm8751.c')
-rw-r--r--firmware/drivers/audio/wm8751.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/firmware/drivers/audio/wm8751.c b/firmware/drivers/audio/wm8751.c
index cdc64fd69b..ffe7f20bba 100644
--- a/firmware/drivers/audio/wm8751.c
+++ b/firmware/drivers/audio/wm8751.c
@@ -99,6 +99,13 @@ static int adaptivebass2hw(int value)
99} 99}
100#endif 100#endif
101 101
102static void audiohw_mute(bool mute)
103{
104 /* Mute: Set DACMU = 1 to soft-mute the audio DACs. */
105 /* Unmute: Set DACMU = 0 to soft-un-mute the audio DACs. */
106 wmcodec_write(DACCTRL, mute ? DACCTRL_DACMU : 0);
107}
108
102/* Reset and power up the WM8751 */ 109/* Reset and power up the WM8751 */
103void audiohw_preinit(void) 110void audiohw_preinit(void)
104{ 111{
@@ -230,13 +237,6 @@ void audiohw_set_treble(int value)
230 TREBCTRL_TREB(tone_tenthdb2hw(value))); 237 TREBCTRL_TREB(tone_tenthdb2hw(value)));
231} 238}
232 239
233void audiohw_mute(bool mute)
234{
235 /* Mute: Set DACMU = 1 to soft-mute the audio DACs. */
236 /* Unmute: Set DACMU = 0 to soft-un-mute the audio DACs. */
237 wmcodec_write(DACCTRL, mute ? DACCTRL_DACMU : 0);
238}
239
240/* Nice shutdown of WM8751 codec */ 240/* Nice shutdown of WM8751 codec */
241void audiohw_close(void) 241void audiohw_close(void)
242{ 242{