ASoC: rockchip: rk817-codec: do power down list without playback and capture

Change-Id: Iba2b6ccd6ca5d27f855c10e30a077cb657bf0bc8
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
This commit is contained in:
Xing Zheng
2022-10-08 22:10:07 +08:00
parent 1f37099553
commit bd7cc07158

View File

@@ -699,8 +699,11 @@ static int rk817_capture_path_config(struct snd_soc_component *component,
switch (rk817->capture_path) {
case MIC_OFF:
if (pre_path != MIC_OFF)
if (pre_path != MIC_OFF) {
rk817_codec_power_down(component, RK817_CODEC_CAPTURE);
if (rk817->playback_path == OFF)
rk817_codec_power_down(component, RK817_CODEC_ALL);
}
break;
case MAIN_MIC:
if (pre_path == MIC_OFF)