diff options
author | Andy Green <andy@openmoko.com> | 2009-01-29 14:27:22 +0000 |
---|---|---|
committer | Andy Green <agreen@octopus.localdomain> | 2009-01-29 14:27:22 +0000 |
commit | 85c88b269be595609c7480ed98b3a9185ea7dc4d (patch) | |
tree | a1b7f0b43bf5c5c214bf9d90223147137f67fae7 /sound/soc/s3c24xx | |
parent | a55d56c1bedf6e3de68dbe25e5bf50b1e06f8ed8 (diff) |
fix-alsa-bt-dai-registration-missing.patch
Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'sound/soc/s3c24xx')
-rw-r--r-- | sound/soc/s3c24xx/neo1973_gta02_wm8753.c | 9 |
1 files changed, 8 insertions, 1 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); |