Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965393AbeALVJM (ORCPT + 1 other); Fri, 12 Jan 2018 16:09:12 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:60072 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965244AbeALVJJ (ORCPT ); Fri, 12 Jan 2018 16:09:09 -0500 From: Mark Brown To: Abhijeet Kumar Cc: Mark Brown , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Jeeja KP , Vinod Koul , "Subhransu S. Prusty" , Guneshwor Singh , Sandeep Tayal , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, abhijeet.kumar@intel.com, alsa-devel@alsa-project.org Subject: Applied "ASoC: hdac_hdmi: Ensuring proper setting of output widget power state" to the asoc tree In-Reply-To: <1515670468-9198-1-git-send-email-abhijeet.kumar@intel.com> Message-Id: Date: Fri, 12 Jan 2018 21:08:53 +0000 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: The patch ASoC: hdac_hdmi: Ensuring proper setting of output widget power state has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark >From a04ba2b3dc6c14bedd5efca442d6039690562951 Mon Sep 17 00:00:00 2001 From: Abhijeet Kumar Date: Fri, 12 Jan 2018 14:02:54 +0530 Subject: [PATCH] ASoC: hdac_hdmi: Ensuring proper setting of output widget power state In usecases like hot plug-unplug DP panel or modeset during a playback, sometimes we observe no audio after codec resets. During no audio condition, we have noticed that the power state of the pin or the connector is D3. Optimzing the way we set the power could mitigate the issue. With this changes the verb is sent to set the power state and response is received. Thus ensuring power state is set. Signed-off-by: Abhijeet Kumar Signed-off-by: Mark Brown --- sound/soc/codecs/hdac_hdmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/hdac_hdmi.c b/sound/soc/codecs/hdac_hdmi.c index f3b4f4dfae6a..e24caecf0a4f 100644 --- a/sound/soc/codecs/hdac_hdmi.c +++ b/sound/soc/codecs/hdac_hdmi.c @@ -718,7 +718,7 @@ static void hdac_hdmi_set_power_state(struct hdac_ext_device *edev, { if (get_wcaps(&edev->hdac, nid) & AC_WCAP_POWER) { if (!snd_hdac_check_power_state(&edev->hdac, nid, pwr_state)) - snd_hdac_codec_write(&edev->hdac, nid, 0, + snd_hdac_codec_read(&edev->hdac, nid, 0, AC_VERB_SET_POWER_STATE, pwr_state); } } -- 2.15.1