]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: sb: Don't allow changing the DMA mode during operations
authorTakashi Iwai <tiwai@suse.de>
Tue, 10 Jun 2025 06:43:19 +0000 (08:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2025 13:57:46 +0000 (15:57 +0200)
commit73337c003f3d1a8ffdd3010eb358e4fcd1bf271c
tree68ef9be676e04b7daf40a74eff8aa9486b86764b
parent5deab0fa6cfd0cd7def17598db15ceb84f950584
ALSA: sb: Don't allow changing the DMA mode during operations

[ Upstream commit ed29e073ba93f2d52832804cabdd831d5d357d33 ]

When a PCM stream is already running, one shouldn't change the DMA
mode via kcontrol, which may screw up the hardware.  Return -EBUSY
instead.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=218185
Link: https://patch.msgid.link/20250610064322.26787-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/isa/sb/sb16_main.c