]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: jack: Push locking for jacks down to the jack
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 12 Mar 2012 14:07:49 +0000 (14:07 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 1 Apr 2012 10:28:23 +0000 (11:28 +0100)
commit04a732ce3b94b1ceaf3c270112cbaaf4939aa7da
tree2a48749a51f1bcac242d2b3a5af1445de93089b5
parent1812b848d4f79a76e8f22f6114c90b2ce9fdd2d0
ASoC: jack: Push locking for jacks down to the jack

Currently operations on jack reporting take the CODEC mutex both to protect
the current jack status and also to protect the DAPM run which is triggered
on status updates. Since the addition of a DAPM-specific lock we no longer
need to worry about locking DAPM as it has its own finer grained lock so
create a per jack lock to take care of the jack status.

This is both cleaner where the jack isn't specifically associated with a
CODEC and clearer as it's much more obvious what the lock is protecting.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/sound/soc.h
sound/soc/soc-jack.c