From 20d8a7925f1507dde173d002eac7060c422c3448 Mon Sep 17 00:00:00 2001 From: Xing Zheng Date: Mon, 15 Mar 2021 16:52:54 +0800 Subject: [PATCH] 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 --- sound/soc/codecs/rk817_codec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sound/soc/codecs/rk817_codec.c b/sound/soc/codecs/rk817_codec.c index bf63553ab77a..fc55cfe88076 100644 --- a/sound/soc/codecs/rk817_codec.c +++ b/sound/soc/codecs/rk817_codec.c @@ -1043,6 +1043,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; }