ASoC: imx-spdif: add snd_soc_pm_ops for spdif machine driver
authorZidan Wang <zidan.wang@freescale.com>
Fri, 18 Sep 2015 09:18:48 +0000 (17:18 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 5 Oct 2015 16:25:45 +0000 (17:25 +0100)
Add snd_soc_pm_ops in machine driver to make the trigger suspend/resume
be called in suspend/resume.

Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/imx-spdif.c

index 33da26a1245718f4b6e814bb22e04218ecc340fc..a407e833c612523e90c07a732e9cc472b64252ee 100644 (file)
@@ -89,6 +89,7 @@ MODULE_DEVICE_TABLE(of, imx_spdif_dt_ids);
 static struct platform_driver imx_spdif_driver = {
        .driver = {
                .name = "imx-spdif",
+               .pm = &snd_soc_pm_ops,
                .of_match_table = imx_spdif_dt_ids,
        },
        .probe = imx_spdif_audio_probe,