mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user