]> git.baikalelectronics.ru Git - kernel.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)
commit0218d76bdf0f04c1a48ea4c3b8868a2b705a8ec8
treedcff006e59b9872f8022293565af7fecbaf56be0
parent6333ef0a6d756a72c48035feae2450b64f0372e4
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