]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Move bias level decision into main dapm_power_widgets()
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 28 Sep 2011 16:19:47 +0000 (17:19 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 4 Oct 2011 15:50:18 +0000 (16:50 +0100)
commit41e767b99c1728a2f5f9a6a67b48d4a6d110b6ce
treeecf0713603063df385a87c3943d03f9b8e8f43f5
parent73a8e19bbe441a31192c23a4fea1dc7ac340285e
ASoC: Move bias level decision into main dapm_power_widgets()

Future patches will try to reduce the number of widgets we check on each
DAPM run but we're still going to need to look and see if the devices is
on at all so we can manage the overall device bias. Move these checks out
into the main dapm_power_widgets() function so we don't have to think about
them for now.

Once we're doing more incremental updates it'll probably be worth using
refcounts for each bias level to avoid having to do the sweep over all
widgets but that's not going to be where the big performance wins are.

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