]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda/hdmi: Fix the converter reuse for the silent stream
authorJaroslav Kysela <perex@perex.cz>
Tue, 13 Sep 2022 07:02:16 +0000 (09:02 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 16 Sep 2022 14:15:20 +0000 (16:15 +0200)
commit525c1b07a8a49063d4a5bb03e1c63a41a1f1517e
treed1e56468d58dab9d4166c5ec6ca2125857de3146
parent2a5711d609a17842f16aa80dc5322dc4b878ace0
ALSA: hda/hdmi: Fix the converter reuse for the silent stream

When the user space pcm stream uses the silent stream converter,
it is no longer allocated for the silent stream. Clear the appropriate
flag in the hdmi_pcm_open() function. The silent stream setup may
be applied in hdmi_pcm_close() (and the error path - open fcn) again.

If the flag is not cleared, the reuse conditions for the silent
stream converter in hdmi_choose_cvt() may improperly share
this converter.

Cc: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Link: https://lore.kernel.org/r/20220913070216.3233974-1-perex@perex.cz
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_hdmi.c