]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 23 Nov 2022 14:12:07 +0000 (15:12 +0100)
commit867c9881ac7ee6d19a919acd74f40aa0479a498d
tree82e65053bd0f162fb4bf27a0f617bce5bbf1958c
parentdadb305e9ddaad95d0a7ce7d752b0a7505ea02f4
ALSA: hda/hdmi: Fix the converter reuse for the silent stream

BugLink: https://bugs.launchpad.net/bugs/1995637
[ Upstream commit 5f80d6bd2b01de4cafac3302f58456bf860322fc ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
sound/pci/hda/patch_hdmi.c