summaryrefslogtreecommitdiff
path: root/sound/pci
diff options
context:
space:
mode:
authorMohan Kumar <mkumard@nvidia.com>2014-01-29 17:47:05 +0530
committerBharat Nihalani <bnihalani@nvidia.com>2014-02-06 01:40:55 -0800
commit60c5b31e0b53eef549f929f7040e178c53bdae69 (patch)
treef692cd9d4dfd01346d4873c6c3c538ddb1774789 /sound/pci
parent444597afa61b09cd09d81b0cdf9a88c0c140f1f6 (diff)
sound: hda: do not decrement refcount on resume
after system resume device state is change to active and codec power work handler takes care of powering down if it is idle for some time. Bug 1447475 Change-Id: Icabb82ebacc7bf79730e2b7aaac1a87675959cf2 Signed-off-by: Mohan Kumar <mkumard@nvidia.com> Reviewed-on: http://git-master/r/361495 Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com> Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/hda/hda_intel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index ea5112f75a10..5ebac87f18c7 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -3252,6 +3252,11 @@ static int azx_resume(struct device *dev)
snd_hda_resume(chip->bus);
snd_power_change_state(card, SNDRV_CTL_POWER_D0);
+#ifdef CONFIG_SND_HDA_PLATFORM_DRIVER
+ if (chip->pdev)
+ pm_runtime_put(chip->dev);
+#endif
+
return 0;
}
#endif /* CONFIG_PM_SLEEP || SUPPORT_VGA_SWITCHEROO */