linux/sound/soc/samsung
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
..
Kconfig ASoC: Make SND_SOC_LITTLEMILL select MFD_WM8994 2011-12-04 01:17:05 +00:00
Makefile ASoC: Rename Speyside WM8962 to Tobermory 2011-11-30 20:49:05 +00:00
ac97.c ASoC: Convert Samsung directory to module_platform_driver 2011-11-25 13:03:03 +00:00
dma.c ASoC: replace 0xffffffff with DMA_BIT_MASK macro 2012-01-20 13:58:26 +00:00
dma.h ASoC: Samsung: Update DMA interface 2011-09-14 11:10:04 +05:30
goni_wm8994.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
h1940_uda1380.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
i2s-regs.h ASoC: SAMSUNG: Add idma related register definition 2011-06-26 12:05:23 +01:00
i2s.c ASoC: Add trivial pm_runtime usage to Samsung DAI drivers 2011-12-23 12:08:32 +00:00
i2s.h
idma.c ASoC: Fix idma build after update for channel count check 2012-01-08 23:04:28 -08:00
idma.h ASoC: Fix __iomem annotation for IDMA registers 2011-11-29 17:28:16 +00:00
jive_wm8750.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
littlemill.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
ln2440sbc_alc650.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
lowland.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
neo1973_wm8753.c ASoC: core: Add support for DAI and machine kcontrols. 2012-02-04 12:40:11 +00:00
pcm.c ASoC: Add trivial pm_runtime usage to Samsung DAI drivers 2011-12-23 12:08:32 +00:00
pcm.h ASoC: SAMSUNG: Move PCM specific definitions into pcm.c 2011-01-10 11:38:22 +00:00
regs-i2s-v2.h
rx1950_uda1380.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
s3c-i2s-v2.c ASoC: samsung: s3c-i2s-v2.c needs module.h 2011-10-03 21:34:12 +01:00
s3c-i2s-v2.h
s3c24xx-i2s.c ASoC: Convert Samsung directory to module_platform_driver 2011-11-25 13:03:03 +00:00
s3c24xx-i2s.h
s3c24xx_simtec.c ASoC: core: Add support for DAI and machine kcontrols. 2012-02-04 12:40:11 +00:00
s3c24xx_simtec.h
s3c24xx_simtec_hermes.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
s3c24xx_simtec_tlv320aic23.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
s3c24xx_uda134x.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
s3c2412-i2s.c ASoC: Convert Samsung directory to module_platform_driver 2011-11-25 13:03:03 +00:00
s3c2412-i2s.h
smartq_wm8987.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
smdk2443_wm9710.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
smdk_spdif.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
smdk_wm8580.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
smdk_wm8580pcm.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
smdk_wm8994.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
smdk_wm8994pcm.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
smdk_wm9713.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
spdif.c ASoC: Convert Samsung directory to module_platform_driver 2011-11-25 13:03:03 +00:00
spdif.h
speyside.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
tobermory.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00