diff --git a/seeed-voicecard.c b/seeed-voicecard.c index 399bc7e..8339df7 100644 --- a/seeed-voicecard.c +++ b/seeed-voicecard.c @@ -362,9 +362,9 @@ static int asoc_simple_init_dai_link_params(struct snd_soc_pcm_runtime *rtd) struct snd_pcm_hardware hw; int i, ret, stream; - /* Only codecs should have non_legacy_dai_naming set. */ + /* Only Codecs */ for_each_rtd_components(rtd, i, component) { - if (!component->driver->non_legacy_dai_naming) + if (!snd_soc_component_is_codec(component)) return 0; }