From: Zidan Wang Date: Fri, 18 Sep 2015 09:18:48 +0000 (+0800) Subject: ASoC: imx-spdif: add snd_soc_pm_ops for spdif machine driver X-Git-Tag: firefly_0821_release~176^2~581^2~9^2^4~7^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=43ac946922b337507c4131c45bf339ddcd7e7402;p=firefly-linux-kernel-4.4.55.git ASoC: imx-spdif: add snd_soc_pm_ops for spdif machine driver Add snd_soc_pm_ops in machine driver to make the trigger suspend/resume be called in suspend/resume. Signed-off-by: Zidan Wang Signed-off-by: Mark Brown --- diff --git a/sound/soc/fsl/imx-spdif.c b/sound/soc/fsl/imx-spdif.c index 33da26a12457..a407e833c612 100644 --- a/sound/soc/fsl/imx-spdif.c +++ b/sound/soc/fsl/imx-spdif.c @@ -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,