mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user