ASoC: audio-graph-card: Add pm callbacks to platform driver
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 22 Aug 2017 04:56:44 +0000 (04:56 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 23 Aug 2017 10:18:59 +0000 (11:18 +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-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-card.c

index 105ec3a6e30df8340d62d1be45e1bb8577956672..63048915efbb912a8cbda8e22517dd149f21826c 100644 (file)
@@ -325,6 +325,7 @@ MODULE_DEVICE_TABLE(of, asoc_graph_of_match);
 static struct platform_driver asoc_graph_card = {
        .driver = {
                .name = "asoc-audio-graph-card",
+               .pm = &snd_soc_pm_ops,
                .of_match_table = asoc_graph_of_match,
        },
        .probe = asoc_graph_card_probe,