You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user