]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: davinci-evm: Register machine level DAPM elements with the card
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 12 Mar 2014 14:27:35 +0000 (15:27 +0100)
committerMark Brown <broonie@linaro.org>
Thu, 13 Mar 2014 19:11:19 +0000 (19:11 +0000)
commit11fe528889c36ff8303ad4371ed523e01e1753d2
tree204dedfa0fa2cb5511b21b1b3e1f35bb82f8e7ce
parent71f8d6dfc3e84c38a8e3464371485dd0286edfed
ASoC: davinci-evm: Register machine level DAPM elements with the card

Machine level DAPM widgets and routes should be registered in the card's DAPM
context, rather than in the CODEC's context.

While we are at it also drop the snd_soc_dapm_enable_pin() calls, since pins are
enabled by default and also turn the snd_soc_dapm_disable_pin() calls into
snd_soc_dapm_nc_pin() calls for unconnected pins.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/davinci/davinci-evm.c