aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-dapm.c
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-07-29 13:40:55 -0400
committerMark Brown <broonie@linaro.org>2013-07-29 13:40:55 -0400
commit60529c65ec3bc1a347f67eec1b1567efebbf7ce1 (patch)
treeb0306d615dc7fa791030fd8348706ed66c3c08d8 /sound/soc/soc-dapm.c
parent5d99d778495cb02eafd38292f462c4466fc7189f (diff)
parent5f6e7d52c4959019d12a7deebbde548884a917d1 (diff)
Merge branch 'topic/core' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-dapm
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r--sound/soc/soc-dapm.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 758761146a42..366daef006ed 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -174,36 +174,6 @@ static inline struct snd_soc_dapm_widget *dapm_cnew_widget(
174 return kmemdup(_widget, sizeof(*_widget), GFP_KERNEL); 174 return kmemdup(_widget, sizeof(*_widget), GFP_KERNEL);
175} 175}
176 176
177/* get snd_card from DAPM context */
178static inline struct snd_card *dapm_get_snd_card(
179 struct snd_soc_dapm_context *dapm)
180{
181 if (dapm->codec)
182 return dapm->codec->card->snd_card;
183 else if (dapm->platform)
184 return dapm->platform->card->snd_card;
185 else
186 BUG();
187
188 /* unreachable */
189 return NULL;
190}
191
192/* get soc_card from DAPM context */
193static inline struct snd_soc_card *dapm_get_soc_card(
194 struct snd_soc_dapm_context *dapm)
195{
196 if (dapm->codec)
197 return dapm->codec->card;
198 else if (dapm->platform)
199 return dapm->platform->card;
200 else
201 BUG();
202
203 /* unreachable */
204 return NULL;
205}
206
207static void dapm_reset(struct snd_soc_card *card) 177static void dapm_reset(struct snd_soc_card *card)
208{ 178{
209 struct snd_soc_dapm_widget *w; 179 struct snd_soc_dapm_widget *w;