]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ASoC: s6105-ipcam: Convert to table based DAPM setup
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 12 Mar 2014 14:27:37 +0000 (15:27 +0100)
committerMark Brown <broonie@linaro.org>
Thu, 13 Mar 2014 11:43:30 +0000 (11:43 +0000)
commitb92af2b8844c964fc7e1905f797a8d780c7212de
treedcff006e59b9872f8022293565af7fecbaf56be0
parent38dbfb59d1175ef458d006556061adeaa8751b72
ASoC: s6105-ipcam: Convert to table based DAPM setup

Use table based setup to register the DAPM widgets and routes. This on one hand
makes the code a bit shorter and cleaner and on the other hand the board level
DAPM elements get registered in the card's DAPM context rather than in the
CODEC's DAPM context.

While we are at it also remove the snd_soc_dapm_enable_pin() in the init
callback, since pins are enabled by default. Also drop the snd_soc_dapm_sync()
calls, since they are ignored by the core anyway until the card has been fully
instantiated.

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