From: Kuninori Morimoto Date: Tue, 22 Aug 2017 04:57:12 +0000 (+0000) Subject: ASoC: audio-graph-scu-card: Add pm callbacks to platform driver X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0995fb7c9802dd76422db384991f32296f8fbe1f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ASoC: audio-graph-scu-card: Add pm callbacks to platform driver Set snd_soc_pm_ops for the pm ops to make sure that the ASoC level of PM operations are going to happen. This is needed to get suspend/resume working correctly when the audio is using audio-graph-scu-card. Reported-by: Hiroyuki Yokoyama Signed-off-by: Kuninori Morimoto Signed-off-by: Mark Brown --- diff --git a/sound/soc/generic/audio-graph-scu-card.c b/sound/soc/generic/audio-graph-scu-card.c index dcd2df37bc3b..da73e5d06688 100644 --- a/sound/soc/generic/audio-graph-scu-card.c +++ b/sound/soc/generic/audio-graph-scu-card.c @@ -398,6 +398,7 @@ MODULE_DEVICE_TABLE(of, asoc_graph_of_match); static struct platform_driver asoc_graph_card = { .driver = { .name = "asoc-audio-graph-scu-card", + .pm = &snd_soc_pm_ops, .of_match_table = asoc_graph_of_match, }, .probe = asoc_graph_card_probe,