projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a67533
)
sound:codecs:ac108:Change default volume
author
Xingyu Wu
<xingyu.wu@starfivetech.com>
Mon, 5 Sep 2022 06:34:47 +0000
(14:34 +0800)
committer
Xingyu 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
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/ac108.c
b/sound/soc/codecs/ac108.c
index
8cd6413
..
29303f6
100755
(executable)
--- 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;
}