alistair23-linux/sound/soc/codecs
Liam Girdwood ce6120cca2 ASoC: Decouple DAPM from CODECs
Decoupling Dynamic Audio Power Management (DAPM) from codec devices is
required when developing ASoC further. Such as for other ASoC components to
have DAPM widgets or when extending DAPM to handle cross-device paths.

This patch decouples DAPM related variables from struct snd_soc_codec and
moves them to new struct snd_soc_dapm_context that is used to encapsulate
DAPM context of a device. ASoC core and API of DAPM functions are modified
to use DAPM context instead of codec.

This patch does not change current functionality and a large part of changes
come because of structure and internal API changes.

Core implementation is from Liam Girdwood <lrg@slimlogic.co.uk> with some
minor core changes, codecs and machine driver conversions from
Jarkko Nikula <jhnikula@gmail.com>.

Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Jarkko Nikula <jhnikula@gmail.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Manuel Lauss <manuel.lauss@googlemail.com>
Cc: Mike Frysinger <vapier.adi@gmail.com>
Cc: Cliff Cai <cliff.cai@analog.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Ryan Mallon <ryan@bluewatersys.com>
Cc: Timur Tabi <timur@freescale.com>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Lars-Peter Clausen <lars@metafoo.de>
Cc: Arnaud Patard (Rtp) <arnaud.patard@rtp-net.org>
Cc: Wan ZongShun <mcuos.com@gmail.com>
Cc: Eric Miao <eric.y.miao@gmail.com>
Cc: Jassi Brar <jassi.brar@samsung.com>
Cc: Daniel Gloeckner <dg@emlix.com>
Cc: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2010-11-06 11:28:29 -04:00
..
88pm860x-codec.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
88pm860x-codec.h ASoC: add 88pm860x codec driver 2010-08-18 18:03:09 +01:00
ac97.c ASoC: ac97: add MODULE_ALIAS for the platform driver 2010-10-13 10:35:30 +01:00
ad193x.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
ad193x.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
ad1836.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
ad1836.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
ad1980.c ASoC: Staticise AD1980 DAI 2010-10-07 12:56:43 -07:00
ad1980.h Merge branch 'for-2.6.36' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound-2.6 into for-2.6.37 2010-08-15 14:56:40 +01:00
ad73311.c ASoC: sound/ad73311: add missing __devexit marker 2010-10-27 07:53:17 +02:00
ad73311.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
ads117x.c ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
ads117x.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
ak4104.c ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
ak4535.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
ak4535.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
ak4642.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
ak4671.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
ak4671.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
alc5623.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
alc5623.h ASoC: add support for alc562[123] codecs 2010-10-21 13:51:13 -07:00
cq93vc.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
cs42l51.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
cs42l51.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
cs4270.c ASoC: Staticise CS4270 DAI 2010-10-07 13:40:44 -07:00
cx20442.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
cx20442.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
da7210.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
jz4740.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
Kconfig ASoC: Fix SND_SOC_ALL_CODECS typo for alc5623 2010-11-01 13:58:44 -04:00
l3.c
Makefile ASoC: add support for alc562[123] codecs 2010-10-21 13:51:13 -07:00
max9877.c
max9877.h
max98088.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
max98088.h ASoC: Restore MAX98088 CODEC driver 2010-10-18 16:46:27 -07:00
pcm3008.c ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
pcm3008.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
spdif_transciever.c ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
ssm2602.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
ssm2602.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
stac9766.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
stac9766.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
tlv320aic3x.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
tlv320aic3x.h ASoC: tlv320aic3x: Reimplement output mixers 2010-08-28 10:57:58 +01:00
tlv320aic23.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
tlv320aic23.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
tlv320aic26.c ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
tlv320aic26.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
tlv320dac33.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
tlv320dac33.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
tpa6130a2.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
tpa6130a2.h ASoC: TPA6130A2: Make tpa6130a2_power as static 2009-10-12 13:40:54 +01:00
twl4030.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
twl6040.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
twl6040.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
uda134x.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
uda134x.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
uda1380.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
uda1380.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
wl1273.c ASoC: WL1273 FM Radio: Eliminate unnecessary error return value. 2010-09-11 09:03:21 +01:00
wl1273.h ASoC: TI WL1273 FM Radio Codec. 2010-08-20 13:28:49 +01:00
wm2000.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm2000.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
wm8350.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm8350.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
wm8400.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm8400.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
wm8510.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm8510.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
wm8523.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm8523.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
wm8580.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm8580.h ASoC: Automatically calculate clock ratio for WM8580 2010-08-15 14:52:12 +01:00
wm8711.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm8711.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
wm8727.c ASoC: Staticise WM8727 codec driver structure 2010-08-12 16:10:55 +01:00
wm8728.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm8728.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
wm8731.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm8731.h ASoC: Support non-crystal master clocks for WM8731 2010-08-18 16:52:56 +01:00
wm8741.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm8741.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
wm8750.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm8750.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
wm8753.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm8753.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
wm8776.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm8776.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
wm8804.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm8804.h ASoC: WM8804: Initial driver 2010-09-30 13:32:21 -07:00
wm8900.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm8900.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
wm8903.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm8903.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
wm8904.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm8904.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
wm8940.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm8940.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
wm8955.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm8955.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
wm8960.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm8960.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
wm8961.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm8961.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
wm8962.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm8962.h ASoC: Compress WM8962 register access map 2010-10-11 03:52:04 -07:00
wm8971.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm8971.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
wm8974.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm8974.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
wm8978.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm8978.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
wm8985.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm8985.h ASoC: WM8985: Initial driver 2010-09-15 16:11:24 +01:00
wm8988.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm8988.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
wm8990.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm8990.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
wm8993.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm8993.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
wm8994.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm8994.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
wm9081.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm9081.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
wm9090.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm9090.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
wm9705.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm9705.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
wm9712.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm9712.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
wm9713.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm9713.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
wm_hubs.c ASoC: Decouple DAPM from CODECs 2010-11-06 11:28:29 -04:00
wm_hubs.h ASoC: Store DC offset correction for wm_hubs devices in class W mode 2010-10-28 11:34:03 -07:00