]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Tegra: Move DAS configuration into DAS driver
authorStephen Warren <swarren@nvidia.com>
Wed, 7 Dec 2011 20:58:29 +0000 (13:58 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 8 Dec 2011 04:34:07 +0000 (12:34 +0800)
commit10337fcb89bee33d66249e05488ffe2006be1389
tree387fd91ea3b96cdb68ab5b3ac62a14bcec00a2ac
parent6b700e31b7b6a40e0adae61a3bbd6cbe893afac9
ASoC: Tegra: Move DAS configuration into DAS driver

Move DAS routing setup into the DAS driver itself. This removes the need
to duplicate this in each machine driver, of which we'll soon have three.

An added advantage is that the machine drivers no longer call the Tegra20-
specific DAS functions by name, so the machine driver no longer needs to
be split up into Tegra20 and Tegra30 versions.

If individual machine drivers need a different routing setup to this
default, they can still call the DAS functions to set that up.

Long-term, DAS will be a codec driver, and user-space will be able to
control its routing, possibly within constraints that the machine driver
sets up. Configuring the DAS routing from the DAS driver is a very slight
move in that direction.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/tegra/tegra_das.c
sound/soc/tegra/tegra_wm8903.c
sound/soc/tegra/trimslice.c