From mboxrd@z Thu Jan 1 00:00:00 1970 From: Guennadi Liakhovetski Subject: [RFC 07/12] ASoC: SOF: use a macro instead of a hard-coded value Date: Fri, 29 May 2020 09:37:17 +0200 Message-ID: <20200529073722.8184-8-guennadi.liakhovetski@linux.intel.com> References: <20200529073722.8184-1-guennadi.liakhovetski@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20200529073722.8184-1-guennadi.liakhovetski@linux.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: virtualization-bounces@lists.linux-foundation.org Sender: "Virtualization" To: kvm@vger.kernel.org Cc: Ohad Ben-Cohen , Mathieu Poirier , "Michael S. Tsirkin" , linux-remoteproc@vger.kernel.org, Pierre-Louis Bossart , virtualization@lists.linux-foundation.org, Liam Girdwood , Bjorn Andersson , sound-open-firmware@alsa-project.org List-Id: virtualization@lists.linuxfoundation.org target_stats in sof_suspend should contain one of SOF_DSP_PM_* power state macros, not a hard-coded value 0. Signed-off-by: Guennadi Liakhovetski --- sound/soc/sof/pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/sof/pm.c b/sound/soc/sof/pm.c index 5e804a7..c7aa2cf 100644 --- a/sound/soc/sof/pm.c +++ b/sound/soc/sof/pm.c @@ -174,7 +174,7 @@ static int sof_resume(struct device *dev, bool runtime_resume) static int sof_suspend(struct device *dev, bool runtime_suspend) { struct snd_sof_dev *sdev = dev_get_drvdata(dev); - u32 target_state = 0; + u32 target_state = SOF_DSP_PM_D0; int ret; /* do nothing if dsp suspend callback is not set */ -- 1.9.3