Merge tag 'asoc-v5.3' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie...
[linux-2.6-block.git] / sound / pci / hda / patch_hdmi.c
index b7bde55b6adf1ab2278fe2d3215a0bfb6903f059..40323d91f9e4f91683ed03e1e006690a569b4252 100644 (file)
@@ -1614,7 +1614,8 @@ static void sync_eld_via_acomp(struct hda_codec *codec,
        if (jack == NULL)
                goto unlock;
        snd_jack_report(jack,
-                       eld->monitor_present ? SND_JACK_AVOUT : 0);
+                       (eld->monitor_present && eld->eld_valid) ?
+                               SND_JACK_AVOUT : 0);
  unlock:
        mutex_unlock(&per_pin->lock);
 }