]> 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)
commit68b4acd322494444803a3f49884ae889c8ec6689
treec570aa7520be13f8d2653ce0f6b1db6baf5716e1
parent34bcc44abb302d1586bf1eb7548be75d0f56babc
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