ASoC: snd_soc_component_driver has non_legacy_dai_naming
[sfrench/cifs-2.6.git] / sound / soc / soc-core.c
index 61c3d36499145a61aa516286e5174333ce41a899..533c822ca6e6feb08afc194f05b52bd3c8084f41 100644 (file)
@@ -3462,7 +3462,8 @@ int snd_soc_add_component(struct device *dev,
                }
        }
 
-       ret = snd_soc_register_dais(component, dai_drv, num_dai, true);
+       ret = snd_soc_register_dais(component, dai_drv, num_dai,
+                                   !component_driver->non_legacy_dai_naming);
        if (ret < 0) {
                dev_err(dev, "ASoC: Failed to register DAIs: %d\n", ret);
                goto err_cleanup;