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

index 0bb3da755532a59f27f4d92eb8b9449bb2d82fcb..48606c63562a7694a83fe7b4d38210908d38ad4e 100644 (file)
@@ -300,6 +300,7 @@ MODULE_DEVICE_TABLE(of, asoc_simple_of_match);
 static struct platform_driver asoc_simple_card = {
        .driver = {
                .name = "simple-scu-audio-card",
+               .pm = &snd_soc_pm_ops,
                .of_match_table = asoc_simple_of_match,
        },
        .probe = asoc_simple_card_probe,