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/ep93xx | |
parent | 6f3f95ae6a0919dc4d119398f78a905799bab6fc (diff) | |
download | kernel_samsung_tuna-110e2f989d912b5d0f40fbef1de97f1dc99dc1ab.zip kernel_samsung_tuna-110e2f989d912b5d0f40fbef1de97f1dc99dc1ab.tar.gz kernel_samsung_tuna-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/ep93xx')
-rw-r--r-- | sound/soc/ep93xx/ep93xx-pcm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/soc/ep93xx/ep93xx-pcm.c b/sound/soc/ep93xx/ep93xx-pcm.c index a456e49..e27c417 100644 --- a/sound/soc/ep93xx/ep93xx-pcm.c +++ b/sound/soc/ep93xx/ep93xx-pcm.c @@ -266,9 +266,11 @@ static void ep93xx_pcm_free_dma_buffers(struct snd_pcm *pcm) static u64 ep93xx_pcm_dmamask = 0xffffffff; -static int ep93xx_pcm_new(struct snd_card *card, struct snd_soc_dai *dai, - struct snd_pcm *pcm) +static int ep93xx_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) |