ASoC: audio-graph-scu-card: Add pm callbacks to platform driver
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 22 Aug 2017 04:57:12 +0000 (04:57 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 23 Aug 2017 10:19:02 +0000 (11:19 +0100)
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 <hiroyuki.yokoyama.vx@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/generic/audio-graph-scu-card.c

index dcd2df37bc3bfbd78e1f0d7bbb50b5192a89cc2d..da73e5d066887d66c2e52dea680eaebd5c2a8cd6 100644 (file)
@@ -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,