diff options
author | Liam Girdwood <lrg@ti.com> | 2011-02-04 22:12:30 +0000 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2011-06-14 09:06:11 -0700 |
commit | 110e2f989d912b5d0f40fbef1de97f1dc99dc1ab (patch) | |
tree | 55760bb453f6c3c45dd23df2ce41b069406718bc /sound/soc/atmel | |
parent | 6f3f95ae6a0919dc4d119398f78a905799bab6fc (diff) | |
download | kernel_samsung_espresso10-110e2f989d912b5d0f40fbef1de97f1dc99dc1ab.zip kernel_samsung_espresso10-110e2f989d912b5d0f40fbef1de97f1dc99dc1ab.tar.gz kernel_samsung_espresso10-110e2f989d912b5d0f40fbef1de97f1dc99dc1ab.tar.bz2 |
ASoC: core - refactor pcm_new() to pass only rtd
In preparation for ASoC DSP support.
Currently pcm_new() passes in card, pcm and DAI. Refactor this to only pass
in rtd since rtd contains card, pcm and DAI. Struct rtd also contain other
members too that are useful to DSPs.
Signed-off-by: Liam Girdwood <lrg@ti.com>
Diffstat (limited to 'sound/soc/atmel')
-rw-r--r-- | sound/soc/atmel/atmel-pcm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/soc/atmel/atmel-pcm.c b/sound/soc/atmel/atmel-pcm.c index d0e7532..42f699c 100644 --- a/sound/soc/atmel/atmel-pcm.c +++ b/sound/soc/atmel/atmel-pcm.c @@ -364,9 +364,11 @@ static struct snd_pcm_ops atmel_pcm_ops = { \*--------------------------------------------------------------------------*/ static u64 atmel_pcm_dmamask = 0xffffffff; -static int atmel_pcm_new(struct snd_card *card, - struct snd_soc_dai *dai, struct snd_pcm *pcm) +static int atmel_pcm_new(struct snd_soc_pcm_runtime *rtd) { + struct snd_card *card = rtd->card->snd_card; + struct snd_soc_dai *dai = rtd->cpu_dai; + struct snd_pcm *pcm = rtd->pcm; int ret = 0; if (!card->dev->dma_mask) |