summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorLiam Girdwood <lrg@slimlogic.co.uk>2010-09-21 18:26:40 +0100
committerRicardo Perez Olivares <x0081762@ti.com>2010-09-27 17:10:29 -0500
commitae14215937f71ccf992017b18fae639763a9ee4a (patch)
tree21290adc7749f70669bc28fc776aa502fe8e0efe /sound
parentce2d4eb21dc6cb712f3befa1be5049c1c6bc5175 (diff)
ASoC: core - add support for driver and longnames
Add support to ASoC core to register the sound cards driver and longnames at init time. This allows ALSA conf to refer to ASoC sound cards. Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Margarita Olaya Cabrera <magi.olaya@ti.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/soc-core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index bafdc6d92ec3..66fe654b55eb 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -1771,7 +1771,9 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card)
snprintf(card->snd_card->shortname, sizeof(card->snd_card->shortname),
"%s", card->name);
snprintf(card->snd_card->longname, sizeof(card->snd_card->longname),
- "%s", card->name);
+ "%s", card->long_name);
+ snprintf(card->snd_card->driver, sizeof(card->snd_card->driver),
+ "%s", "ASoC");
ret = snd_card_register(card->snd_card);
if (ret < 0) {