]> 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)
commit46af7595995ba521d74c9bae29fa719f79522c47
treedcff006e59b9872f8022293565af7fecbaf56be0
parented4c0e42e851d5178cd0d1dc05de408325576e1c
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