[alsa-devel] [PATCH 2/5] ASoC: Call snd_soc_new_widgets() after registering cards DAPM widgets
Lars-Peter Clausen
lars at metafoo.de
Tue Apr 12 19:31:02 CEST 2011
After registering new DAPM widgets nd_soc_new_widgets() must be called,
otherwise DAPM for those new widgets will not work.
snd_soc_new_widgets() is placed after the card late_probe call, so cards
can register new DAPM widgets in there.
Signed-off-by: Lars-Peter Clausen <lars at metafoo.de>
---
sound/soc/soc-core.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index f75f139..b6a78d9 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -1932,6 +1932,8 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card)
}
}
+ snd_soc_dapm_new_widgets(&card->dapm);
+
ret = snd_card_register(card->snd_card);
if (ret < 0) {
printk(KERN_ERR "asoc: failed to register soundcard for %s\n", card->name);
--
1.7.2.5
More information about the Alsa-devel
mailing list