summaryrefslogtreecommitdiffstats
path: root/firmware/drivers/audio/rocker_codec.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/audio/rocker_codec.c')
-rw-r--r--firmware/drivers/audio/rocker_codec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/drivers/audio/rocker_codec.c b/firmware/drivers/audio/rocker_codec.c
index 5404ff9561..525507494b 100644
--- a/firmware/drivers/audio/rocker_codec.c
+++ b/firmware/drivers/audio/rocker_codec.c
@@ -62,6 +62,7 @@ void audiohw_preinit(void)
{
alsa_controls_init();
hw_open();
+ audiohw_mute(true); /* Start muted to avoid the POP */
}
void audiohw_postinit(void)
@@ -69,7 +70,7 @@ void audiohw_postinit(void)
long int hp = 2;
/* Output port switch set to Headphones */
- alsa_controls_set_ints("Output Port Switch", 1, &hp);
+ alsa_controls_set_ints("Output Port Switch", 1, &hp); /* Unmutes */
}
void audiohw_close(void)