aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/soc/soc-core.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 580a1a534ad0..d4b90d82a098 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -1382,7 +1382,10 @@ int snd_soc_init_card(struct snd_soc_device *socdev)
1382 1382
1383 mutex_lock(&codec->mutex); 1383 mutex_lock(&codec->mutex);
1384#ifdef CONFIG_SND_SOC_AC97_BUS 1384#ifdef CONFIG_SND_SOC_AC97_BUS
1385 if (ac97) { 1385 /* Only instantiate AC97 if not already done by the adaptor
1386 * for the generic AC97 subsystem.
1387 */
1388 if (ac97 && strcmp(codec->name, "AC97") != 0) {
1386 ret = soc_ac97_dev_register(codec); 1389 ret = soc_ac97_dev_register(codec);
1387 if (ret < 0) { 1390 if (ret < 0) {
1388 printk(KERN_ERR "asoc: AC97 device register failed\n"); 1391 printk(KERN_ERR "asoc: AC97 device register failed\n");