summaryrefslogtreecommitdiff
path: root/firmware/drivers/audio/rocker_codec.c
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/audio/rocker_codec.c
parentd18157608d5aba50cf538c4853f42fce7e3731ef (diff)
downloadrockbox-d4a620e85af6c1eae4c99b92c81d8c098f13eae9.tar.gz
rockbox-d4a620e85af6c1eae4c99b92c81d8c098f13eae9.zip
alsa: introduce AUDIOHW_MUTE_ON_PAUSE, and have rocker use it.
Change-Id: I1edbb8e71a9c73baaeecb01b66cbee6c3f7b5f8f
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)
62{ 62{
63 alsa_controls_init(); 63 alsa_controls_init();
64 hw_open(); 64 hw_open();
65 audiohw_mute(true); /* Start muted to avoid the POP */
65} 66}
66 67
67void audiohw_postinit(void) 68void audiohw_postinit(void)
@@ -69,7 +70,7 @@ void audiohw_postinit(void)
69 long int hp = 2; 70 long int hp = 2;
70 71
71 /* Output port switch set to Headphones */ 72 /* Output port switch set to Headphones */
72 alsa_controls_set_ints("Output Port Switch", 1, &hp); 73 alsa_controls_set_ints("Output Port Switch", 1, &hp); /* Unmutes */
73} 74}
74 75
75void audiohw_close(void) 76void audiohw_close(void)