From b021dd5871ef570c9bc894eb59440d24a55b4543 Mon Sep 17 00:00:00 2001 From: Binyuan Lan Date: Sat, 19 Oct 2024 09:34:58 +0800 Subject: [PATCH] ASoC: rk817: fix no sound when capture by tinycap or arecord Because I2STX_CKE has been set to disable in rk817_codec_shutdown, then I2STX_CKE_EN should be set when recording. Change-Id: If1201ad12e33dca21eb443bd32750a73c1fa9f67 Signed-off-by: Binyuan Lan --- sound/soc/codecs/rk817_codec.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/rk817_codec.c b/sound/soc/codecs/rk817_codec.c index a60960a2c91c..fc5f1665fd06 100644 --- a/sound/soc/codecs/rk817_codec.c +++ b/sound/soc/codecs/rk817_codec.c @@ -1239,12 +1239,15 @@ static int rk817_digital_mute_adc(struct snd_soc_dai *dai, int mute, int stream) { struct snd_soc_component *component = dai->component; - if (mute) + if (mute) { snd_soc_component_update_bits(component, RK817_CODEC_DTOP_DIGEN_CLKE, I2STX_EN_MASK, I2STX_DIS); - else + } else { snd_soc_component_update_bits(component, RK817_CODEC_DTOP_DIGEN_CLKE, I2STX_EN_MASK, I2STX_EN); + snd_soc_component_update_bits(component, RK817_CODEC_DTOP_DIGEN_CLKE, + I2STX_CKE_EN, I2STX_CKE_EN); + } return 0; }