diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-10-01 14:06:48 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-10-01 15:41:30 -0400 |
commit | b030bf5885dc5e018dd38eacbb294f1321f2b400 (patch) | |
tree | 4d9f06c7928fa44d225477b5551c69c29617a98a /firmware/export/xduoolinux_codec.h | |
parent | 6d47dc9a8860a17a9e630b8662f33df63011bad9 (diff) | |
download | rockbox-b030bf5885dc5e018dd38eacbb294f1321f2b400.tar.gz rockbox-b030bf5885dc5e018dd38eacbb294f1321f2b400.zip |
xduoox3ii/x20: Proper lineout detection and volume mangling.
hotplugging hp and lineout works, without blowing out eardrums.
Change-Id: I2df5c7a618bb2d1d77d416548d45dff9cfc619db
Diffstat (limited to 'firmware/export/xduoolinux_codec.h')
-rw-r--r-- | firmware/export/xduoolinux_codec.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/export/xduoolinux_codec.h b/firmware/export/xduoolinux_codec.h index ea0b2988f1..a46976d386 100644 --- a/firmware/export/xduoolinux_codec.h +++ b/firmware/export/xduoolinux_codec.h | |||
@@ -1,10 +1,11 @@ | |||
1 | #ifndef __XDUOOLINUX_CODEC__ | 1 | #ifndef __XDUOOLINUX_CODEC__ |
2 | #define __XDUOOLINUX_CODEC__ | 2 | #define __XDUOOLINUX_CODEC__ |
3 | 3 | ||
4 | #define AUDIOHW_CAPS (FILTER_ROLL_OFF_CAP) | 4 | #define AUDIOHW_CAPS (LINEOUT_CAP | FILTER_ROLL_OFF_CAP) |
5 | AUDIOHW_SETTING(VOLUME, "dB", 0, 1, -127, 0, -30) | 5 | 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 | void audiohw_mute(int mute); | 9 | void audiohw_mute(int mute); |
10 | void audiohw_set_output(void); | 10 | void xduoo_set_output(int ps); |
11 | int xduoo_get_outputs(void); | ||