From 60c5b31e0b53eef549f929f7040e178c53bdae69 Mon Sep 17 00:00:00 2001 From: Mohan Kumar Date: Wed, 29 Jan 2014 17:47:05 +0530 Subject: 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 Reviewed-on: http://git-master/r/361495 Reviewed-by: Prashant Gaikwad Reviewed-by: Sumit Bhattacharya --- sound/pci/hda/hda_intel.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sound/pci') 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 */ -- cgit v1.2.3