Browse Source

ASoC: simple-card: Add pm callbacks to platform driver

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-card.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Peter Ujfalusi 9 years ago
parent
commit
7c3767115a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      sound/soc/generic/simple-card.c

+ 1 - 0
sound/soc/generic/simple-card.c

@@ -643,6 +643,7 @@ MODULE_DEVICE_TABLE(of, asoc_simple_of_match);
 static struct platform_driver asoc_simple_card = {
 static struct platform_driver asoc_simple_card = {
 	.driver = {
 	.driver = {
 		.name = "asoc-simple-card",
 		.name = "asoc-simple-card",
+		.pm = &snd_soc_pm_ops,
 		.of_match_table = asoc_simple_of_match,
 		.of_match_table = asoc_simple_of_match,
 	},
 	},
 	.probe = asoc_simple_card_probe,
 	.probe = asoc_simple_card_probe,