All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ALSA: hda - Enable runtime pm for Haswell
@ 2013-05-16  8:29 Wang Xingchao
  2013-05-16  8:49 ` Takashi Iwai
  0 siblings, 1 reply; 8+ messages in thread
From: Wang Xingchao @ 2013-05-16  8:29 UTC (permalink / raw)
  To: tiwai
  Cc: alsa-devel, jocelyn.li, mengdong.lin, Wang Xingchao,
	xingchao.wang, liam.r.girdwood

Haswell doesnot support runtime pm by default.
This patch let haswell Display HD-A controller enter
runtime suspend, and bring more power saving whith power-well.

Signed-off-by: Wang Xingchao <xingchao.wang@linux.intel.com>
---
 sound/pci/hda/hda_intel.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index bf27693..eb25888 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -3755,6 +3755,12 @@ static int azx_probe(struct pci_dev *pci,
 
 	if (pci_dev_run_wake(pci))
 		pm_runtime_put_noidle(&pci->dev);
+	else if (chip->driver_caps
+			& AZX_DCAPS_I915_POWERWELL) {
+		/* Haswell doesnot support runtime pm by default */
+		pm_runtime_put_noidle(&pci->dev);
+		pm_runtime_allow(&pci->dev);
+	}
 
 	dev++;
 	complete_all(&chip->probe_wait);
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-05-31  3:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-16  8:29 [PATCH] ALSA: hda - Enable runtime pm for Haswell Wang Xingchao
2013-05-16  8:49 ` Takashi Iwai
2013-05-16 12:04   ` Wang, Xingchao
2013-05-22  3:56   ` Wang, Xingchao
2013-05-22  5:51     ` Takashi Iwai
     [not found]       ` <519CA768.5020305@intel.com>
2013-05-23  2:59         ` Wang, Xingchao
2013-05-27 13:02           ` Rafael J. Wysocki
2013-05-31  3:43             ` Wang, Xingchao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.