Skip to contentSkip to conversation

ASoC: hdac_hdmi: Ensuring proper setting of output widget power state

PATCH New [email protected] 1 participant 1 message Jan 12, 2018 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 1515670468-9198-1

#1 lore raw

PATCH v2 1/1 ASoC: hdac_hdmi: Ensuring proper setting of output widget power state

From: Abhijeet Kumar <[email protected]>

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.

---
Changes in v2:
- update commit message

 sound/soc/codecs/hdac_hdmi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/hdac_hdmi.c +1 -1
index f3b4f4dfae6a..e24caecf0a4f 100644
@@ -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);
 	}
 }
Signature · 1 line
1.9.1