summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManjula Gupta <magupta@nvidia.com>2010-07-27 18:29:37 +0530
committerBharat Nihalani <bnihalani@nvidia.com>2010-07-28 05:34:30 -0700
commitd484b7d51e9fd73edd63c8b9cc80343d687d40fa (patch)
tree75325f35d2a91692730ea89275a10b35cecf6558
parent17622b4635d65007e94b49a33d0888f0bee90f07 (diff)
[tegra ALSA] Add Suspend/Resume callbacks
Adding stub callbacks for suspend/resume. For Bug 695593 Change-Id: Ic8ece5f87ac98094b9aeeea43e5265cdbd218f26 Reviewed-on: http://git-master/r/4460 Tested-by: Manjula Gupta <magupta@nvidia.com> Reviewed-by: Vijay Mali <vmali@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
-rw-r--r--sound/soc/tegra/tegra_pcm_rpc.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/sound/soc/tegra/tegra_pcm_rpc.c b/sound/soc/tegra/tegra_pcm_rpc.c
index b1f78ab6e208..cf2be772b802 100644
--- a/sound/soc/tegra/tegra_pcm_rpc.c
+++ b/sound/soc/tegra/tegra_pcm_rpc.c
@@ -780,6 +780,22 @@ static int tegra_pcm_remove(struct platform_device *pdev)
return 0;
}
+#ifdef CONFIG_PM
+static int tegra_pcm_suspend(struct snd_soc_dai *dai)
+{
+ return 0;
+}
+
+static int tegra_pcm_resume(struct snd_soc_dai *dai)
+{
+ return 0;
+}
+
+#else
+#define tegra_pcm_suspend NULL
+#define tegra_pcm_resume NULL
+#endif
+
struct snd_soc_platform tegra_soc_platform = {
.name = "tegra-audio",
.probe = tegra_pcm_probe,
@@ -787,6 +803,8 @@ struct snd_soc_platform tegra_soc_platform = {
.pcm_ops = &tegra_pcm_ops,
.pcm_new = tegra_pcm_new,
.pcm_free = tegra_pcm_free_dma_buffers,
+ .suspend = tegra_pcm_suspend,
+ .resume = tegra_pcm_resume,
};
EXPORT_SYMBOL_GPL(tegra_soc_platform);