audio: set master/channel default volume higher [1/1]
authorZhe Wang <Zhe.Wang@amlogic.com>
Thu, 4 Jul 2019 14:21:26 +0000 (22:21 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Fri, 5 Jul 2019 13:43:57 +0000 (06:43 -0700)
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 <Zhe.Wang@amlogic.com>
sound/soc/codecs/amlogic/tas5707.c

index a8d7654..a0cd14e 100644 (file)
@@ -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);