aboutsummaryrefslogtreecommitdiffstats
path: root/sound/firewire/amdtp-stream.c
diff options
context:
space:
mode:
authorIoan-Adrian Ratiu <adi@adirat.com>2017-01-05 00:37:47 +0200
committerTakashi Iwai <tiwai@suse.de>2017-01-05 07:35:17 +0100
commit13a6c8328e6056932dc680e447d4c5e8ad9add17 (patch)
tree1678baeaa0a21ef8ecc188c84533276165fb82bd /sound/firewire/amdtp-stream.c
parentALSA: usb-audio: Fix irq/process data synchronization (diff)
downloadlinux-dev-13a6c8328e6056932dc680e447d4c5e8ad9add17.tar.xz
linux-dev-13a6c8328e6056932dc680e447d4c5e8ad9add17.zip
ALSA: usb-audio: test EP_FLAG_RUNNING at urb completion
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>
Diffstat (limited to 'sound/firewire/amdtp-stream.c')
0 files changed, 0 insertions, 0 deletions