summaryrefslogtreecommitdiff
path: root/firmware/export/xduoolinux_codec.h
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2021-07-09 22:48:19 -0400
committerSolomon Peachy <pizza@shaftnet.org>2021-07-17 08:18:31 -0400
commitcd17decd5a35c9b506bf8433ae56dda00f65ad61 (patch)
treeac64d4ff4a906d48ef21c94d9b6e00e30345fe90 /firmware/export/xduoolinux_codec.h
parentec31a2b4ad030dc2ab2a627484dce894a6d4e656 (diff)
downloadrockbox-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.h5
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)
5AUDIOHW_SETTING(VOLUME, "dB", 1, 5, -102*10, 0, -30*10) 5AUDIOHW_SETTING(VOLUME, "dB", 1, 5, -102*10, 0, -30*10)
6AUDIOHW_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
14AUDIOHW_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
20AUDIOHW_SETTING(FILTER_ROLL_OFF, "", 0, 1, 0, 4, 0)
21#define AUDIOHW_HAVE_SHORT2_ROLL_OFF
19#endif 22#endif
20 23
21void audiohw_mute(int mute); 24void audiohw_mute(int mute);