]> 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)
commitc4762f05db939cc613416cc54e7dd70bfe3bd4d8
treefbc598f3a21859f5b1f20102dd5eba3edb5885b6
parentcb8726995c5f538dd407f9adc0d1e06166e8cbeb
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