<?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 ESAI Audio issue: Linux imx 3.10.17 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/ESAI-Audio-issue-Linux-imx-3-10-17/m-p/496688#M79959</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I am working on a custom board based on sabre auto board.&amp;nbsp; I am using linux-imx 3.10.17. I have to use ESAI for audio. I am writing a dummy driver which basically registers the soc card (which can then be used in ALSA utilities) and sets the hw params. &lt;/P&gt;&lt;P&gt;Now i have observed that other drivers use following functions in their code&lt;/P&gt;&lt;P&gt;snd_soc_dai_set_tdm_slot() and&amp;nbsp; snd_soc_dai_set_sysclk(). If i am using normal mode(i2s)( not TDM) ,then do i require to use snd_soc_dai_set_tdm_slot() function in my driver?&lt;/P&gt;&lt;P&gt;What is the exact purpose of these functions? What exactly do they do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wish to use imx pll4 clock for ESAI. For that, what configuration is needed? &lt;/P&gt;&lt;P&gt;Also&amp;nbsp; I want to set ESAI in master mode. What configuration is needed for that? Do I have to add anything in ESAI block in device tree?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Thanks&lt;/P&gt;&lt;P&gt;Sharvari Harisangam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 May 2016 15:00:35 GMT</pubDate>
    <dc:creator>sharvari</dc:creator>
    <dc:date>2016-05-03T15:00:35Z</dc:date>
    <item>
      <title>ESAI Audio issue: Linux imx 3.10.17</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ESAI-Audio-issue-Linux-imx-3-10-17/m-p/496688#M79959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I am working on a custom board based on sabre auto board.&amp;nbsp; I am using linux-imx 3.10.17. I have to use ESAI for audio. I am writing a dummy driver which basically registers the soc card (which can then be used in ALSA utilities) and sets the hw params. &lt;/P&gt;&lt;P&gt;Now i have observed that other drivers use following functions in their code&lt;/P&gt;&lt;P&gt;snd_soc_dai_set_tdm_slot() and&amp;nbsp; snd_soc_dai_set_sysclk(). If i am using normal mode(i2s)( not TDM) ,then do i require to use snd_soc_dai_set_tdm_slot() function in my driver?&lt;/P&gt;&lt;P&gt;What is the exact purpose of these functions? What exactly do they do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wish to use imx pll4 clock for ESAI. For that, what configuration is needed? &lt;/P&gt;&lt;P&gt;Also&amp;nbsp; I want to set ESAI in master mode. What configuration is needed for that? Do I have to add anything in ESAI block in device tree?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Thanks&lt;/P&gt;&lt;P&gt;Sharvari Harisangam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 15:00:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ESAI-Audio-issue-Linux-imx-3-10-17/m-p/496688#M79959</guid>
      <dc:creator>sharvari</dc:creator>
      <dc:date>2016-05-03T15:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: ESAI Audio issue: Linux imx 3.10.17</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ESAI-Audio-issue-Linux-imx-3-10-17/m-p/496689#M79960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sharvari&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;snd_soc_dai_set_tdm_slot() and&amp;nbsp; snd_soc_dai_set_sysclk() are&lt;/P&gt;&lt;P&gt;described in kernel alsa documentation:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.freescale.com/external-link.jspa?url=https%3A%2F%2Fwww.kernel.org%2Fdoc%2Fhtmldocs%2Falsa-driver-api%2Fch07.html" rel="nofollow" target="_blank"&gt;https://www.kernel.org/doc/htmldocs/alsa-driver-api/ch07.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.freescale.com/external-link.jspa?url=https%3A%2F%2Fwww.kernel.org%2Fdoc%2Fhtmldocs%2Falsa-driver-api%2FAPI-snd-soc-dai-set-tdm-slot.html" rel="nofollow" target="_blank"&gt;https://www.kernel.org/doc/htmldocs/alsa-driver-api/API-snd-soc-dai-set-tdm-slot.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For linux esai driver configuration one can look at attached Linux Manual&lt;/P&gt;&lt;P&gt;sect.28.4.4 Devicetree Binding, examples from sdk and description of esai test&lt;/P&gt;&lt;P&gt;in Chapter 9 Configuring the ESAI Driver iMX6_Firmware_Guide.pdf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 00:55:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ESAI-Audio-issue-Linux-imx-3-10-17/m-p/496689#M79960</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-05-04T00:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: ESAI Audio issue: Linux imx 3.10.17</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ESAI-Audio-issue-Linux-imx-3-10-17/m-p/496690#M79961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;In the function snd_soc_dai_set_sysclk(), how to set the clk_id and dir ? i am confused between ESAI EXTAL clock, ESAI FSYS clock and their directions.when to set which clock and how the direction is determined?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 07:12:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ESAI-Audio-issue-Linux-imx-3-10-17/m-p/496690#M79961</guid>
      <dc:creator>sharvari</dc:creator>
      <dc:date>2016-05-10T07:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: ESAI Audio issue: Linux imx 3.10.17</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ESAI-Audio-issue-Linux-imx-3-10-17/m-p/496691#M79962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use fsl_esai driver for two channels(stereo sound with left and right channel). Should i use network mode or normal mode? also how many slots would be needed in snd_soc_dai_set_tdm_slot() function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Thanks&lt;/P&gt;&lt;P&gt;Sharvari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 07:10:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ESAI-Audio-issue-Linux-imx-3-10-17/m-p/496691#M79962</guid>
      <dc:creator>sharvari</dc:creator>
      <dc:date>2016-05-18T07:10:02Z</dc:date>
    </item>
  </channel>
</rss>

