Hello,
I am using 2 MCASP ports with DM8148, each has its own codec, and each mcasp has 2 channels (and each channel playback and capture).
I would like to ask about the configuration of sound card , do I need to configure 2 different cars as following:
static struct snd_soc_card ti81xx_evm_snd_card0 = {
.name = "TI81XX SOUND0",
.dai_link = ti81xx_mcasp_dai_1,
.num_links = ARRAY_SIZE(ti81xx_mcasp_dai),
};
static struct snd_soc_card ti81xx_evm_snd_card1 = {
.name = "TI81XX SOUND1",
.dai_link = ti81xx_mcasp_dai_2,
.num_links = 1,
};
So that each ti81xx_mcasp_dai_x (1,2) each has only one codec defintion such as:
static struct snd_soc_dai_link ti81xx_mcasp_dai[] = {
{
.name = "TVP5158AUDIO",
.stream_name = "TVP-PCM",
.cpu_dai_name= "davinci-mcasp.0",
.codec_dai_name = "tvp5158-hifi",
.platform_name ="davinci-pcm-audio",
.codec_name = "tvp5158-audio",
.ops = &ti81xx_evm_ops,
}}
OR is it that I need to configure one sound card with 1 ti81xx_mcasp_dai array which contain 2 codecs ?
I am not which of the above configuration is suitable in my case.
Thank you!
Ran