]> 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)
commite7d8f5b61ae35325972f4fc5987d9e49c0a80576
treeecf0713603063df385a87c3943d03f9b8e8f43f5
parent17eef93063e300e641442e58ef6e7659d4487143
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