From d4a620e85af6c1eae4c99b92c81d8c098f13eae9 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sat, 3 Oct 2020 09:19:12 -0400 Subject: alsa: introduce AUDIOHW_MUTE_ON_PAUSE, and have rocker use it. Change-Id: I1edbb8e71a9c73baaeecb01b66cbee6c3f7b5f8f --- firmware/drivers/audio/rocker_codec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'firmware/drivers/audio') 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) -- cgit v1.2.3