From afb2ca22d8df0f2c583085043909dbb9ad71acb9 Mon Sep 17 00:00:00 2001 From: Jian Xu Date: Tue, 11 Dec 2018 14:48:14 +0800 Subject: [PATCH] audio: codecs: fix TL1 reference board volume too small [2/2] PD#SWPL-2652 Problem: X301/T309 AMP volume configured to small Solution: change the default external AMP codec mixer name to a match the ini parsing function in audio hal. TODO: need dynamically check the different codec mixer name in ini file. Verify: verify by x301 Change-Id: Iba835d37ea02bec3095556d54fbf327bd6390904 Signed-off-by: Jian Xu --- sound/soc/codecs/amlogic/ad82584f.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/amlogic/ad82584f.c b/sound/soc/codecs/amlogic/ad82584f.c index b30cf81..6504dc1 100644 --- a/sound/soc/codecs/amlogic/ad82584f.c +++ b/sound/soc/codecs/amlogic/ad82584f.c @@ -36,11 +36,11 @@ static const DECLARE_TLV_DB_SCALE(mvol_tlv, -10300, 50, 1); static const DECLARE_TLV_DB_SCALE(chvol_tlv, -10300, 50, 1); static const struct snd_kcontrol_new ad82584f_snd_controls[] = { - SOC_SINGLE_TLV("Master Volume", MVOL, 0, + SOC_SINGLE_TLV("AMP Master Volume", MVOL, 0, 0xff, 1, mvol_tlv), - SOC_SINGLE_TLV("Ch1 Volume", C1VOL, 0, + SOC_SINGLE_TLV("AMP Ch1 Volume", C1VOL, 0, 0xff, 1, chvol_tlv), - SOC_SINGLE_TLV("Ch2 Volume", C2VOL, 0, + SOC_SINGLE_TLV("AMP Ch2 Volume", C2VOL, 0, 0xff, 1, chvol_tlv), }; -- 2.7.4