aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/da7213.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/da7213.c')
-rw-r--r--sound/soc/codecs/da7213.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/sound/soc/codecs/da7213.c b/sound/soc/codecs/da7213.c
index 47fc3bec8a9c..a9c86efb3187 100644
--- a/sound/soc/codecs/da7213.c
+++ b/sound/soc/codecs/da7213.c
@@ -28,27 +28,24 @@
28 28
29 29
30/* Gain and Volume */ 30/* Gain and Volume */
31static const unsigned int aux_vol_tlv[] = { 31static const DECLARE_TLV_DB_RANGE(aux_vol_tlv,
32 TLV_DB_RANGE_HEAD(2),
33 /* -54dB */ 32 /* -54dB */
34 0x0, 0x11, TLV_DB_SCALE_ITEM(-5400, 0, 0), 33 0x0, 0x11, TLV_DB_SCALE_ITEM(-5400, 0, 0),
35 /* -52.5dB to 15dB */ 34 /* -52.5dB to 15dB */
36 0x12, 0x3f, TLV_DB_SCALE_ITEM(-5250, 150, 0) 35 0x12, 0x3f, TLV_DB_SCALE_ITEM(-5250, 150, 0)
37}; 36);
38 37
39static const unsigned int digital_gain_tlv[] = { 38static const DECLARE_TLV_DB_RANGE(digital_gain_tlv,
40 TLV_DB_RANGE_HEAD(2),
41 0x0, 0x07, TLV_DB_SCALE_ITEM(TLV_DB_GAIN_MUTE, 0, 1), 39 0x0, 0x07, TLV_DB_SCALE_ITEM(TLV_DB_GAIN_MUTE, 0, 1),
42 /* -78dB to 12dB */ 40 /* -78dB to 12dB */
43 0x08, 0x7f, TLV_DB_SCALE_ITEM(-7800, 75, 0) 41 0x08, 0x7f, TLV_DB_SCALE_ITEM(-7800, 75, 0)
44}; 42);
45 43
46static const unsigned int alc_analog_gain_tlv[] = { 44static const DECLARE_TLV_DB_RANGE(alc_analog_gain_tlv,
47 TLV_DB_RANGE_HEAD(2),
48 0x0, 0x0, TLV_DB_SCALE_ITEM(TLV_DB_GAIN_MUTE, 0, 1), 45 0x0, 0x0, TLV_DB_SCALE_ITEM(TLV_DB_GAIN_MUTE, 0, 1),
49 /* 0dB to 36dB */ 46 /* 0dB to 36dB */
50 0x01, 0x07, TLV_DB_SCALE_ITEM(0, 600, 0) 47 0x01, 0x07, TLV_DB_SCALE_ITEM(0, 600, 0)
51}; 48);
52 49
53static const DECLARE_TLV_DB_SCALE(mic_vol_tlv, -600, 600, 0); 50static const DECLARE_TLV_DB_SCALE(mic_vol_tlv, -600, 600, 0);
54static const DECLARE_TLV_DB_SCALE(mixin_gain_tlv, -450, 150, 0); 51static const DECLARE_TLV_DB_SCALE(mixin_gain_tlv, -450, 150, 0);