linux/sound/soc/omap
Liam Girdwood 022658beab ASoC: core: Add support for DAI and machine kcontrols.
Currently ASoC can only add kcontrols using codec and platform component device
handles. It's also desirable to add kcontrols for DAIs (i.e. McBSP) and for
SoC card machine drivers too. This allows the kcontrol to have a direct handle to
the parent ASoC component DAI/SoC Card/Platform/Codec device and hence easily
get it's private data.

This change makes snd_soc_add_controls() static and wraps it in the folowing
calls (card and dai are new) :-

snd_soc_add_card_controls()
snd_soc_add_codec_controls()
snd_soc_add_dai_controls()
snd_soc_add_platform_controls()

This patch also does a lot of small mechanical changes in individual codec drivers
to replace snd_soc_add_controls() with snd_soc_add_codec_controls().

It also updates the McBSP DAI driver to use snd_soc_add_dai_controls().

Finally, it updates the existing machine drivers that register controls to either :-

1) Use snd_soc_add_card_controls() where no direct codec control is required.
2) Use snd_soc_add_codec_controls() where there is direct codec control.

In the case of 1) above we also update the machine drivers to get the correct
component data pointers from the kcontrol (rather than getting the machine pointer
via the codec pointer).

Signed-off-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2012-02-04 12:40:11 +00:00
..
am3517evm.c ASoC: omap: Add .owner to struct snd_soc_card 2011-12-23 18:13:01 +00:00
ams-delta.c ASoC: core: Add support for DAI and machine kcontrols. 2012-02-04 12:40:11 +00:00
igep0020.c ASoC: omap: Add .owner to struct snd_soc_card 2011-12-23 18:13:01 +00:00
Kconfig ASoC: sdp4430: Add support for digital microphones 2011-11-28 17:21:45 +00:00
Makefile ASoC: OMAP4: omap-dmic: Initial support for OMAP DMIC 2011-11-28 17:21:44 +00:00
n810.c ASoC: core: Add support for DAI and machine kcontrols. 2012-02-04 12:40:11 +00:00
omap3beagle.c sound: Add module.h to the previously silent sound users 2011-10-31 19:31:21 -04:00
omap3evm.c ASoC: omap: Add .owner to struct snd_soc_card 2011-12-23 18:13:01 +00:00
omap3pandora.c ASoC: omap: Add .owner to struct snd_soc_card 2011-12-23 18:13:01 +00:00
omap4-hdmi-card.c ASoC: omap: Add .owner to struct snd_soc_card 2011-12-23 18:13:01 +00:00
omap-dmic.c ASoC: omap-dmic: Use core to set the msbits constraint 2012-01-20 13:58:31 +00:00
omap-dmic.h ASoC: OMAP4: omap-dmic: Initial support for OMAP DMIC 2011-11-28 17:21:44 +00:00
omap-hdmi.c ASoC: Convert omap directory to module_platform_driver 2011-11-25 13:15:31 +00:00
omap-hdmi.h ASoC: OMAP: Add CPU DAI driver for HDMI 2011-06-03 13:43:45 +01:00
omap-mcbsp.c ASoC: core: Add support for DAI and machine kcontrols. 2012-02-04 12:40:11 +00:00
omap-mcbsp.h ASoC: core: Add support for DAI and machine kcontrols. 2012-02-04 12:40:11 +00:00
omap-mcpdm.c ASoC: omap-mcpdm: Set 24msbits constraint 2012-01-20 13:58:31 +00:00
omap-mcpdm.h ASoC: omap-mcpdm: API to configure offset cancellation 2011-09-26 22:23:32 +01:00
omap-pcm.c ASoC: check for substream not channels_min in pcm engines 2012-01-07 11:18:05 -08:00
omap-pcm.h ASoC: omap: Update e-mail address of Jarkko Nikula 2011-08-12 11:45:10 +09:00
osk5912.c ASoC: omap: Add .owner to struct snd_soc_card 2011-12-23 18:13:01 +00:00
overo.c ASoC: omap: Add .owner to struct snd_soc_card 2011-12-23 18:13:01 +00:00
rx51.c ASoC: core: Add support for DAI and machine kcontrols. 2012-02-04 12:40:11 +00:00
sdp3430.c ASoC: omap: Add .owner to struct snd_soc_card 2011-12-23 18:13:01 +00:00
sdp4430.c ASoC: omap: Add .owner to struct snd_soc_card 2011-12-23 18:13:01 +00:00
zoom2.c ASoC: omap: Add .owner to struct snd_soc_card 2011-12-23 18:13:01 +00:00