sound:codecs:ac108:Change default volume
authorXingyu Wu <xingyu.wu@starfivetech.com>
Mon, 5 Sep 2022 06:34:47 +0000 (14:34 +0800)
committerXingyu Wu <xingyu.wu@starfivetech.com>
Mon, 5 Sep 2022 06:35:50 +0000 (14:35 +0800)
ac108:Change default volume and make it louder.

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
sound/soc/codecs/ac108.c

index 8cd6413..29303f6 100755 (executable)
@@ -1200,6 +1200,12 @@ static int ac108_codec_probe(struct snd_soc_codec *codec)
                ac101_codec_probe(codec);
        }
 
+       /* change default volume */
+       ac108_multi_update_bits(ADC1_DVOL_CTRL, 0xff, 0xc8, ac10x);
+       ac108_multi_update_bits(ADC2_DVOL_CTRL, 0xff, 0xc8, ac10x);
+       ac108_multi_update_bits(ADC3_DVOL_CTRL, 0xff, 0xc8, ac10x);
+       ac108_multi_update_bits(ADC4_DVOL_CTRL, 0xff, 0xc8, ac10x);
+
        return 0;
 }