ALSA: hda - Fix forgotten HDMI monitor_present update
authorTakashi Iwai <tiwai@suse.de>
Fri, 18 Mar 2016 17:01:53 +0000 (18:01 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 18 Mar 2016 17:01:53 +0000 (18:01 +0100)
We forgot to copy monitor_present value when updating the ELD
information.  This won't change the ELD retrieval and the jack
notification behavior, but appears only in the proc output.   In that
sense, it's no fatal error, but a bug is a bug is a bug.

Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_hdmi.c

index 8cdb804aa9cffa2f61e58295566fb418f623bbbc..e7d9453ecd10b7f7928318ed6ffc4e9a7d53f9e7 100644 (file)
@@ -1358,6 +1358,7 @@ static void update_eld(struct hda_codec *codec,
                           eld->eld_size) != 0)
                        eld_changed = true;
 
+       pin_eld->monitor_present = eld->monitor_present;
        pin_eld->eld_valid = eld->eld_valid;
        pin_eld->eld_size = eld->eld_size;
        if (eld->eld_valid)