ALSA: hda/hdmi: Drop bogus check at closing a stream
PATCH 1/1 ALSA: hda/hdmi: Drop bogus check at closing a stream
Some users reported the kernel WARNING with stack traces from hdmi_pcm_close(), and it's the line checking the per_cvt->assigned flag. This used to be a valid check in the past because the flag was turned on/off only at opening and closing a PCM stream. Meanwhile, since the introduction of the silent-stream mode, this flag may be turned on/off at the monitor connection/disconnection time, which isn't always associated with the PCM open/close. Hence this may lead to the inconsistent per_cvt->assigned flag at closing.
As the check itself became almost useless and confuses users as if it were a serious problem, just drop the check.
--- sound/pci/hda/patch_hdmi.c | 1 - 1 file changed, 1 deletion(-)
sound/pci/hda/patch_hdmi.c +0 -1
@@ -2130,7 +2130,6 @@ static int hdmi_pcm_close(struct hda_pcm_stream *hinfo, goto unlock; } per_cvt =get_cvt (spec, cvt_idx); -snd_BUG_ON (!per_cvt->assigned); per_cvt->assigned =0 ; hinfo->nid =0 ;
Signature · 1 line
2.26.2
Hi,
Quoted 6 lines · Takashi Iwai
Some users reported the kernel WARNING with stack traces from
hdmi_pcm_close(), and it's the line checking theper_cvt->assignedflag. This used to be a valid check in the past because the flag was turned on/off only at opening and closing a PCM stream. Meanwhile, since the introduction of the silent-stream mode, this flag may be turned on/off at the monitor connection/disconnection time, which
ack, this needs to be removed:
Br, Kai