aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/s3c24xx/neo1973_gta02_wm8753.c9
-rw-r--r--sound/soc/soc-core.c4
2 files changed, 10 insertions, 3 deletions
diff --git a/sound/soc/s3c24xx/neo1973_gta02_wm8753.c b/sound/soc/s3c24xx/neo1973_gta02_wm8753.c
index 79b6b6c27d4..780d1131739 100644
--- a/sound/soc/s3c24xx/neo1973_gta02_wm8753.c
+++ b/sound/soc/s3c24xx/neo1973_gta02_wm8753.c
@@ -637,6 +637,11 @@ static int __init neo1973_gta02_init(void)
return -ENODEV;
}
+ /* register bluetooth DAI here */
+ ret = snd_soc_register_dai(&bt_dai);
+ if (ret)
+ return ret;
+
neo1973_gta02_snd_device = platform_device_alloc("soc-audio", -1);
if (!neo1973_gta02_snd_device)
return -ENOMEM;
@@ -646,8 +651,10 @@ static int __init neo1973_gta02_init(void)
neo1973_gta02_snd_devdata.dev = &neo1973_gta02_snd_device->dev;
ret = platform_device_add(neo1973_gta02_snd_device);
- if (ret)
+ if (ret) {
platform_device_put(neo1973_gta02_snd_device);
+ return ret;
+ }
/* Initialise GPIOs used by amp */
s3c2410_gpio_cfgpin(GTA02_GPIO_HP_IN, S3C2410_GPIO_OUTPUT);
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 62eda261155..ff66d47ab24 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -817,7 +817,7 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card)
if (!found) {
dev_dbg(card->dev, "DAI %s not registered\n",
card->dai_link[i].cpu_dai->name);
- return;
+ continue;
}
if (card->dai_link[i].cpu_dai->ac97_control)
@@ -841,7 +841,7 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card)
if (!found) {
dev_dbg(card->dev, "DAI %s not registered\n",
card->dai_link[i].codec_dai->name);
- return;
+ continue;
}
}