aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/max98088.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/max98088.c')
-rw-r--r--sound/soc/codecs/max98088.c23
1 files changed, 10 insertions, 13 deletions
diff --git a/sound/soc/codecs/max98088.c b/sound/soc/codecs/max98088.c
index 2c2df1790fd3..20dcc496d39c 100644
--- a/sound/soc/codecs/max98088.c
+++ b/sound/soc/codecs/max98088.c
@@ -425,29 +425,26 @@ static int max98088_mic2pre_get(struct snd_kcontrol *kcontrol,
425 return 0; 425 return 0;
426} 426}
427 427
428static const unsigned int max98088_micboost_tlv[] = { 428static const DECLARE_TLV_DB_RANGE(max98088_micboost_tlv,
429 TLV_DB_RANGE_HEAD(2), 429 0, 1, TLV_DB_SCALE_ITEM(0, 2000, 0),
430 0, 1, TLV_DB_SCALE_ITEM(0, 2000, 0), 430 2, 2, TLV_DB_SCALE_ITEM(3000, 0, 0)
431 2, 2, TLV_DB_SCALE_ITEM(3000, 0, 0), 431);
432};
433 432
434static const unsigned int max98088_hp_tlv[] = { 433static const DECLARE_TLV_DB_RANGE(max98088_hp_tlv,
435 TLV_DB_RANGE_HEAD(5),
436 0, 6, TLV_DB_SCALE_ITEM(-6700, 400, 0), 434 0, 6, TLV_DB_SCALE_ITEM(-6700, 400, 0),
437 7, 14, TLV_DB_SCALE_ITEM(-4000, 300, 0), 435 7, 14, TLV_DB_SCALE_ITEM(-4000, 300, 0),
438 15, 21, TLV_DB_SCALE_ITEM(-1700, 200, 0), 436 15, 21, TLV_DB_SCALE_ITEM(-1700, 200, 0),
439 22, 27, TLV_DB_SCALE_ITEM(-400, 100, 0), 437 22, 27, TLV_DB_SCALE_ITEM(-400, 100, 0),
440 28, 31, TLV_DB_SCALE_ITEM(150, 50, 0), 438 28, 31, TLV_DB_SCALE_ITEM(150, 50, 0)
441}; 439);
442 440
443static const unsigned int max98088_spk_tlv[] = { 441static const DECLARE_TLV_DB_RANGE(max98088_spk_tlv,
444 TLV_DB_RANGE_HEAD(5),
445 0, 6, TLV_DB_SCALE_ITEM(-6200, 400, 0), 442 0, 6, TLV_DB_SCALE_ITEM(-6200, 400, 0),
446 7, 14, TLV_DB_SCALE_ITEM(-3500, 300, 0), 443 7, 14, TLV_DB_SCALE_ITEM(-3500, 300, 0),
447 15, 21, TLV_DB_SCALE_ITEM(-1200, 200, 0), 444 15, 21, TLV_DB_SCALE_ITEM(-1200, 200, 0),
448 22, 27, TLV_DB_SCALE_ITEM(100, 100, 0), 445 22, 27, TLV_DB_SCALE_ITEM(100, 100, 0),
449 28, 31, TLV_DB_SCALE_ITEM(650, 50, 0), 446 28, 31, TLV_DB_SCALE_ITEM(650, 50, 0)
450}; 447);
451 448
452static const struct snd_kcontrol_new max98088_snd_controls[] = { 449static const struct snd_kcontrol_new max98088_snd_controls[] = {
453 450