有个snd_soc_dai_link的结构体,把codec ,codec_dai,cpu_dai联系了起来。一个一个遍历了才生成的声卡
static struct snd_soc_dai_link ti81xx_evm_dai[] = {
{
.name = "TLV320AIC3X",
.stream_name = "AIC3X",
.codec_dai_name = "tlv320aic3x-hifi",
.codec_name = "tlv320aic3x-codec.1-0018",
.platform_name = "davinci-pcm-audio",
.init = evm_aic3x_init,
.ops = &evm_ops,
}, |