ASoC: rockchip: rk817-codec: add support recover playback/capture path after resume

[Fix and using new sound APIs (snd_soc_kcontrol_component()/snd_soc_component_get_drvdata())]

Change-Id: I52487370ce33b057d9cf774b7c0cef06f2c98bca
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
This commit is contained in:
Xing Zheng
2021-03-15 16:52:54 +08:00
committed by Tao Huang
parent 88344894fa
commit 07ee28e836

View File

@@ -1050,6 +1050,10 @@ static int rk817_suspend(struct snd_soc_component *component)
static int rk817_resume(struct snd_soc_component *component)
{
struct rk817_codec_priv *rk817 = snd_soc_component_get_drvdata(component);
rk817_capture_path_config(component, OFF, rk817->capture_path);
rk817_playback_path_config(component, OFF, rk817->playback_path);
return 0;
}