]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: Get rid of card power_lock
authorTakashi Iwai <tiwai@suse.de>
Wed, 30 Aug 2017 14:13:25 +0000 (16:13 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 30 Aug 2017 18:44:29 +0000 (20:44 +0200)
commit458de127367a03dcd54a7788e58a234381c6f4b5
tree5586c0e3b0483c98d1fe210a87246fd70131ba35
parent81ff14ee087d6af67be0cd716dec0bd93b4f3f02
ALSA: Get rid of card power_lock

Currently we're taking power_lock at each card component for assuring
the power-up sequence, but it doesn't help anything in the
implementation at the moment: it just serializes unnecessarily the
callers, but it doesn't protect about the power state change itself.
It used to have some usefulness in the early days where we managed the
PM manually.  But now the suspend/resume core procedure is beyond our
hands, and power_lock lost its meaning.

This patch drops the power_lock from allover the places.
There shouldn't be any issues by this change, as it's no helper
regarding the power state change.  Rather we'll get better performance
by removing the serialization; which is the only slight concern of any
behavior change, but it can't be a showstopper, after all.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/core.h
sound/core/control.c
sound/core/control_compat.c
sound/core/init.c
sound/core/pcm_native.c
sound/soc/soc-core.c