From: Xingyu Wu Date: Mon, 5 Sep 2022 06:34:47 +0000 (+0800) Subject: sound:codecs:ac108:Change default volume X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ef7704e855f7031bcc03c9b8f9839412e11e7286;p=platform%2Fkernel%2Flinux-starfive.git sound:codecs:ac108:Change default volume ac108:Change default volume and make it louder. Signed-off-by: Xingyu Wu --- diff --git a/sound/soc/codecs/ac108.c b/sound/soc/codecs/ac108.c index 8cd6413..29303f6 100755 --- a/sound/soc/codecs/ac108.c +++ b/sound/soc/codecs/ac108.c @@ -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; }