From: Takashi Iwai Subject: Re: [PATCH 06/21] ASoC: SOF: Intel: Add Intel specific HDA DSP HW operations Date: Wed, 12 Dec 2018 13:04:11 +0100 Message-ID: References: <20181211213029.28801-1-pierre-louis.bossart@linux.intel.com> <20181211213029.28801-7-pierre-louis.bossart@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: In-Reply-To: <20181211213029.28801-7-pierre-louis.bossart@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: Pierre-Louis Bossart Cc: alsa-devel@alsa-project.org, andriy.shevchenko@intel.com, Keyon Jie , Daniel Baluta , liam.r.girdwood@linux.intel.com, vkoul@kernel.org, broonie@kernel.org, sound-open-firmware@alsa-project.org, Alan Cox List-Id: alsa-devel@alsa-project.org On Tue, 11 Dec 2018 22:30:14 +0100, Pierre-Louis Bossart wrote: > > +int hda_dsp_resume(struct snd_sof_dev *sdev) > +{ > + struct hdac_bus *bus = sof_to_bus(sdev); > + int ret; > + > + /* turn display power on */ > + ret = hda_codec_i915_get(sdev); OK, we need to change this one for following my latest HD-audio PM refactoring... > + if (ret < 0) { > + dev_err(bus->dev, "error: cannot turn on display power on i915 after resume\n"); > + return ret; > + } > + > + /* init hda controller and power dsp up */ > + return hda_resume(sdev); > +} > + > +int hda_dsp_runtime_resume(struct snd_sof_dev *sdev) > +{ > + /* init hda controller and power dsp up */ > + return hda_resume(sdev); > +} But why can't runtime PM turn on/off the display power? thanks, Takashi