diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-02-13 09:02:08 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-02-13 09:02:08 -0500 |
commit | c85e5a4161b4768599deaee7a5df3ded9c34ea3b (patch) | |
tree | d7e477802d7a55f766198d3388ada738166e0ad7 /sound/soc/soc-core.c | |
parent | d5e9ba1d58b6da1c58a91113fc350ece97ec5a0b (diff) | |
parent | 14fa43f53ff3a9c3d8b9662574b7369812a31a97 (diff) |
Merge branch 'for-2.6.29' into for-2.6.30
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r-- | sound/soc/soc-core.c | 5 |
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"); |