diff options
| author | Ioan-Adrian Ratiu <[email protected]> | 2017-01-04 22:37:47 +0000 |
|---|---|---|
| committer | Takashi Iwai <[email protected]> | 2017-01-05 06:35:17 +0000 |
| commit | 13a6c8328e6056932dc680e447d4c5e8ad9add17 (patch) | |
| tree | 1678baeaa0a21ef8ecc188c84533276165fb82bd /lib/timerqueue.c | |
| parent | ALSA: usb-audio: Fix irq/process data synchronization (diff) | |
| download | kernel-13a6c8328e6056932dc680e447d4c5e8ad9add17.tar.gz kernel-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 <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'lib/timerqueue.c')
0 files changed, 0 insertions, 0 deletions
