mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
ALSA: mtpav: restore negation dropped in guard() conversion
commit316e0074ec("ALSA: mtpav: Use guard() for spin locks") claims to be "Merely code refactoring, and no behavior change", but it accidentally dropped the "!" from if (! (portp->mode & MTPAV_MODE_OUTPUT_TRIGGERED)) in snd_mtpav_output_trigger(). Restore the negation. Fixes:316e0074ec("ALSA: mtpav: Use guard() for spin locks") Signed-off-by: Wang Yan <wangyan01@kylinos.cn> Cc: <stable@vger.kernel.org> Link: https://patch.msgid.link/20261020090959.570101-1-wangyan01@kylinos.cn Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
0ade01edd3
commit
47c3d5b885
|
|
@ -443,7 +443,7 @@ static void snd_mtpav_output_trigger(struct snd_rawmidi_substream *substream, in
|
|||
|
||||
scoped_guard(spinlock_irqsave, &mtp_card->spinlock) {
|
||||
if (up) {
|
||||
if ((portp->mode & MTPAV_MODE_OUTPUT_TRIGGERED)) {
|
||||
if (!(portp->mode & MTPAV_MODE_OUTPUT_TRIGGERED)) {
|
||||
if (mtp_card->istimer++ == 0)
|
||||
snd_mtpav_add_output_timer(mtp_card);
|
||||
portp->mode |= MTPAV_MODE_OUTPUT_TRIGGERED;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user