Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6661702f authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: hda - Don't refer ELD when unplugged



When unplugged, we shouldn't refer to ELD information for PCM open
any more.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Cc: <stable@kernel.org>
parent bcb2f0f5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -827,7 +827,7 @@ static int hdmi_pcm_open(struct hda_pcm_stream *hinfo,
		*codec_pars = *hinfo;

	eld = &spec->sink_eld[idx];
	if (eld->sad_count > 0) {
	if (eld->eld_valid && eld->sad_count > 0) {
		hdmi_eld_update_pcm_info(eld, hinfo, codec_pars);
		if (hinfo->channels_min > hinfo->channels_max ||
		    !hinfo->rates || !hinfo->formats)