From 1947ddba877dccd57d5f2cefedf2ba09a747d0ab Mon Sep 17 00:00:00 2001 From: Zhe Wang Date: Thu, 4 Jul 2019 22:21:26 +0800 Subject: [PATCH] audio: set master/channel default volume higher [1/1] PD#SWPL-10609 Problem: spk sound is too low Solution: set master/channel default volume higher Verify: r341 Change-Id: Id2928a7d0fdfbb745d272c82a7600a6f4fb9b7e6 Signed-off-by: Zhe Wang --- sound/soc/codecs/amlogic/tas5707.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/amlogic/tas5707.c b/sound/soc/codecs/amlogic/tas5707.c index a8d765401baf..a0cd14ef8cd9 100644 --- a/sound/soc/codecs/amlogic/tas5707.c +++ b/sound/soc/codecs/amlogic/tas5707.c @@ -329,7 +329,7 @@ static int tas5707_set_master_vol(struct snd_soc_codec *codec) snd_soc_write(codec, DDX_MASTER_VOLUME, (0xff - pdata->custom_master_vol)); } else { - snd_soc_write(codec, DDX_MASTER_VOLUME, 0x69); + snd_soc_write(codec, DDX_MASTER_VOLUME, 0x11); } return 0; @@ -652,8 +652,8 @@ static int tas5707_init(struct snd_soc_codec *codec) if ((tas5707_set_master_vol(codec)) < 0) dev_err(codec->dev, "fail to set tas5707 master vol!\n"); - snd_soc_write(codec, DDX_CHANNEL1_VOL, tas5707->Ch1_vol); - snd_soc_write(codec, DDX_CHANNEL2_VOL, tas5707->Ch2_vol); + snd_soc_write(codec, DDX_CHANNEL1_VOL, 0x0); + snd_soc_write(codec, DDX_CHANNEL2_VOL, 0x0); snd_soc_write(codec, DDX_SOFT_MUTE, 0x00); snd_soc_write(codec, DDX_CHANNEL3_VOL, 0x80);