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 <lby@rock-chips.com>
This commit is contained in:
Binyuan Lan
2024-10-19 09:34:58 +08:00
committed by Tao Huang
parent fc59a282e7
commit b021dd5871

View File

@@ -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;
}