• Takashi Iwai's avatar
    ALSA: pcm: Simplify snd_pcm_action_lock_irq() · e3a4bd5e
    Takashi Iwai authored
    The function snd_pcm_action_lock_irq() can be much simplified by
    simply wrapping snd_pcm_action() with the stream lock.  This was
    rather the original idea, but later it was open coded for
    optimization.  However, looking at the optimization part closely, one
    notices that the probability of the optimized path is quite low; in
    normal situations, the linked stream action happens only for the
    triggered substream, thus the operation becomes identical.  So the
    code simplification has a clear win, especially because we have now
    doubly codes for both atomic and non-atomic locks.
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    e3a4bd5e
Name
Last commit
Last update
Documentation Loading commit data...
arch Loading commit data...
block Loading commit data...
crypto Loading commit data...
drivers Loading commit data...
firmware Loading commit data...
fs Loading commit data...
include Loading commit data...
init Loading commit data...
ipc Loading commit data...
kernel Loading commit data...
lib Loading commit data...
mm Loading commit data...
net Loading commit data...
samples Loading commit data...
scripts Loading commit data...
security Loading commit data...
sound Loading commit data...
tools Loading commit data...
usr Loading commit data...
virt/kvm Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
Kbuild Loading commit data...
Kconfig Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...
REPORTING-BUGS Loading commit data...