ALSA: hda/tegra: add runtime PM callbacks
authorSameer Pujar <spujar@nvidia.com>
Tue, 22 Jan 2019 07:33:18 +0000 (13:03 +0530)
committerTakashi Iwai <tiwai@suse.de>
Tue, 22 Jan 2019 08:21:54 +0000 (09:21 +0100)
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>
sound/pci/hda/hda_tegra.c

index 28e1656..1189f97 100644 (file)
@@ -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)