diff options
Diffstat (limited to 'firmware/export/uda1341.h')
-rw-r--r-- | firmware/export/uda1341.h | 17 |
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 | ||
31 | extern int tenthdb2master(int db); | 31 | AUDIOHW_SETTING(VOLUME, "dB", 0, 1, -84, 0, -25) |
32 | extern int tenthdb2mixer(int db); | 32 | AUDIOHW_SETTING(BASS, "dB", 0, 2, 0, 24, 0) |
33 | 33 | AUDIOHW_SETTING(TREBLE, "dB", 0, 2, 0, 6, 0) | |
34 | extern void audiohw_set_master_vol(int vol_l, int vol_r); | 34 | #ifdef HAVE_RECORDING |
35 | extern void audiohw_set_mixer_vol(int channel1, int channel2); | 35 | AUDIOHW_SETTING(LEFT_GAIN, "dB", 1, 1,-128, 96, 0) |
36 | AUDIOHW_SETTING(RIGHT_GAIN, "dB", 1, 1,-128, 96, 0) | ||
37 | AUDIOHW_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 */ |
38 | enum uda_register { | 41 | enum uda_register { |