diff options
author | Udo Schläpfer <rockbox-2014.10@desktopwarrior.net> | 2015-02-07 13:34:06 +0100 |
---|---|---|
committer | Udo Schläpfer <rockbox-2014.10@desktopwarrior.net> | 2015-02-07 13:34:06 +0100 |
commit | d81b36222a9d3c261367cc4cfbe692dc06a92023 (patch) | |
tree | e28fb7ba0c2eb913bb67e042ea352d43918d7212 /firmware/target/hosted/ibasso/dx50/audiohw-dx50.c | |
parent | 8aa72f07f4bf38e9b898fb8d8042239861b9a423 (diff) | |
download | rockbox-d81b36222a9d3c261367cc4cfbe692dc06a92023.tar.gz rockbox-d81b36222a9d3c261367cc4cfbe692dc06a92023.zip |
iBasso DX50: Digital filter roll off setting.
This patch enables "Settings -> Sound Settings -> DAC's filter roll-off" for the
iBasso DX50.
Confirmed working on iBasso DX50, firmware 1.6.
Change-Id: I901615541d8fa4f6550c5156cf8c6069f5bdf9d0
Diffstat (limited to 'firmware/target/hosted/ibasso/dx50/audiohw-dx50.c')
-rw-r--r-- | firmware/target/hosted/ibasso/dx50/audiohw-dx50.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/firmware/target/hosted/ibasso/dx50/audiohw-dx50.c b/firmware/target/hosted/ibasso/dx50/audiohw-dx50.c index 5e61348c8d..4ed181ede9 100644 --- a/firmware/target/hosted/ibasso/dx50/audiohw-dx50.c +++ b/firmware/target/hosted/ibasso/dx50/audiohw-dx50.c | |||
@@ -66,3 +66,14 @@ void audiohw_set_volume(int volume) | |||
66 | DEBUGF("ERROR %s: Can not set volume.", __func__); | 66 | DEBUGF("ERROR %s: Can not set volume.", __func__); |
67 | } | 67 | } |
68 | } | 68 | } |
69 | |||
70 | |||
71 | void audiohw_set_filter_roll_off(int val) | ||
72 | { | ||
73 | DEBUGF("DEBUG %s: val: %d", __func__, val); | ||
74 | |||
75 | if(! sysfs_set_char(SYSFS_ES9018_FILTER, (char) val)) | ||
76 | { | ||
77 | DEBUGF("ERROR %s: Can not set roll off filter.", __func__); | ||
78 | } | ||
79 | } | ||