summaryrefslogtreecommitdiff
path: root/sound/soc/omap/omap-pcm.c
diff options
context:
space:
mode:
authorLiam Girdwood <lrg@slimlogic.co.uk>2010-08-25 16:32:24 +0100
committerRicardo Perez Olivares <x0081762@ti.com>2010-09-14 19:27:54 -0500
commit0ddd981cc6a47383d5067c626d56dd68ffe09bf5 (patch)
tree93b76f93a0515dc1dec0b7187bbc1ae9361c1329 /sound/soc/omap/omap-pcm.c
parent80a1856605dc58a69ba31da75e0291d20b69caf7 (diff)
ASoC: core - make pcm_new() pass only snd_soc_pcm_runtime *
Reduce number of arguments passed in pcm_new() from three to one by passing snd_soc_pcm_runtime*. This allows allows DSP DAI components to better determine buffers, channels etc. Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Margarita Olaya Cabrera <magi.olaya@ti.com>
Diffstat (limited to 'sound/soc/omap/omap-pcm.c')
-rw-r--r--sound/soc/omap/omap-pcm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/omap/omap-pcm.c b/sound/soc/omap/omap-pcm.c
index 6e282c7fc491..340bf2ef33d7 100644
--- a/sound/soc/omap/omap-pcm.c
+++ b/sound/soc/omap/omap-pcm.c
@@ -378,9 +378,10 @@ static void omap_pcm_free_dma_buffers(struct snd_pcm *pcm)
}
}
-static int omap_pcm_new(struct snd_card *card, struct snd_soc_dai *dai,
- struct snd_pcm *pcm)
+static int omap_pcm_new(struct snd_soc_pcm_runtime *rtd)
{
+ struct snd_card *card = rtd->card->snd_card;
+ struct snd_pcm *pcm = rtd->pcm;
int ret = 0;
if (!card->dev->dma_mask)