From: Takashi Iwai Subject: Re: [PATCH] ALSA: hda - Enable runtime pm for Haswell Date: Thu, 16 May 2013 10:49:23 +0200 Message-ID: References: <1368692945-2122-1-git-send-email-xingchao.wang@linux.intel.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id D7CD5265375 for ; Thu, 16 May 2013 10:49:30 +0200 (CEST) In-Reply-To: <1368692945-2122-1-git-send-email-xingchao.wang@linux.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Wang Xingchao Cc: jocelyn.li@intel.com, mengdong.lin@intel.com, alsa-devel@alsa-project.org, xingchao.wang@intel.com, liam.r.girdwood@intel.com List-Id: alsa-devel@alsa-project.org At Thu, 16 May 2013 16:29:05 +0800, Wang Xingchao wrote: > > 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 I don't think it's good to fiddle such a thing in the driver side. If Haswell can support runtime PM really, it should be set commonly. Takashi > --- > 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 >