]> 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)
commitaeba22ee646a3e8bf5377424fedb4695bf23576e
treec570aa7520be13f8d2653ce0f6b1db6baf5716e1
parentf99ba0dedcf0f415c449fe6492d91fe8c90b65a2
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