[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1515670468-9198-1-git-send-email-abhijeet.kumar@intel.com>
Date: Thu, 11 Jan 2018 17:04:27 +0530
From: abhijeet.kumar@...el.com
To: Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>, Jeeja KP <jeeja.kp@...el.com>,
Vinod Koul <vinod.koul@...el.com>,
"Subhransu S. Prusty" <subhransu.s.prusty@...el.com>,
Guneshwor Singh <guneshwor.o.singh@...el.com>,
Sandeep Tayal <sandeepx.tayal@...el.com>,
alsa-devel@...a-project.org, linux-kernel@...r.kernel.org
Cc: abhijeet.kumar@...el.com
Subject: [PATCH] ASoC: hdac_hdmi: Ensuring proper setting of output widget power state
From: Abhijeet Kumar <abhijeet.kumar@...el.com>
When we change the resolution of DP pannel or hot plug-unplug it while
playing an audio clip,sometimes we observe a silent playback(no audio).
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 <abhijeet.kumar@...el.com>
---
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);
}
}
--
1.9.1
Powered by blists - more mailing lists