summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhang Yi <zhangyi@everest-semi.com>2024-08-07 10:53:56 +0800
committerMark Brown <broonie@kernel.org>2024-08-08 09:17:14 +0100
commitbe942e3d20cf666f6174f47826914c3b5ea61d85 (patch)
treea5499e0936f1d51f08fc8c140f42591a5bc35043
parent7063a710830a09b01734be7f4ffd23f0ef72a57e (diff)
downloadlinux-be942e3d20cf666f6174f47826914c3b5ea61d85.tar.gz
linux-be942e3d20cf666f6174f47826914c3b5ea61d85.tar.bz2
linux-be942e3d20cf666f6174f47826914c3b5ea61d85.zip
ASoC: codecs: ES8326: input issue after init
We found an input issue after initiation.So we added the default input source at initiation. Signed-off-by: Zhang Yi <zhangyi@everest-semi.com> Link: https://patch.msgid.link/20240807025356.24904-3-zhangyi@everest-semi.com Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/codecs/es8326.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/es8326.c b/sound/soc/codecs/es8326.c
index 60877116c0ef..132aed28b1aa 100644
--- a/sound/soc/codecs/es8326.c
+++ b/sound/soc/codecs/es8326.c
@@ -1068,6 +1068,8 @@ static void es8326_init(struct snd_soc_component *component)
regmap_write(es8326->regmap, ES8326_ADC_MUTE, 0x0f);
regmap_write(es8326->regmap, ES8326_CLK_DIV_LRCK, 0xff);
+ regmap_write(es8326->regmap, ES8326_ADC1_SRC, 0x44);
+ regmap_write(es8326->regmap, ES8326_ADC2_SRC, 0x66);
es8326_disable_micbias(es8326->component);
msleep(200);