ASoC: core - Optimise and refactor pcm_new() to pass only rtd
authorLiam Girdwood <lrg@ti.com>
Tue, 7 Jun 2011 15:08:33 +0000 (16:08 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 7 Jun 2011 17:38:27 +0000 (18:38 +0100)
commit552d1ef6b5a98d7b95959d5b139071e3c90cebf1
tree82c8462d9872e2dc9433bee56243e981f7d9bf8f
parentcf3383fbb03a0aae622b0dbcd10c6975332da68a
ASoC: core - Optimise and refactor pcm_new() to pass only rtd

Currently pcm_new() passes in 3 arguments :- card, pcm and DAI.

Refactor this to only pass in 1 argument (i.e. the rtd) since struct rtd contains
card, pcm and DAI along with other members too that are useful too.

Signed-off-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
27 files changed:
include/sound/soc.h
sound/soc/atmel/atmel-pcm.c
sound/soc/au1x/dbdma2.c
sound/soc/blackfin/bf5xx-ac97-pcm.c
sound/soc/blackfin/bf5xx-i2s-pcm.c
sound/soc/blackfin/bf5xx-tdm-pcm.c
sound/soc/davinci/davinci-pcm.c
sound/soc/ep93xx/ep93xx-pcm.c
sound/soc/fsl/fsl_dma.c
sound/soc/fsl/mpc5200_dma.c
sound/soc/imx/imx-pcm-fiq.c
sound/soc/imx/imx-ssi.c
sound/soc/imx/imx-ssi.h
sound/soc/jz4740/jz4740-pcm.c
sound/soc/kirkwood/kirkwood-dma.c
sound/soc/mid-x86/sst_platform.c
sound/soc/nuc900/nuc900-pcm.c
sound/soc/omap/omap-pcm.c
sound/soc/pxa/pxa2xx-pcm.c
sound/soc/s6000/s6000-pcm.c
sound/soc/samsung/dma.c
sound/soc/sh/dma-sh7760.c
sound/soc/sh/fsi.c
sound/soc/sh/siu_pcm.c
sound/soc/soc-core.c
sound/soc/tegra/tegra_pcm.c
sound/soc/txx9/txx9aclc.c