summaryrefslogtreecommitdiff
path: root/firmware/export/imx233-codec.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/imx233-codec.h')
-rw-r--r--firmware/export/imx233-codec.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/firmware/export/imx233-codec.h b/firmware/export/imx233-codec.h
index 6c329ccd1a..2fbd8bde59 100644
--- a/firmware/export/imx233-codec.h
+++ b/firmware/export/imx233-codec.h
@@ -27,10 +27,19 @@
27#define VOLUME_MIN -1000 27#define VOLUME_MIN -1000
28#define VOLUME_MAX 60 28#define VOLUME_MAX 60
29 29
30#define AUDIOHW_CAPS (DEPTH_3D_CAP | BASS_CAP | TREBLE_CAP) 30#define AUDIOHW_CAPS (DEPTH_3D_CAP | BASS_CAP | TREBLE_CAP | \
31 LIN_GAIN_CAP | MIC_GAIN_CAP)
31 32
32/* Work with half dB since the i.MX233 doesn't have a better resolution */ 33/* Work with half dB since the i.MX233 doesn't have a better resolution */
33int tenthdb2master(int tdb); 34
34void audiohw_set_headphone_vol(int vol_l, int vol_r); 35/* i.MX233 has half dB steps */
36AUDIOHW_SETTING(VOLUME, "dB", 0, 1,-101, 6, -25)
37/* HAVE_SW_TONE_CONTROLS */
38#ifdef HAVE_RECORDING
39AUDIOHW_SETTING(LEFT_GAIN, "dB", 1, 1, 0, 31, 23)
40AUDIOHW_SETTING(RIGHT_GAIN, "dB", 1, 1, 0, 31, 23)
41AUDIOHW_SETTING(MIC_GAIN, "dB", 1, 1, 0, 1, 1)
42#endif /* HAVE_RECORDING */
43AUDIOHW_SETTING(DEPTH_3D, "%", 0, 1, 0, 15, 0)
35 44
36#endif /* __IMX233_CODEC_H_ */ 45#endif /* __IMX233_CODEC_H_ */