<?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 Configure SAI1 TX and RX independently in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Configure-SAI1-TX-and-RX-independently/m-p/605155#M91199</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a custom board based on i.MX7d. The&amp;nbsp;hardware uses SAI (Synchronous Audio Interface) Port 1 of i.MX7d for&amp;nbsp;playback and recording use cases. The required system configuration&amp;nbsp;is: SoC should act as I2S master for TX part, and slave for RX part.&amp;nbsp;However, I could not figure out a clean way to instruct CPU dai driver&amp;nbsp;(sound/soc/fsl/fsl_sai.c) about different roles for TX and RX of a&amp;nbsp;same DAI. The .set_fmt DAI op configures the TX and RX registers in&amp;nbsp;the same manner. In order to achieve the required configuration (TX master, RX slave), I added a device tree property (i.e.&amp;nbsp;"fsl,sai-is-rx-slave") and based on that make necessary changes in&amp;nbsp;.set_fmt DAI operation. Attached is the patch for the same. Is this&amp;nbsp;the right way to go? Any suggestions would be helpful.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also asked the same question on the alsa-dev mailing list, but so far have not received any response.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;BR /&gt;Vishal&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336133"&gt;0001-fsl_sai-Adjust-SAI-RX-configuration.patch.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jan 2017 08:29:38 GMT</pubDate>
    <dc:creator>vishalthanki</dc:creator>
    <dc:date>2017-01-11T08:29:38Z</dc:date>
    <item>
      <title>Configure SAI1 TX and RX independently</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Configure-SAI1-TX-and-RX-independently/m-p/605155#M91199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a custom board based on i.MX7d. The&amp;nbsp;hardware uses SAI (Synchronous Audio Interface) Port 1 of i.MX7d for&amp;nbsp;playback and recording use cases. The required system configuration&amp;nbsp;is: SoC should act as I2S master for TX part, and slave for RX part.&amp;nbsp;However, I could not figure out a clean way to instruct CPU dai driver&amp;nbsp;(sound/soc/fsl/fsl_sai.c) about different roles for TX and RX of a&amp;nbsp;same DAI. The .set_fmt DAI op configures the TX and RX registers in&amp;nbsp;the same manner. In order to achieve the required configuration (TX master, RX slave), I added a device tree property (i.e.&amp;nbsp;"fsl,sai-is-rx-slave") and based on that make necessary changes in&amp;nbsp;.set_fmt DAI operation. Attached is the patch for the same. Is this&amp;nbsp;the right way to go? Any suggestions would be helpful.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also asked the same question on the alsa-dev mailing list, but so far have not received any response.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;BR /&gt;Vishal&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336133"&gt;0001-fsl_sai-Adjust-SAI-RX-configuration.patch.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2017 08:29:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Configure-SAI1-TX-and-RX-independently/m-p/605155#M91199</guid>
      <dc:creator>vishalthanki</dc:creator>
      <dc:date>2017-01-11T08:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Configure SAI1 TX and RX independently</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Configure-SAI1-TX-and-RX-independently/m-p/605156#M91200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are right, SAI TX and RX are independent from each other,&lt;/P&gt;&lt;P&gt;patch sai settings sems as correct, in general it may work.&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>Wed, 11 Jan 2017 23:54:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Configure-SAI1-TX-and-RX-independently/m-p/605156#M91200</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-01-11T23:54:05Z</dc:date>
    </item>
  </channel>
</rss>

