summaryrefslogtreecommitdiffstats
path: root/firmware/export/erosqlinux_codec.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/erosqlinux_codec.h')
-rw-r--r--firmware/export/erosqlinux_codec.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/firmware/export/erosqlinux_codec.h b/firmware/export/erosqlinux_codec.h
index 2ed1ae11cf..ecc10be924 100644
--- a/firmware/export/erosqlinux_codec.h
+++ b/firmware/export/erosqlinux_codec.h
@@ -3,9 +3,16 @@
#define AUDIOHW_CAPS (LINEOUT_CAP)
+/* a small DC offset prevents play/pause clicking due to the DAC auto-muting */
#define PCM_DC_OFFSET_VALUE -1
-AUDIOHW_SETTING(VOLUME, "dB", 0, 2, -74, 0, -40)
+/*
+ * Note: Maximum volume is set one step below unity in order to
+ * avoid overflowing pcm samples due to our DC Offset.
+ *
+ * The DAC's output is hot enough this should not be an issue.
+ */
+AUDIOHW_SETTING(VOLUME, "dB", 0, 2, -74, -2, -40)
//#define AUDIOHW_NEEDS_INITIAL_UNMUTE