ASoC: core: Pass legacy_dai_naming flag directly
[linux-2.6-microblaze.git] / sound / soc / soc-core.c
index 32267a3..9574f86 100644 (file)
@@ -2497,7 +2497,7 @@ static int snd_soc_register_dais(struct snd_soc_component *component,
 
        for (i = 0; i < count; i++) {
                dai = snd_soc_register_dai(component, dai_drv + i, count == 1 &&
-                                          !snd_soc_component_is_codec(component));
+                                          !component->driver->non_legacy_dai_naming);
                if (dai == NULL) {
                        ret = -ENOMEM;
                        goto err;