<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ALSA unable to Open CPU DAI in IMX8M-PLUS in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/ALSA-unable-to-Open-CPU-DAI-in-IMX8M-PLUS/m-p/1434817#M188679</link>
    <description>&lt;P&gt;We are using IMX8M-PLUS SOM (from variscite) for our audio hardware. The basic requirement for our audio devices is as follows,&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Need to support capture audio from up to 16 mic inputs. Should be capable to capture each device separately.&lt;/LI&gt;&lt;LI&gt;Need to support playback on up to 16 speakers, each should be individually addressable.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;We have a multiple TLV320AIC3104 codecs configured to send &amp;amp; receive data in TDM format over SAI lines of IMX8M-PLUS in the given below configuration&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Default frame size is 256 bits&lt;/LI&gt;&lt;LI&gt;16 channels&lt;/LI&gt;&lt;LI&gt;16-bit data per channels&lt;/LI&gt;&lt;LI&gt;Codecs are configured to with required offset to use the channels according to our need,&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;First Codec - Channels 0 and 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Second Codec- Channels 2 and 3&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Third Codec - Channels 4 and 5 .... likewise.&lt;/P&gt;&lt;P&gt;The important aspects of our design are,&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Codes are not connected to the SOM: The codecs are configured and controlled externally using a separate Microcontroller.&lt;/LI&gt;&lt;LI&gt;The frequency to derive the SAI lines are generated externally: 4.096 MHz&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;We are using the Linux kernel version 5.4.70 from variscite and developed the drivers required by ASLA to interface this configuration as follows,&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Platform driver: Using the fsl-sai driver supplied by NXP&lt;/LI&gt;&lt;LI&gt;Codec driver: As the codec is not directly connected to SOM, we created a dummy codec driver.&lt;/LI&gt;&lt;LI&gt;Machine driver: We created a machine driver to link the platform and the codec drivers and register the sound card for our device.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;With the ALSA drivers, the sound card is added. But we are not able to use it for playback and capture.&lt;/P&gt;&lt;P&gt;We are getting below error,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aplay -D plug:play0&amp;nbsp; -v -c 1&amp;nbsp; 005.wav&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&amp;nbsp; 330.569976] fsl-sai 30c20000.sai: ASoC: can't open component 30c20000.sai: -6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ALSA lib ../../../alsa-lib-1.1.9/src/pcm/pcm_dshare.c:767:(snd_pcm_dshare_open) unable to open slave&lt;/P&gt;&lt;P&gt;The same configuration and drivers are working well in the IMX8M-MINI SOM based on the Yocto Sumo BSP with Linux kernel version 4.14.98, but not working in the IMX8M-PLUS SOM based on the Yocto Zeus BSP with Linux Kernel version 5.4.70.&lt;/P&gt;&lt;P&gt;What could be the issue? Anyone already familiar with this type of issue?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Mar 2022 12:23:10 GMT</pubDate>
    <dc:creator>Delta32</dc:creator>
    <dc:date>2022-03-28T12:23:10Z</dc:date>
    <item>
      <title>ALSA unable to Open CPU DAI in IMX8M-PLUS</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ALSA-unable-to-Open-CPU-DAI-in-IMX8M-PLUS/m-p/1434817#M188679</link>
      <description>&lt;P&gt;We are using IMX8M-PLUS SOM (from variscite) for our audio hardware. The basic requirement for our audio devices is as follows,&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Need to support capture audio from up to 16 mic inputs. Should be capable to capture each device separately.&lt;/LI&gt;&lt;LI&gt;Need to support playback on up to 16 speakers, each should be individually addressable.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;We have a multiple TLV320AIC3104 codecs configured to send &amp;amp; receive data in TDM format over SAI lines of IMX8M-PLUS in the given below configuration&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Default frame size is 256 bits&lt;/LI&gt;&lt;LI&gt;16 channels&lt;/LI&gt;&lt;LI&gt;16-bit data per channels&lt;/LI&gt;&lt;LI&gt;Codecs are configured to with required offset to use the channels according to our need,&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;First Codec - Channels 0 and 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Second Codec- Channels 2 and 3&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Third Codec - Channels 4 and 5 .... likewise.&lt;/P&gt;&lt;P&gt;The important aspects of our design are,&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Codes are not connected to the SOM: The codecs are configured and controlled externally using a separate Microcontroller.&lt;/LI&gt;&lt;LI&gt;The frequency to derive the SAI lines are generated externally: 4.096 MHz&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;We are using the Linux kernel version 5.4.70 from variscite and developed the drivers required by ASLA to interface this configuration as follows,&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Platform driver: Using the fsl-sai driver supplied by NXP&lt;/LI&gt;&lt;LI&gt;Codec driver: As the codec is not directly connected to SOM, we created a dummy codec driver.&lt;/LI&gt;&lt;LI&gt;Machine driver: We created a machine driver to link the platform and the codec drivers and register the sound card for our device.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;With the ALSA drivers, the sound card is added. But we are not able to use it for playback and capture.&lt;/P&gt;&lt;P&gt;We are getting below error,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aplay -D plug:play0&amp;nbsp; -v -c 1&amp;nbsp; 005.wav&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&amp;nbsp; 330.569976] fsl-sai 30c20000.sai: ASoC: can't open component 30c20000.sai: -6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ALSA lib ../../../alsa-lib-1.1.9/src/pcm/pcm_dshare.c:767:(snd_pcm_dshare_open) unable to open slave&lt;/P&gt;&lt;P&gt;The same configuration and drivers are working well in the IMX8M-MINI SOM based on the Yocto Sumo BSP with Linux kernel version 4.14.98, but not working in the IMX8M-PLUS SOM based on the Yocto Zeus BSP with Linux Kernel version 5.4.70.&lt;/P&gt;&lt;P&gt;What could be the issue? Anyone already familiar with this type of issue?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 12:23:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ALSA-unable-to-Open-CPU-DAI-in-IMX8M-PLUS/m-p/1434817#M188679</guid>
      <dc:creator>Delta32</dc:creator>
      <dc:date>2022-03-28T12:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: ALSA unable to Open CPU DAI in IMX8M-PLUS</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ALSA-unable-to-Open-CPU-DAI-in-IMX8M-PLUS/m-p/1435904#M188763</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;As you said,&amp;nbsp; it works with&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Yocto Sumo BSP with Linux kernel version 4.14.98, but not working in the IMX8M-PLUS SOM based on the Yocto Zeus BSP with Linux Kernel version 5.4.70.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So setup seems to be fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Its better to go with patch/kernel source investigation which would require lot of effort!!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;KrishChan&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 06:08:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ALSA-unable-to-Open-CPU-DAI-in-IMX8M-PLUS/m-p/1435904#M188763</guid>
      <dc:creator>krishchan</dc:creator>
      <dc:date>2022-03-30T06:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: ALSA unable to Open CPU DAI in IMX8M-PLUS</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ALSA-unable-to-Open-CPU-DAI-in-IMX8M-PLUS/m-p/1515456#M194602</link>
      <description>&lt;P&gt;The issue occurred due to the DMA driver. The associated DMA driver was not loaded properly due to the kernel version mismatch.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 09:31:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ALSA-unable-to-Open-CPU-DAI-in-IMX8M-PLUS/m-p/1515456#M194602</guid>
      <dc:creator>Delta32</dc:creator>
      <dc:date>2022-09-01T09:31:45Z</dc:date>
    </item>
  </channel>
</rss>

