Patch "ALSA: hda/hdmi: Fix the converter reuse for the silent stream" has been added to the 5.15-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    ALSA: hda/hdmi: Fix the converter reuse for the silent stream

to the 5.15-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     alsa-hda-hdmi-fix-the-converter-reuse-for-the-silent.patch
and it can be found in the queue-5.15 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit a18e36e5c401221b080ff9542486ad6ebc489166
Author: Jaroslav Kysela <perex@xxxxxxxx>
Date:   Tue Sep 13 09:02:16 2022 +0200

    ALSA: hda/hdmi: Fix the converter reuse for the silent stream
    
    [ 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@xxxxxxxxxxxxxxx>
    Signed-off-by: Jaroslav Kysela <perex@xxxxxxxx>
    Link: https://lore.kernel.org/r/20220913070216.3233974-1-perex@xxxxxxxx
    Signed-off-by: Takashi Iwai <tiwai@xxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c
index d3da42e0e7b3..1994a83fa391 100644
--- a/sound/pci/hda/patch_hdmi.c
+++ b/sound/pci/hda/patch_hdmi.c
@@ -1270,6 +1270,7 @@ static int hdmi_pcm_open(struct hda_pcm_stream *hinfo,
 	set_bit(pcm_idx, &spec->pcm_in_use);
 	per_pin = get_pin(spec, pin_idx);
 	per_pin->cvt_nid = per_cvt->cvt_nid;
+	per_pin->silent_stream = false;
 	hinfo->nid = per_cvt->cvt_nid;
 
 	/* flip stripe flag for the assigned stream if supported */



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux