diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2021-07-09 22:48:19 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2021-07-17 08:18:31 -0400 |
commit | cd17decd5a35c9b506bf8433ae56dda00f65ad61 (patch) | |
tree | ac64d4ff4a906d48ef21c94d9b6e00e30345fe90 /firmware/export/xduoolinux_codec.h | |
parent | ec31a2b4ad030dc2ab2a627484dce894a6d4e656 (diff) | |
download | rockbox-cd17decd5a35c9b506bf8433ae56dda00f65ad61.tar.gz rockbox-cd17decd5a35c9b506bf8433ae56dda00f65ad61.zip |
xduoox3ii: Add "Super Slow" filter roll-off
I'm not happy with the proliferation of filter-roll-off options
but I don't have a less ugly solution.
Change-Id: I740fca006fa0c3443a467acfea55b6574d48346b
Diffstat (limited to 'firmware/export/xduoolinux_codec.h')
-rw-r--r-- | firmware/export/xduoolinux_codec.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/export/xduoolinux_codec.h b/firmware/export/xduoolinux_codec.h index 301a341f15..a5bdab0661 100644 --- a/firmware/export/xduoolinux_codec.h +++ b/firmware/export/xduoolinux_codec.h | |||
@@ -3,7 +3,6 @@ | |||
3 | 3 | ||
4 | #define AUDIOHW_CAPS (LINEOUT_CAP | FILTER_ROLL_OFF_CAP) | 4 | #define AUDIOHW_CAPS (LINEOUT_CAP | FILTER_ROLL_OFF_CAP) |
5 | AUDIOHW_SETTING(VOLUME, "dB", 1, 5, -102*10, 0, -30*10) | 5 | AUDIOHW_SETTING(VOLUME, "dB", 1, 5, -102*10, 0, -30*10) |
6 | AUDIOHW_SETTING(FILTER_ROLL_OFF, "", 0, 1, 0, 4, 0) | ||
7 | #endif | 6 | #endif |
8 | 7 | ||
9 | // We want this, but the codec takes over a second to unmute! | 8 | // We want this, but the codec takes over a second to unmute! |
@@ -12,10 +11,14 @@ AUDIOHW_SETTING(FILTER_ROLL_OFF, "", 0, 1, 0, 4, 0) | |||
12 | #if defined(XDUOO_X3II) | 11 | #if defined(XDUOO_X3II) |
13 | /* The AK4490 glitches when switching sample rates */ | 12 | /* The AK4490 glitches when switching sample rates */ |
14 | #define AUDIOHW_MUTE_ON_SRATE_CHANGE | 13 | #define AUDIOHW_MUTE_ON_SRATE_CHANGE |
14 | AUDIOHW_SETTING(FILTER_ROLL_OFF, "", 0, 1, 0, 5, 0) | ||
15 | #define AUDIOHW_HAVE_SS_ROLL_OFF | ||
15 | #endif | 16 | #endif |
16 | 17 | ||
17 | #if defined(XDUOO_X20) | 18 | #if defined(XDUOO_X20) |
18 | //#define AUDIOHW_NEEDS_INITIAL_UNMUTE | 19 | //#define AUDIOHW_NEEDS_INITIAL_UNMUTE |
20 | AUDIOHW_SETTING(FILTER_ROLL_OFF, "", 0, 1, 0, 4, 0) | ||
21 | #define AUDIOHW_HAVE_SHORT2_ROLL_OFF | ||
19 | #endif | 22 | #endif |
20 | 23 | ||
21 | void audiohw_mute(int mute); | 24 | void audiohw_mute(int mute); |