ASoC: Tegra: Suspend/resume support
authorStephen Warren <swarren@nvidia.com>
Wed, 6 Apr 2011 01:35:30 +0000 (19:35 -0600)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 6 Apr 2011 14:13:48 +0000 (23:13 +0900)
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.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-core.c
sound/soc/tegra/harmony.c

index b76b74db0968d18d360e02aeb59ebc6e802c99fe..960718b3beb88fa8065b71fff37a0596587be8cc 100644 (file)
@@ -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 = {
index 8585957477eb4425f26a7d87d2a33ea36e260d85..556a5713392511cef367595b9d9df3f4cf2abfdc 100644 (file)
@@ -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),