aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLiam Girdwood <lrg@ti.com>2011-07-24 15:59:30 -0400
committerPaolo Pisati <paolo.pisati@canonical.com>2012-08-17 04:18:16 -0400
commit63e6bdca4f3f69aa906d4283c1940bff0b6bebda (patch)
treebc9ca53378fe5e9bd867d8e800a440d43956ba2f /include
parentb6978bc4f4f8a119dbeec9fa0082eadca9acc22a (diff)
Subject: [PATCH 018/104] 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>
Diffstat (limited to 'include')
-rw-r--r--include/sound/soc.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 88c76e995ff..4f2c12232a4 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -623,8 +623,7 @@ struct snd_soc_platform_driver {
623 int (*resume)(struct snd_soc_dai *dai); 623 int (*resume)(struct snd_soc_dai *dai);
624 624
625 /* pcm creation and destruction */ 625 /* pcm creation and destruction */
626 int (*pcm_new)(struct snd_card *, struct snd_soc_dai *, 626 int (*pcm_new)(struct snd_soc_pcm_runtime *);
627 struct snd_pcm *);
628 void (*pcm_free)(struct snd_pcm *); 627 void (*pcm_free)(struct snd_pcm *);
629 628
630 /* 629 /*