summaryrefslogtreecommitdiff
path: root/firmware/export/uda1341.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/uda1341.h')
-rw-r--r--firmware/export/uda1341.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/firmware/export/uda1341.h b/firmware/export/uda1341.h
index a43d33a137..5641bd301f 100644
--- a/firmware/export/uda1341.h
+++ b/firmware/export/uda1341.h
@@ -26,13 +26,16 @@
26#define VOLUME_MIN -840 26#define VOLUME_MIN -840
27#define VOLUME_MAX 0 27#define VOLUME_MAX 0
28 28
29#define AUDIOHW_CAPS (BASS_CAP | TREBLE_CAP) 29#define AUDIOHW_CAPS (BASS_CAP | TREBLE_CAP | MIC_GAIN_CAP | LIN_GAIN_CAP)
30 30
31extern int tenthdb2master(int db); 31AUDIOHW_SETTING(VOLUME, "dB", 0, 1, -84, 0, -25)
32extern int tenthdb2mixer(int db); 32AUDIOHW_SETTING(BASS, "dB", 0, 2, 0, 24, 0)
33 33AUDIOHW_SETTING(TREBLE, "dB", 0, 2, 0, 6, 0)
34extern void audiohw_set_master_vol(int vol_l, int vol_r); 34#ifdef HAVE_RECORDING
35extern void audiohw_set_mixer_vol(int channel1, int channel2); 35AUDIOHW_SETTING(LEFT_GAIN, "dB", 1, 1,-128, 96, 0)
36AUDIOHW_SETTING(RIGHT_GAIN, "dB", 1, 1,-128, 96, 0)
37AUDIOHW_SETTING(MIC_GAIN, "dB", 1, 1,-128, 108, 16)
38#endif /* HAVE_RECORDING */
36 39
37/* These are logical register numbers for driver */ 40/* These are logical register numbers for driver */
38enum uda_register { 41enum uda_register {