diff options
author | Ioan-Adrian Ratiu <adi@adirat.com> | 2017-01-04 22:37:47 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-07 01:59:49 (GMT) |
commit | 12dac5fcf5ec156f9f056aff1a8cbed04fde5538 (patch) | |
tree | 06e5b905a6beab9d022dcda384085cf8a1b805dc /arch/x86/um | |
parent | 301681d60003b172af1a70fdd833567e16f55d9a (diff) | |
download | linux-12dac5fcf5ec156f9f056aff1a8cbed04fde5538.tar.xz |
ALSA: usb-audio: test EP_FLAG_RUNNING at urb completion
[ Upstream commit 13a6c8328e6056932dc680e447d4c5e8ad9add17 ]
Testing EP_FLAG_RUNNING in snd_complete_urb() before running the completion
logic allows us to save a few cpu cycles by returning early, skipping the
pending urb in case the stream was stopped; the stop logic handles the urb
and sets the completion callbacks to NULL.
Signed-off-by: Ioan-Adrian Ratiu <adi@adirat.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/x86/um')
0 files changed, 0 insertions, 0 deletions