]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Remove name_prefix unset during DAI link init hack
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 12 Mar 2014 14:27:40 +0000 (15:27 +0100)
committerMark Brown <broonie@linaro.org>
Tue, 25 Mar 2014 12:52:42 +0000 (12:52 +0000)
commit8e82786ae7b4a3515c06d6e4610229147baa4e3d
treefbc598f3a21859f5b1f20102dd5eba3edb5885b6
parentd4097259173be6d22682b88e4da01d5325cd51c8
ASoC: Remove name_prefix unset during DAI link init hack

Before we had card level support for DAPM and controls machine drivers would
register their controls and DAPM elements with the CODEC. This required us to
temporarily unset the name_prefix of a CODEC during the rtd init callback to
avoid the machine level controls getting the CODEC's prefix. Now that all
machine drivers properly register their machine level controls and DAPM elements
with the card rather than with the CODEC we can drop the hack that sets the
CODEC's name_prefix to NULL while calling the DAI link or AUX dev init callback.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/soc-core.c