Skip to contentSkip to conversation

ASoC: Tegra: Suspend/resume support

PATCH Applied Stephen Warren 2 participants 2 messages Apr 6, 2011 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ASoC: Tegra: Suspend/resume support

ASoC machine drivers that are their own platform_driver (as opposed to those using the soc-audio platform_driver) need to explicitly set up power-management operation callbacks.

To avoid cut/paste, snd_soc_pm_ops also needs to be exported.

---
v2: Export and use snd_soc_pm_ops directly instead of lazily cut and
pasting it.

 sound/soc/soc-core.c      |    1 +
 sound/soc/tegra/harmony.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
sound/soc/soc-core.c +1 -0
index 0cf6997..1c7e82a 100644
@@ -2060,6 +2060,7 @@ const struct dev_pm_ops snd_soc_pm_ops = {
 	.resume = snd_soc_resume,
 	.poweroff = snd_soc_poweroff,
 };
+EXPORT_SYMBOL_GPL(snd_soc_pm_ops);
 
 /* ASoC platform driver */
 static struct platform_driver soc_driver = {
sound/soc/tegra/harmony.c +1 -0
index 8585957..556a571 100644
@@ -370,6 +370,7 @@ static struct platform_driver tegra_snd_harmony_driver = {
 	.driver = {
 		.name = DRV_NAME,
 		.owner = THIS_MODULE,
+		.pm = &snd_soc_pm_ops,
 	},
 	.probe = tegra_snd_harmony_probe,
 	.remove = __devexit_p(tegra_snd_harmony_remove),
Signature · 1 line
1.7.1

A message that is not in the archive (sent off-list or not yet received): 1302053730-1658-1-git-send-email-swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org

Applied
#2 lore raw
Quoted 5 lines · Stephen Warren

ASoC machine drivers that are their own platform_driver (as opposed to those using the soc-audio platform_driver) need to explicitly set up power-management operation callbacks.

To avoid cut/paste, snd_soc_pm_ops also needs to be exported.

Applied, thanks.