summaryrefslogtreecommitdiff
path: root/firmware/target/hosted/ibasso/dx50/audiohw-dx50.c
diff options
context:
space:
mode:
authorUdo Schläpfer <rockbox-2014.10@desktopwarrior.net>2015-02-07 13:34:06 +0100
committerUdo Schläpfer <rockbox-2014.10@desktopwarrior.net>2015-02-07 13:34:06 +0100
commitd81b36222a9d3c261367cc4cfbe692dc06a92023 (patch)
treee28fb7ba0c2eb913bb67e042ea352d43918d7212 /firmware/target/hosted/ibasso/dx50/audiohw-dx50.c
parent8aa72f07f4bf38e9b898fb8d8042239861b9a423 (diff)
downloadrockbox-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.c11
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
71void 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}