summaryrefslogtreecommitdiffstats
path: root/firmware/export/erosqlinux_codec.h
diff options
context:
space:
mode:
authorDana Conrad <dconrad@fastmail.com>2021-08-09 19:22:52 -0500
committerSolomon Peachy <pizza@shaftnet.org>2021-08-12 10:07:49 +0000
commit6de6e1459de28bef919b869ee757474c615cb787 (patch)
treeecf10a64809863d1cc3626a3b92dec856b937c4e /firmware/export/erosqlinux_codec.h
parent235e41578be60135c8ad682e05440a5b9142ce69 (diff)
downloadrockbox-6de6e1459de28bef919b869ee757474c615cb787.tar.gz
rockbox-6de6e1459de28bef919b869ee757474c615cb787.zip
Eros Q Hosted: Apply DC Bias to PCM Data
Similar to the native port, the hosted port benefits from adding a -1 dc bias to the PCM data. This prevents almost all clicking artifacts. Change-Id: Ic6378716774b6d88df23c476e2ef54d49f33dc72
Diffstat (limited to 'firmware/export/erosqlinux_codec.h')
-rw-r--r--firmware/export/erosqlinux_codec.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/export/erosqlinux_codec.h b/firmware/export/erosqlinux_codec.h
index b6ab58fa74..2ed1ae11cf 100644
--- a/firmware/export/erosqlinux_codec.h
+++ b/firmware/export/erosqlinux_codec.h
@@ -3,6 +3,8 @@
#define AUDIOHW_CAPS (LINEOUT_CAP)
+#define PCM_DC_OFFSET_VALUE -1
+
AUDIOHW_SETTING(VOLUME, "dB", 0, 2, -74, 0, -40)
//#define AUDIOHW_NEEDS_INITIAL_UNMUTE