All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ALSA: hda - Update HDMI monitor_present from a temporary structure
@ 2016-04-13  0:27 Hyungwon Hwang
  2016-04-13  7:33 ` Takashi Iwai
  0 siblings, 1 reply; 4+ messages in thread
From: Hyungwon Hwang @ 2016-04-13  0:27 UTC (permalink / raw)
  To: perex, tiwai, alsa-devel; +Cc: Hyungwon Hwang

pin_eld is a temporary structure. So before calling update_eld(),
eld should be updated from pin_eld.

Signed-off-by: Hyungwon Hwang <hyungwon.hwang7@gmail.com>
---
 sound/pci/hda/patch_hdmi.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c
index 5af372d..9de114d 100644
--- a/sound/pci/hda/patch_hdmi.c
+++ b/sound/pci/hda/patch_hdmi.c
@@ -1414,6 +1414,8 @@ static bool hdmi_present_sense_via_verbs(struct hdmi_spec_per_pin *per_pin,
 
 	mutex_lock(&per_pin->lock);
 	pin_eld->monitor_present = !!(present & AC_PINSENSE_PRESENCE);
+	eld->monitor_present = pin_eld->monitor_present;
+
 	if (pin_eld->monitor_present)
 		eld->eld_valid  = !!(present & AC_PINSENSE_ELDV);
 	else
-- 
2.5.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-04-13 15:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-13  0:27 [PATCH] ALSA: hda - Update HDMI monitor_present from a temporary structure Hyungwon Hwang
2016-04-13  7:33 ` Takashi Iwai
2016-04-13 14:53   ` Hyungwon Hwang
2016-04-13 15:01     ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.