diff options
author | Takashi Iwai <tiwai@suse.de> | 2021-02-06 21:36:55 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-02-08 16:00:49 +0100 |
commit | 700cb70730777c159a988e01daa93f20a1ae9b58 (patch) | |
tree | d4d0657bc5af6ebb014030a45351196ccf1c3f3d /drivers | |
parent | 2c87c1a49c9d113a9f3e8e951d7d64be5ff50ac1 (diff) | |
download | linux-700cb70730777c159a988e01daa93f20a1ae9b58.tar.bz2 |
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>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions