diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/drivers/audio/xduoolinux_codec.c | 3 | ||||
-rw-r--r-- | firmware/export/xduoolinux_codec.h | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/firmware/drivers/audio/xduoolinux_codec.c b/firmware/drivers/audio/xduoolinux_codec.c index 749d551739..3a25f6f7cf 100644 --- a/firmware/drivers/audio/xduoolinux_codec.c +++ b/firmware/drivers/audio/xduoolinux_codec.c | |||
@@ -238,7 +238,8 @@ void audiohw_set_filter_roll_off(int value) | |||
238 | /* 0 = Sharp; | 238 | /* 0 = Sharp; |
239 | 1 = Slow; | 239 | 1 = Slow; |
240 | 2 = Short Sharp | 240 | 2 = Short Sharp |
241 | 3 = Short Slow */ | 241 | 3 = Short Slow |
242 | 4 = Super Slow */ | ||
242 | #if defined(XDUOO_X3II) | 243 | #if defined(XDUOO_X3II) |
243 | long int value_hw = value; | 244 | long int value_hw = value; |
244 | alsa_controls_set_ints("AK4490 Digital Filter", 1, &value_hw); | 245 | alsa_controls_set_ints("AK4490 Digital Filter", 1, &value_hw); |
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); |