diff options
author | Takashi Iwai <tiwai@suse.de> | 2021-02-06 23:30:52 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-02-08 18:00:16 +0300 |
commit | 257d2d7e9e798305d65825cb82b0a7d1c0511e89 (patch) | |
tree | f1d1e65ad416ef861172c3ea9e4aa8b5d9ec4599 /sound/usb/endpoint.c | |
parent | 5c2b301476ec493be15546f05e23414e2aa9d472 (diff) | |
download | linux-257d2d7e9e798305d65825cb82b0a7d1c0511e89.tar.xz |
ALSA: usb-audio: Don't avoid stopping the stream at disconnection
In the later patch, we're going to issue the PCM sync_stop calls at
disconnection. But currently the USB-audio driver can't handle it
because it has a check of shutdown flag for stopping the URBs. This
is basically superfluous (the stopping URBs are safe at disconnection
state), so let's drop the check.
Fixes: dc5eafe7787c ("ALSA: usb-audio: Support PCM sync_stop")
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20210206203052.15606-4-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/endpoint.c')
-rw-r--r-- | sound/usb/endpoint.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/usb/endpoint.c b/sound/usb/endpoint.c index 4390075b2c6f..102d53515a76 100644 --- a/sound/usb/endpoint.c +++ b/sound/usb/endpoint.c @@ -890,9 +890,6 @@ static int stop_urbs(struct snd_usb_endpoint *ep, bool force) { unsigned int i; - if (!force && atomic_read(&ep->chip->shutdown)) /* to be sure... */ - return -EBADFD; - if (!force && atomic_read(&ep->running)) return -EBUSY; |