[alsa-devel] [PATCH] ALSA: hda - Update HDMI monitor_present from a temporary structure
Hyungwon Hwang
hyungwon.hwang7 at gmail.com
Wed Apr 13 02:27:39 CEST 2016
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 at 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
More information about the Alsa-devel
mailing list