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/export/xduoolinux_codec.h | |
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/export/xduoolinux_codec.h')
-rw-r--r-- | firmware/export/xduoolinux_codec.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/export/xduoolinux_codec.h b/firmware/export/xduoolinux_codec.h index a46976d386..09609d477c 100644 --- a/firmware/export/xduoolinux_codec.h +++ b/firmware/export/xduoolinux_codec.h | |||
@@ -6,6 +6,14 @@ AUDIOHW_SETTING(VOLUME, "dB", 0, 1, -127, 0, -30) | |||
6 | AUDIOHW_SETTING(FILTER_ROLL_OFF, "", 0, 1, 0, 4, 0) | 6 | AUDIOHW_SETTING(FILTER_ROLL_OFF, "", 0, 1, 0, 4, 0) |
7 | #endif | 7 | #endif |
8 | 8 | ||
9 | // We want this, but the codec takes over a second to unmute! | ||
10 | //#define AUDIOHW_MUTE_ON_PAUSE | ||
11 | |||
12 | #if defined(XDUOO_X3II) | ||
13 | /* The AK4490 glitches when switching sample rates */ | ||
14 | #define AUDIOHW_MUTE_ON_SRATE_CHANGE | ||
15 | #endif | ||
16 | |||
9 | void audiohw_mute(int mute); | 17 | void audiohw_mute(int mute); |
10 | void xduoo_set_output(int ps); | 18 | void xduoo_set_output(int ps); |
11 | int xduoo_get_outputs(void); | 19 | int xduoo_get_outputs(void); |