]> git.hungrycats.org Git - linux/commit
ALSA: PCM: Allow resume only for suspended streams
authorTakashi Iwai <tiwai@suse.de>
Mon, 24 Jun 2024 12:54:34 +0000 (14:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jul 2024 07:53:35 +0000 (09:53 +0200)
commitfc0d8a1ef247456f6b15b5f88b6c7962dc5e2a75
tree928351f283d322029f2ae4e0a3eedae2b2874926
parente7b75def33eae61ddaad6cb616c517dc3882eb2a
ALSA: PCM: Allow resume only for suspended streams

[ Upstream commit 1225675ca74c746f09211528588e83b3def1ff6a ]

snd_pcm_resume() should bail out if the stream isn't in a suspended
state.  Otherwise it'd allow doubly resume.

Link: https://patch.msgid.link/20240624125443.27808-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/core/pcm_native.c