1
0
Fork 0
forked from len0rd/rockbox

alsa: introduce AUDIOHW_MUTE_ON_PAUSE, and have rocker use it.

Change-Id: I1edbb8e71a9c73baaeecb01b66cbee6c3f7b5f8f
This commit is contained in:
Solomon Peachy 2020-10-03 09:19:12 -04:00
parent d18157608d
commit d4a620e85a
3 changed files with 15 additions and 8 deletions

View file

@ -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)