Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

One mcasp support two codecs on Linux/OMAPL138?

$
0
0

static struct snd_soc_dai_link da8xx_evm_dai[] = { 
 {
  .name = "cs4398.0",
  .stream_name = "cs4398.0",
  .cpu_dai_name= "davinci-mcasp.0",
  .codec_dai_name = "cs4398-hifi",
  .codec_name = "cs4398-codec.0",
  .platform_name = "davinci-pcm-audio",
  .init = evm_cs4398_init,
  .ops = &evm_ops,
 },
 {
  .name = "cs4398.1",
  .stream_name = "cs4398.1",
  .cpu_dai_name= "davinci-mcasp.0",
  .codec_dai_name = "cs4398-hifi",
  .codec_name = "cs4398-codec.1",
  .platform_name = "davinci-pcm-audio",
  .init = evm_cs4398_init,
  .ops = &evm_ops,
 }, 
};
i set 2 codecs(cs4398.0 and cs4398.1) on mcasp0, and it works well by using 'aplay -Dhw:0,0' or 'aplay -Dhw:0,1' in SINGLE channel mode.
But FAILED when 'aplay -Dhw:0,0' and 'aplay -Dhw:0,1' at  the same time in MULTI channel mode, logs below:

davinci_pcm_open:davinci_pcm: Failed to get dma channels

ps: it seems that linux does not support  multi channel with Mcasp, is that right ? 

thx for the help

Viewing all articles
Browse latest Browse all 17527

Trending Articles