summaryrefslogtreecommitdiffstats
path: root/sound/soc/tegra/tegra20_i2s.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2014-03-12 15:27:31 +0100
committerMark Brown <broonie@linaro.org>2014-03-21 18:04:20 +0000
commit43b956349de28884265e8237a5cd1f669fbaa485 (patch)
tree26794a65e721d6217a8352522370c601d721bc7a /sound/soc/tegra/tegra20_i2s.c
parent234bf1f0f03f879da2be698fb749f9a4b7322221 (diff)
ASoC: mfld_machine: Convert to table based DAPM and control setup
Use table based setup to register the controls and DAPM widgets and routes. This on one hand makes the code a bit 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. The mfld_machine driver is a bit special in that it directly writes to one of the CODEC registers from one of the control handlers. Previous to this patch it was able to get a pointer to the CODEC from the control, since the control was registered with the CODEC. This won't be possible anymore once the control is registered with the card. Since there are already global variables in the driver accessed in the same function the patch adds a global variable that holds a pointer to the CODEC and uses that. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/tegra/tegra20_i2s.c')
0 files changed, 0 insertions, 0 deletions