]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ALSA: pcm: Don't call sync_stop if it hasn't been stopped
authorTakashi Iwai <tiwai@suse.de>
Sat, 6 Feb 2021 20:36:55 +0000 (21:36 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 8 Feb 2021 15:00:49 +0000 (16:00 +0100)
commit700cb70730777c159a988e01daa93f20a1ae9b58
treed4d0657bc5af6ebb014030a45351196ccf1c3f3d
parent2c87c1a49c9d113a9f3e8e951d7d64be5ff50ac1
ALSA: pcm: Don't call sync_stop if it hasn't been stopped

The PCM stop operation sets the stop_operating flag for indicating the
sync_stop post-process.  This flag is, however, set unconditionally
even if the PCM trigger weren't issued.  This may lead to
inconsistency in the driver side.

Correct the code to set stop_operating flag only after the trigger
STOP is actually called.

Fixes: 1e850beea278 ("ALSA: pcm: Add the support for sync-stop operation")
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20210206203656.15959-4-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c