]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm: Apply power lock globally to common ioctls
authorTakashi Iwai <tiwai@suse.de>
Tue, 24 May 2016 13:07:39 +0000 (15:07 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 14 Jun 2017 05:43:44 +0000 (07:43 +0200)
commitaa1719f538aac82640f571c78965d62a2782c75e
treec570aa7520be13f8d2653ce0f6b1db6baf5716e1
parentbc91f88ea6093f6176908a15480de5976289b69d
ALSA: pcm: Apply power lock globally to common ioctls

All PCM common ioctls should run only in the powered up state, but
currently only a few ioctls do the proper snd_power_lock() and
snd_power_wait() invocations.  Instead of adding to each place, do it
commonly in the caller side, so that all these ioctls are assured to
be operated at the power up state.

Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c