summaryrefslogtreecommitdiffstats
path: root/firmware/drivers
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-10-03 09:19:12 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-10-03 14:41:40 +0000
commitd4a620e85af6c1eae4c99b92c81d8c098f13eae9 (patch)
treed5ff41ccf6267d847e98e3f906701c48ca363b9d /firmware/drivers
parentd18157608d5aba50cf538c4853f42fce7e3731ef (diff)
downloadrockbox-d4a620e85af6c1eae4c99b92c81d8c098f13eae9.tar.gz
rockbox-d4a620e85af6c1eae4c99b92c81d8c098f13eae9.tar.bz2
rockbox-d4a620e85af6c1eae4c99b92c81d8c098f13eae9.zip
alsa: introduce AUDIOHW_MUTE_ON_PAUSE, and have rocker use it.
Change-Id: I1edbb8e71a9c73baaeecb01b66cbee6c3f7b5f8f
Diffstat (limited to 'firmware/drivers')
-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)