https://github.com/torvalds/linux
Revision 13a6c8328e6056932dc680e447d4c5e8ad9add17 authored by Ioan-Adrian Ratiu on 04 January 2017, 22:37:47 UTC, committed by Takashi Iwai on 05 January 2017, 06:35:17 UTC
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>
1 parent 1d0f953
History
Tip revision: 13a6c8328e6056932dc680e447d4c5e8ad9add17 authored by Ioan-Adrian Ratiu on 04 January 2017, 22:37:47 UTC
ALSA: usb-audio: test EP_FLAG_RUNNING at urb completion
Tip revision: 13a6c83
File Mode Size
Documentation
arch
block
certs
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.cocciconfig -rw-r--r-- 59 bytes
.get_maintainer.ignore -rw-r--r-- 31 bytes
.gitattributes -rw-r--r-- 30 bytes
.gitignore -rw-r--r-- 1.3 KB
.mailmap -rw-r--r-- 7.5 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 96.0 KB
Kbuild -rw-r--r-- 2.8 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 381.7 KB
Makefile -rw-r--r-- 57.6 KB
README -rw-r--r-- 722 bytes

README

back to top