summaryrefslogtreecommitdiff
path: root/firmware/export/eros_qn_codec.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/eros_qn_codec.h')
-rw-r--r--firmware/export/eros_qn_codec.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/firmware/export/eros_qn_codec.h b/firmware/export/eros_qn_codec.h
index bf108aa1c7..223ef06779 100644
--- a/firmware/export/eros_qn_codec.h
+++ b/firmware/export/eros_qn_codec.h
@@ -32,13 +32,25 @@
32#define PCM5102A_VOLUME_MIN -740 32#define PCM5102A_VOLUME_MIN -740
33#define PCM5102A_VOLUME_MAX -20 33#define PCM5102A_VOLUME_MAX -20
34 34
35/* a small DC offset prevents play/pause clicking due to the DAC auto-muting */ 35/* a small DC offset prevents play/pause clicking due to the PCM5102A DAC auto-muting */
36#define PCM_DC_OFFSET_VALUE -1 36#define PCM_DC_OFFSET_VALUE -1
37 37
38AUDIOHW_SETTING(VOLUME, "dB", 0, 2, PCM5102A_VOLUME_MIN/10, PCM5102A_VOLUME_MAX/10, 0) 38AUDIOHW_SETTING(VOLUME, "dB", 0, 2, PCM5102A_VOLUME_MIN/10, PCM5102A_VOLUME_MAX/10, 0)
39 39
40/* flag indicating whether this is a new revision unit with the ES9018K2M DAC */
41extern int es9018k2m_present_flag;
42
43/* Switch the output sink. 0 - headphones, 1 - line out */
44void eros_qn_switch_output(int select);
45
46/* Record last volume setting for switching between headphones/line out */
47void eros_qn_set_last_vol(long int vol_l, long int vol_r);
48
40/* this just calls audiohw_set_volume() with the last (locally) known volume, 49/* this just calls audiohw_set_volume() with the last (locally) known volume,
41 * used for switching to/from fixed line out volume. */ 50 * used for switching to/from fixed line out volume. */
42void dac_set_outputs(void); 51void eros_qn_set_outputs(void);
52
53/* returns (global_settings.volume_limit * 10) */
54int eros_qn_get_volume_limit(void);
43 55
44#endif 56#endif