diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-10-12 09:29:21 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-10-12 13:40:37 +0000 |
commit | 141e91ef1fc5ce6c487988c29c00e57fa6e52fb6 (patch) | |
tree | 96a29cb38a833565e099ce3b00016bb653695699 /firmware/drivers/audio/rocker_codec.c | |
parent | 9ad30869b86dd827fbbf56a67122d662a51514f5 (diff) | |
download | rockbox-141e91ef1fc5ce6c487988c29c00e57fa6e52fb6.tar.gz rockbox-141e91ef1fc5ce6c487988c29c00e57fa6e52fb6.zip |
Hosted PCM: Rework auto-muting code a bit
* If AUDIOHW_MUTE_ON_PAUSE, no meaningful change
* Unconditionally unmute on playback start
* xduoox3ii: Mute on sample rate change
* rocker/xduoo: Stay muted after startup
This avoids the nasty "pop" on startup, without doing
the full mute-on-pause stuff that causes unacceptable
dropouts on the X3ii.
Change-Id: I2e3ee0bb8094e288f37a0acada86a80016ce5cac
Diffstat (limited to 'firmware/drivers/audio/rocker_codec.c')
-rw-r--r-- | firmware/drivers/audio/rocker_codec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/audio/rocker_codec.c b/firmware/drivers/audio/rocker_codec.c index 525507494b..e5573df843 100644 --- a/firmware/drivers/audio/rocker_codec.c +++ b/firmware/drivers/audio/rocker_codec.c | |||
@@ -70,7 +70,7 @@ void audiohw_postinit(void) | |||
70 | long int hp = 2; | 70 | long int hp = 2; |
71 | 71 | ||
72 | /* Output port switch set to Headphones */ | 72 | /* Output port switch set to Headphones */ |
73 | alsa_controls_set_ints("Output Port Switch", 1, &hp); /* Unmutes */ | 73 | //alsa_controls_set_ints("Output Port Switch", 1, &hp); // Unmute happens on PCM start |
74 | } | 74 | } |
75 | 75 | ||
76 | void audiohw_close(void) | 76 | void audiohw_close(void) |