Browse Source

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 <zidan.wang@freescale.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Zidan Wang 10 years ago
parent
commit
43ac946922
1 changed files with 1 additions and 0 deletions
  1. 1 0
      sound/soc/fsl/imx-spdif.c

+ 1 - 0
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,