summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorSameer Pujar <spujar@nvidia.com>2019-01-22 13:03:18 +0530
committerTakashi Iwai <tiwai@suse.de>2019-01-22 09:21:54 +0100
commitf2974aa21a414f9a2421fc69d2e289d3c74b2d3d (patch)
tree7066af37c6e65cb6bf480f7220c2be4bb02ffa75 /sound
parent65af2122e8727a6bf4890a0d2a1d79ea1db323c1 (diff)
downloadlinux-f2974aa21a414f9a2421fc69d2e289d3c74b2d3d.tar.bz2
ALSA: hda/tegra: add runtime PM callbacks
This patch adds skeleton of runtime suspend and resume callbacks. Signed-off-by: Sameer Pujar <spujar@nvidia.com> Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-by: Mohan Kumar D <mkumard@nvidia.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/hda_tegra.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_tegra.c b/sound/pci/hda/hda_tegra.c
index 28e165612189..1189f972cb83 100644
--- a/sound/pci/hda/hda_tegra.c
+++ b/sound/pci/hda/hda_tegra.c
@@ -265,8 +265,23 @@ static int hda_tegra_resume(struct device *dev)
}
#endif /* CONFIG_PM_SLEEP */
+#ifdef CONFIG_PM
+static int hda_tegra_runtime_suspend(struct device *dev)
+{
+ return 0;
+}
+
+static int hda_tegra_runtime_resume(struct device *dev)
+{
+ return 0;
+}
+#endif /* CONFIG_PM */
+
static const struct dev_pm_ops hda_tegra_pm = {
SET_SYSTEM_SLEEP_PM_OPS(hda_tegra_suspend, hda_tegra_resume)
+ SET_RUNTIME_PM_OPS(hda_tegra_runtime_suspend,
+ hda_tegra_runtime_resume,
+ NULL)
};
static int hda_tegra_dev_disconnect(struct snd_device *device)