summaryrefslogtreecommitdiffstats
path: root/firmware/sound.c
diff options
context:
space:
mode:
authorAndrew Ryabinin <ryabinin.a.a@gmail.com>2013-05-12 23:23:45 +0400
committerAndrew Ryabinin <ryabinin.a.a@gmail.com>2013-05-24 11:18:16 +0400
commit0519f7e5ab6d17f90257caffad85862187bffed6 (patch)
tree775bf5d5dff034919521d646fe6b01ef5eda8d24 /firmware/sound.c
parentf6e179bd8eeb417e0428b8290df4ca058782e8b3 (diff)
downloadrockbox-0519f7e5ab6d17f90257caffad85862187bffed6.tar.gz
rockbox-0519f7e5ab6d17f90257caffad85862187bffed6.tar.bz2
rockbox-0519f7e5ab6d17f90257caffad85862187bffed6.zip
Add DAC's oversampling filter roll-off selection to sound settings.
Change-Id: I1258ba50dd9308f49d97965562f3a423c9bfb785
Diffstat (limited to 'firmware/sound.c')
-rw-r--r--firmware/sound.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/sound.c b/firmware/sound.c
index 336fe90c25..a19cc15c41 100644
--- a/firmware/sound.c
+++ b/firmware/sound.c
@@ -314,6 +314,16 @@ void sound_set_depth_3d(int value)
}
#endif /* AUDIOHW_HAVE_DEPTH_3D */
+#if defined(AUDIOHW_HAVE_FILTER_ROLL_OFF)
+void sound_set_filter_roll_off(int value)
+{
+ if (!audio_is_initialized)
+ return;
+
+ audiohw_set_filter_roll_off(value);
+}
+#endif
+
#if defined(AUDIOHW_HAVE_EQ)
int sound_enum_hw_eq_band_setting(unsigned int band,
unsigned int band_setting)