summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorHyungwon Hwang <hyungwon.hwang7@gmail.com>2016-04-13 09:27:39 +0900
committerTakashi Iwai <tiwai@suse.de>2016-04-13 09:52:26 +0200
commit023d8218ec0dfc30e11d4ec54f640e8f127d1fbe (patch)
tree75b75d55e1542a5fbe81e4967bae191882ee59b5 /sound
parentadcdd0d5a1cb779f6d455ae70882c19c527627a8 (diff)
downloadtalos-obmc-linux-023d8218ec0dfc30e11d4ec54f640e8f127d1fbe.tar.gz
talos-obmc-linux-023d8218ec0dfc30e11d4ec54f640e8f127d1fbe.zip
ALSA: hda - Fix regression of monitor_present flag in eld proc file
The commit [bd48128539ab: ALSA: hda - Fix forgotten HDMI monitor_present update] covered the missing update of monitor_present flag, but this caused a regression for devices without the i915 eld notifier. Since the old code supposed that pin_eld->monitor_present was updated by the caller side, the hdmi_present_sense_via_verbs() doesn't update the temporary eld->monitor_present but only pin_eld->monitor_present, which is now overridden in update_eld(). The fix is to update pin_eld->monitor_present as well before calling update_eld(). Note that this may still leave monitor_present flag in an inconsistent state when the driver repolls, but this is at least the old behavior. More proper fix will follow in the later patch. Fixes: bd48128539ab ('ALSA: hda - Fix forgotten HDMI monitor_present update') Signed-off-by: Hyungwon Hwang <hyungwon.hwang7@gmail.com> Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/patch_hdmi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c
index 5af372d01834..9de114df270b 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
OpenPOWER on IntegriCloud