<?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>i.MX Processors中的主题 Re: IMX8M-mini : (TDM) How to generate SAI frame Sync from bitclock ?</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX8M-mini-TDM-How-to-generate-SAI-frame-Sync-from-bitclock/m-p/916066#M137896</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Malay,&lt;/P&gt;&lt;P&gt;I think your next step will be the integration of your new sound card in Alsa. I don't know what type of project you are using but you need to configure ALSA asound.conf like this one (be aware this is on an other project and must fit your devicetree)&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;pcm.!default {     type plug     slave.pcm {         @func getenv         vars [ ALSAPCM ]         default "hw:imx8tdmqcc"     } }&lt;/PRE&gt;&lt;/DIV&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;P&gt;Hope this can helps you.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Aug 2020 09:27:45 GMT</pubDate>
    <dc:creator>clement_duval</dc:creator>
    <dc:date>2020-08-20T09:27:45Z</dc:date>
    <item>
      <title>IMX8M-mini : (TDM) How to generate SAI frame Sync from bitclock ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8M-mini-TDM-How-to-generate-SAI-frame-Sync-from-bitclock/m-p/916061#M137891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the iMX8M-mini to acquire sound from 16 TDM microphones (ics52000).&lt;BR /&gt;I am using an external codec to drive a very low-jitter bitclock which is meant to go on both ics52000 and iMX8. However this external codec is not able to generate a frame clock based on 16 channels so I have to do this inside iMX8.&lt;/P&gt;&lt;P&gt;Bellow my device tree (sorry I did'nt find how to include code so I put an image)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/83982i93F0DAD59C16A253/image-size/large?v=v2&amp;amp;px=999" title="Capture d’écran de 2019-05-28 10-09-28.png" alt="Capture d’écran de 2019-05-28 10-09-28.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For information my mics are working well if I generate bitclock and frame clock from internal IMX8 codec without external codec : (mode SND_SOC_DAIFMT_CBM_CFM)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;simple-audio-card,bitclock-master = &amp;lt;&amp;amp;imx8_dai&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;simple-audio-card,frame-master = &amp;lt;&amp;amp;imx8_dai&amp;gt;&lt;BR /&gt;Moreover if I try the mode SND_SOC_DAIFMT_CBM_CFS only the bitclock is generated in that mode&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;simple-audio-card,bitclock-master = &amp;lt;&amp;amp;imx8_dai&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;simple-audio-card,frame-master = &amp;lt;&amp;amp;ics52000&amp;gt;&lt;/P&gt;&lt;P&gt;I don't know what i missed, my bitclock seems clean but it looks like the SAI don't manage to generate frameclock based on it.&lt;/P&gt;&lt;P&gt;For now I am trying 8kHz sample rate which gave me a 4.096MHz bitclock.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/83983i3D7B0225DCE5AF91/image-size/large?v=v2&amp;amp;px=999" title="SCRN0327.PNG" alt="SCRN0327.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope you can help me on this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Clément Duval&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2019 08:43:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8M-mini-TDM-How-to-generate-SAI-frame-Sync-from-bitclock/m-p/916061#M137891</guid>
      <dc:creator>clement_duval</dc:creator>
      <dc:date>2019-05-28T08:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8M-mini : (TDM) How to generate SAI frame Sync from bitclock ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8M-mini-TDM-How-to-generate-SAI-frame-Sync-from-bitclock/m-p/916062#M137892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clément&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"simple-audio-card" is not supported in i.MX8 NXP BSPs, but&lt;/P&gt;&lt;P&gt;one can try to debug it, checking registers TCR4, RCR4, fields FSD, FRSZ,&lt;/P&gt;&lt;P&gt;pay attention tosect.13.9.3.3 Synchronous modes,&lt;/P&gt;&lt;P&gt;sect.13.9.3.4 Frame sync configuration i.MX8MM Reference Manual.&lt;/P&gt;&lt;P&gt;Use Chapter 7 Audio attached Linux Manual for description of sai drivers.&lt;/P&gt;&lt;P&gt;Recommended to test with NXP Linux from codeaurora :&lt;BR /&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_4.14.98_2.0.0_ga" target="test_blank"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_4.14.98_2.0.0_ga&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2019 10:37:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8M-mini-TDM-How-to-generate-SAI-frame-Sync-from-bitclock/m-p/916062#M137892</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-05-28T10:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8M-mini : (TDM) How to generate SAI frame Sync from bitclock ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8M-mini-TDM-How-to-generate-SAI-frame-Sync-from-bitclock/m-p/916063#M137893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your help, I checked my registers and something seems wrong. I will check this and get back to you :&lt;/P&gt;&lt;P&gt;TCR2 = 00000000000000000000000000000000&lt;BR /&gt;TCR3 = 00000000000000000000000000000000&lt;BR /&gt;TCR4 = 00000000000000000000000000011001&lt;BR /&gt;RCR2 = 01000000000000000000000000000000&lt;BR /&gt;RCR3 = 00000000000000000000000000000000&lt;BR /&gt;RCR4 = 00000000000011110001111100111001&lt;/P&gt;&lt;P&gt;(RCR4 bit 20 should 1 instead of 0 to have 32 bits / word)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2019 13:28:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8M-mini-TDM-How-to-generate-SAI-frame-Sync-from-bitclock/m-p/916063#M137893</guid>
      <dc:creator>clement_duval</dc:creator>
      <dc:date>2019-05-28T13:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8M-mini : (TDM) How to generate SAI frame Sync from bitclock ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8M-mini-TDM-How-to-generate-SAI-frame-Sync-from-bitclock/m-p/916064#M137894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the solution to my problem. I needed the Receiver to be asynchronous. The RCR2 bit 31 tickle me.&lt;/P&gt;&lt;P&gt;I added fsl,asynchronous to my SAI config in the device tree&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;amp;sai3 {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;#sound-dai-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pinctrl-names = "default";&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_sai3&amp;gt;;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;assigned-clocks = &amp;lt;&amp;amp;clk IMX8MM_CLK_SAI3_SRC&amp;gt;,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&amp;amp;clk IMX8MM_CLK_SAI3_ROOT&amp;gt;;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;assigned-clock-parents = &amp;lt;&amp;amp;clk IMX8MM_AUDIO_PLL1_OUT&amp;gt;;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;assigned-clock-rates = &amp;lt;0&amp;gt;, &amp;lt;131072000&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;status = "okay";&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;fsl,sai-asynchronous;&lt;BR /&gt;};&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thank you for your help ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clément Duval&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2019 07:28:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8M-mini-TDM-How-to-generate-SAI-frame-Sync-from-bitclock/m-p/916064#M137894</guid>
      <dc:creator>clement_duval</dc:creator>
      <dc:date>2019-05-29T07:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8M-mini : (TDM) How to generate SAI frame Sync from bitclock ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8M-mini-TDM-How-to-generate-SAI-frame-Sync-from-bitclock/m-p/916065#M137895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Clément Duval,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I am working with iMX8M MINI dev board to interface Multi channel Stereo audio. I need some help on the TDM interface with iMX8M mini board. I changed the device tree with the help of reference screen shot you have shared.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Can you help me with how to record those TDM audio stream to the iMX8 board and separate those multi channels. I am working with 2 stereo audio (4 ADC) input with PCM1865 analog audio codec to get the sinlge TDM audio which is fed to iMX8M sai3 port.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2020 14:52:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8M-mini-TDM-How-to-generate-SAI-frame-Sync-from-bitclock/m-p/916065#M137895</guid>
      <dc:creator>malays</dc:creator>
      <dc:date>2020-08-19T14:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8M-mini : (TDM) How to generate SAI frame Sync from bitclock ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8M-mini-TDM-How-to-generate-SAI-frame-Sync-from-bitclock/m-p/916066#M137896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Malay,&lt;/P&gt;&lt;P&gt;I think your next step will be the integration of your new sound card in Alsa. I don't know what type of project you are using but you need to configure ALSA asound.conf like this one (be aware this is on an other project and must fit your devicetree)&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;pcm.!default {     type plug     slave.pcm {         @func getenv         vars [ ALSAPCM ]         default "hw:imx8tdmqcc"     } }&lt;/PRE&gt;&lt;/DIV&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;P&gt;Hope this can helps you.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2020 09:27:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8M-mini-TDM-How-to-generate-SAI-frame-Sync-from-bitclock/m-p/916066#M137896</guid>
      <dc:creator>clement_duval</dc:creator>
      <dc:date>2020-08-20T09:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8M-mini : (TDM) How to generate SAI frame Sync from bitclock ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8M-mini-TDM-How-to-generate-SAI-frame-Sync-from-bitclock/m-p/916067#M137897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Clément Duval,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you for your quick response, i really appreciate your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have more concern about how to record the TDM audio and separate them into two stereo channel.&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g. For single channel i used arecord and aplay commands to record and play the audio.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How that works in TDM mode configuration.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2020 12:13:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8M-mini-TDM-How-to-generate-SAI-frame-Sync-from-bitclock/m-p/916067#M137897</guid>
      <dc:creator>malays</dc:creator>
      <dc:date>2020-08-20T12:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8M-mini : (TDM) How to generate SAI frame Sync from bitclock ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8M-mini-TDM-How-to-generate-SAI-frame-Sync-from-bitclock/m-p/916068#M137898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Malay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arecord is a good place to start, please look at option -c channel &lt;/P&gt;&lt;P&gt;number. You will find the answer to your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clément&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2020 07:20:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8M-mini-TDM-How-to-generate-SAI-frame-Sync-from-bitclock/m-p/916068#M137898</guid>
      <dc:creator>clement_duval</dc:creator>
      <dc:date>2020-08-24T07:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8M-mini : (TDM) How to generate SAI frame Sync from bitclock ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8M-mini-TDM-How-to-generate-SAI-frame-Sync-from-bitclock/m-p/916069#M137899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Clément,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I am able to record the multi channel audio (2 stereo channel) with the help of arecord.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Can you help me with the splitting of those channels into 2 stereo channel and how to listen to those separate channels. I guess i have to use ALSA plugins but not sure how this will be integrated.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I really appreciate your inputs.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2020 17:17:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8M-mini-TDM-How-to-generate-SAI-frame-Sync-from-bitclock/m-p/916069#M137899</guid>
      <dc:creator>malays</dc:creator>
      <dc:date>2020-08-24T17:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8M-mini : (TDM) How to generate SAI frame Sync from bitclock ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8M-mini-TDM-How-to-generate-SAI-frame-Sync-from-bitclock/m-p/916070#M137900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Malay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have recorded the file, you can import it into your computer &lt;/P&gt;&lt;P&gt;and open the file with audacity. You will be able to listen to the &lt;/P&gt;&lt;P&gt;channel you want and do all the processing you need. I don't know much &lt;/P&gt;&lt;P&gt;about audacity, my expertise stops here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clément&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2020 08:18:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8M-mini-TDM-How-to-generate-SAI-frame-Sync-from-bitclock/m-p/916070#M137900</guid>
      <dc:creator>clement_duval</dc:creator>
      <dc:date>2020-08-25T08:18:15Z</dc:date>
    </item>
  </channel>
</rss>

