···2323#ifndef _EROS_QN_CODEC_H
2424#define _EROS_QN_CODEC_H
25252626+/*
2727+ * Note: Maximum volume is set one step below unity in order to
2828+ * avoid overflowing pcm samples due to our DC Offset.
2929+ *
3030+ * The DAC's output is hot enough this should not be an issue.
3131+ */
2632#define PCM5102A_VOLUME_MIN -740
2727-#define PCM5102A_VOLUME_MAX 0
3333+#define PCM5102A_VOLUME_MAX -20
28342929-/* a small DC offset appears to prevent play/pause clicking */
3535+/* a small DC offset prevents play/pause clicking due to the DAC auto-muting */
3036#define PCM_DC_OFFSET_VALUE -1
31373238AUDIOHW_SETTING(VOLUME, "dB", 0, 2, PCM5102A_VOLUME_MIN/10, PCM5102A_VOLUME_MAX/10, 0)
+8-1
firmware/export/erosqlinux_codec.h
···3344#define AUDIOHW_CAPS (LINEOUT_CAP)
5566+/* a small DC offset prevents play/pause clicking due to the DAC auto-muting */
67#define PCM_DC_OFFSET_VALUE -1
7888-AUDIOHW_SETTING(VOLUME, "dB", 0, 2, -74, 0, -40)
99+/*
1010+ * Note: Maximum volume is set one step below unity in order to
1111+ * avoid overflowing pcm samples due to our DC Offset.
1212+ *
1313+ * The DAC's output is hot enough this should not be an issue.
1414+ */
1515+AUDIOHW_SETTING(VOLUME, "dB", 0, 2, -74, -2, -40)
9161017//#define AUDIOHW_NEEDS_INITIAL_UNMUTE
1118