<?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 i.MX7D SAI1 (Slave) connection to codec (Master) in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX7D-SAI1-Slave-connection-to-codec-Master/m-p/690910#M107038</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Support,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We see the thread that ever discussed it before. We still have something needing to clarify.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/435098"&gt;i.MX7 SAI connection when i.MX7 is I2S slave.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have the connection described in the thread that we connect the codec BCLK and FS to I.MX7 RX_BCLK and RX_FS just like the sample picture in that thread. Does it work?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/19650i788C8B16910EB3D3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We see the description shows the TXC/TXFS can be slave or master mode. Does RXC/RXFS have the same feature or it just can be used as asynchronous mode?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In our board, currently, the TXC and TXFS is no connected and we just connect RXC and RXFS to codec to receive the signal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 May 2017 03:14:19 GMT</pubDate>
    <dc:creator>frankyhsu</dc:creator>
    <dc:date>2017-05-24T03:14:19Z</dc:date>
    <item>
      <title>i.MX7D SAI1 (Slave) connection to codec (Master)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX7D-SAI1-Slave-connection-to-codec-Master/m-p/690910#M107038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Support,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We see the thread that ever discussed it before. We still have something needing to clarify.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/435098"&gt;i.MX7 SAI connection when i.MX7 is I2S slave.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have the connection described in the thread that we connect the codec BCLK and FS to I.MX7 RX_BCLK and RX_FS just like the sample picture in that thread. Does it work?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/19650i788C8B16910EB3D3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We see the description shows the TXC/TXFS can be slave or master mode. Does RXC/RXFS have the same feature or it just can be used as asynchronous mode?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In our board, currently, the TXC and TXFS is no connected and we just connect RXC and RXFS to codec to receive the signal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 03:14:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX7D-SAI1-Slave-connection-to-codec-Master/m-p/690910#M107038</guid>
      <dc:creator>frankyhsu</dc:creator>
      <dc:date>2017-05-24T03:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX7D SAI1 (Slave) connection to codec (Master)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX7D-SAI1-Slave-connection-to-codec-Master/m-p/690911#M107039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="294301" data-username="frankyhsu" href="https://community.nxp.com/people/frankyhsu"&gt;Franky&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I confirmed it with my colleague from I.MX hardware AE team, Your connections should be OK, SAI will work at I2S mode.&lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Weidong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 04:55:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX7D-SAI1-Slave-connection-to-codec-Master/m-p/690911#M107039</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2017-05-24T04:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX7D SAI1 (Slave) connection to codec (Master)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX7D-SAI1-Slave-connection-to-codec-Master/m-p/690912#M107040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you know, on IMX7 SABER board, it uses the TXC/TXFS for BCLK/LRCLK input with slave mode and codec as master mode. If using RXC/RXFS on our design, how to configure the SAI bus in machine driver based on IMX7 BSP code? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meanwhile, we dump the value of register "SAI1 I2S1_RCR2" as below, please help to review:&lt;BR /&gt;&amp;nbsp;-------------------------------&lt;BR /&gt;&amp;nbsp;&amp;nbsp; # memtool 0x308a0088 4&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Reading 0x4 count starting at address 0x308A0088&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x308A0088:&amp;nbsp; 42000000 00000000 00000018 00000000&lt;BR /&gt;&amp;nbsp;&amp;nbsp; -------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 06:53:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX7D-SAI1-Slave-connection-to-codec-Master/m-p/690912#M107040</guid>
      <dc:creator>frankyhsu</dc:creator>
      <dc:date>2017-05-24T06:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX7D SAI1 (Slave) connection to codec (Master)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX7D-SAI1-Slave-connection-to-codec-Master/m-p/690913#M107041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have rework the Saber board to the RX_bclk/FS. Before we rework, the aplay can work. We can see the clk and even the TX/RX DATA when aplay or record. Sure, for the new configuration on saber board, we have also modified the FW setting as the DRM document mentioned. Set RXBCLK to async and TXBCLK to sync mode. The result is fail and shows "shows "pcm_write error: Input/output error"".&amp;nbsp; Would you please help to check if there are further setting needing to modify?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) DTS file: modify pin mux define for RX_BCLK/RX_FS&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/20392i8FE1FAFD0596456D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/20519i5CF4B8A664668A32/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2) DTS file: change RX and TX sync mode&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/20564iF560CA96A3EA250A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 02:41:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX7D-SAI1-Slave-connection-to-codec-Master/m-p/690913#M107041</guid>
      <dc:creator>frankyhsu</dc:creator>
      <dc:date>2017-05-25T02:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX7D SAI1 (Slave) connection to codec (Master)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX7D-SAI1-Slave-connection-to-codec-Master/m-p/690914#M107042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="294301" data-username="frankyhsu" href="https://community.nxp.com/people/frankyhsu"&gt;Franky&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am very sorry for my wrong answer!&amp;nbsp; I re-confirmed it with my colleague on the question. the following is the basic usage of SAI in i.MX7D. Let me correct it!&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(1) For Master Mode and Slave Mode, Their connections are same on hardware design&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;So connection should be:&lt;/P&gt;&lt;P&gt;SAI_TXC----&amp;gt;BCLK&lt;/P&gt;&lt;P&gt;SAI_TXF----&amp;gt;DACLRC&lt;/P&gt;&lt;P&gt;SAI_TXD----&amp;gt;DACDAT&lt;/P&gt;&lt;P&gt;SAI_RXD----&amp;gt;ADCDAT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(2) SAI_RXC &amp;amp; SAI_RXF signals&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;These 2 signals are only used to work at &lt;STRONG&gt;async&lt;/STRONG&gt; mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So whoever is Master or Slave, connections must be the same for I2S mode.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&amp;nbsp; weidong sun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Wed, 31 May 2017 06:56:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX7D-SAI1-Slave-connection-to-codec-Master/m-p/690914#M107042</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2017-05-31T06:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX7D SAI1 (Slave) connection to codec (Master)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX7D-SAI1-Slave-connection-to-codec-Master/m-p/690915#M107043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, if we miss to connect the TX_bclk and TX_FS, the HW will be a wrong connection for SAI function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 07:05:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX7D-SAI1-Slave-connection-to-codec-Master/m-p/690915#M107043</guid>
      <dc:creator>frankyhsu</dc:creator>
      <dc:date>2017-05-31T07:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX7D SAI1 (Slave) connection to codec (Master)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX7D-SAI1-Slave-connection-to-codec-Master/m-p/690916#M107044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="294301" data-username="frankyhsu" href="https://community.nxp.com/people/frankyhsu"&gt;Franky Hsu&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; About this question, there exist 2 kinds of different advice : Yes or No. I just communicated with Software AE (Max) in TaiPei, He gave a patch for you current connection, the code should be sent to you, I can also paste them here, please try it!&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c&lt;/P&gt;&lt;P&gt;index 79c23fd..42568d9 100644&lt;/P&gt;&lt;P&gt;--- a/sound/soc/fsl/fsl_sai.c&lt;/P&gt;&lt;P&gt;+++ b/sound/soc/fsl/fsl_sai.c&lt;/P&gt;&lt;P&gt;@@ -860,8 +860,8 @@ static int fsl_sai_probe(struct platform_device *pdev)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Sync Tx with Rx as default by following old DT binding */&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sai-&amp;gt;synchronous[RX] = true;&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sai-&amp;gt;synchronous[TX] = false;&lt;/P&gt;&lt;P&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sai-&amp;gt;synchronous[RX] = false;&lt;/P&gt;&lt;P&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sai-&amp;gt;synchronous[TX] = true;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fsl_sai_dai.symmetric_rates = 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fsl_sai_dai.symmetric_channels = 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fsl_sai_dai.symmetric_samplebits = 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&amp;nbsp;&amp;nbsp; Weidong Sun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Thu, 01 Jun 2017 01:35:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX7D-SAI1-Slave-connection-to-codec-Master/m-p/690916#M107044</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2017-06-01T01:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX7D SAI1 (Slave) connection to codec (Master)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX7D-SAI1-Slave-connection-to-codec-Master/m-p/690917#M107045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We had tried this solution via adding DTS "fsl,sai-synchronous-rx".&lt;BR /&gt;And with this config, the SAI driver will set RX=false, TX=ture.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If dump the register, we can get the RX has been set as sync mode, and TX as async mode.&lt;BR /&gt;But the SAI function still can not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/19566i770BCE4359899E15/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 02:25:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX7D-SAI1-Slave-connection-to-codec-Master/m-p/690917#M107045</guid>
      <dc:creator>frankyhsu</dc:creator>
      <dc:date>2017-06-01T02:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX7D SAI1 (Slave) connection to codec (Master)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX7D-SAI1-Slave-connection-to-codec-Master/m-p/690918#M107046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Wigros,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update the status on our side:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; On our board, SAI1 is for codec, and SAI2 is for Bluetooth audio, need to notice, the two SAI bus are using &amp;nbsp;the RX_BCLK and RX_SYNC.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; But we found that the play and record function are working on BT side, not working on codec.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; It's strange, the same connection(RX_BCLK/RX_SYNC), why the SAI2 works well, but SAI1 can't work?&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Please help to confirm the different.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2017 11:22:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX7D-SAI1-Slave-connection-to-codec-Master/m-p/690918#M107046</guid>
      <dc:creator>brucefang</dc:creator>
      <dc:date>2017-06-19T11:22:53Z</dc:date>
    </item>
  </channel>
</rss>

