Commit 855b5e01 authored by Jaroslav Kysela's avatar Jaroslav Kysela Committed by Takashi Iwai

ALSA: hda/hdmi - consider eld_valid also in sync_eld_via_acomp()

In the commit 7f641e26 (ALSA: hda/hdmi
- Consider eld_valid when reporting jack event) the eld_valid check was
added for the jack event reports. Do the same in sync_eld_via_acomp()
function. Apparently, it is required for the NVIDIA proprietary driver
(monitor presence reported first, but ELD is available later).
Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 3e985eff
...@@ -1627,7 +1627,8 @@ static void sync_eld_via_acomp(struct hda_codec *codec, ...@@ -1627,7 +1627,8 @@ static void sync_eld_via_acomp(struct hda_codec *codec,
if (jack == NULL) if (jack == NULL)
goto unlock; goto unlock;
snd_jack_report(jack, snd_jack_report(jack,
eld->monitor_present ? SND_JACK_AVOUT : 0); (eld->monitor_present && eld->eld_valid) ?
SND_JACK_AVOUT : 0);
unlock: unlock:
mutex_unlock(&per_pin->lock); mutex_unlock(&per_pin->lock);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment