<?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 Re: i.mx6 audio loopback in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-audio-loopback/m-p/325341#M43666</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;应该可以，但是我们没有参考代码。还有一种方法，audio codec内部应该都可以配置loopback模式的，让数据只在audio codec内部出入。&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jun 2014 07:56:57 GMT</pubDate>
    <dc:creator>leige-b42127</dc:creator>
    <dc:date>2014-06-27T07:56:57Z</dc:date>
    <item>
      <title>i.mx6 audio loopback</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-audio-loopback/m-p/325340#M43665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying do the audio loopback on i.mx6 sabresd board.&lt;/P&gt;&lt;P&gt;Audio is in from mic port of board, and out to speaker from headphone port.&lt;/P&gt;&lt;P&gt;I used following command:&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; arecord -Dhw:0,0 -c 2 -f S16_LE -r 44100 | aplay&lt;/P&gt;&lt;P&gt;It is ok that i can hear the audio output from speaker.&lt;/P&gt;&lt;P&gt;But there is a serious delay, i measured with an oscilloscope,&lt;/P&gt;&lt;P&gt;and it &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;is about 400ms.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the problem is:&lt;/P&gt;&lt;P&gt;How can i reduce this delay time? My customer's requirement is 100ms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I think that the time is costed by the memory copy.&lt;/P&gt;&lt;P&gt;Can bellow flow be achieved？ without the alsa frame work.&lt;/P&gt;&lt;P&gt;audio---&amp;gt;SSI RX　FIFO---&amp;gt;SSI TX FIFO----&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 07:42:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-audio-loopback/m-p/325340#M43665</guid>
      <dc:creator>shanxigjz</dc:creator>
      <dc:date>2014-06-27T07:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6 audio loopback</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-audio-loopback/m-p/325341#M43666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;应该可以，但是我们没有参考代码。还有一种方法，audio codec内部应该都可以配置loopback模式的，让数据只在audio codec内部出入。&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 07:56:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-audio-loopback/m-p/325341#M43666</guid>
      <dc:creator>leige-b42127</dc:creator>
      <dc:date>2014-06-27T07:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6 audio loopback</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-audio-loopback/m-p/325342#M43667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;你好，谢谢。&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;后一种方法是不行的，因为我们客户板子的的输入和输出不是在一个codec里面做的。&lt;/P&gt;&lt;P&gt;输入信号是从一个芯片进来的，输出是到另外一个芯片。&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;关于直接 SSI RX DMA----&amp;gt;  SSI TX DMA 的方法，&lt;/P&gt;&lt;P&gt;您能告诉我大概需要修改哪些地方，&lt;/P&gt;&lt;P&gt;或者有什么可以参考的东西吗？&lt;/P&gt;&lt;P&gt;改起来的话难度大吗？&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;谢谢。&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 08:13:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-audio-loopback/m-p/325342#M43667</guid>
      <dc:creator>shanxigjz</dc:creator>
      <dc:date>2014-06-27T08:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6 audio loopback</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-audio-loopback/m-p/325343#M43668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gao and Lei, I would be interested in this discussion as I am working on improving audio latencies on iMX6.&lt;/P&gt;&lt;P&gt;Is it possible to have this discussion in English, is there a auto-translate option in the forum ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sinan Akman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 16:45:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-audio-loopback/m-p/325343#M43668</guid>
      <dc:creator>sinanakman</dc:creator>
      <dc:date>2014-06-27T16:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6 audio loopback</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-audio-loopback/m-p/325344#M43669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use SDMA P2P mode, DMA src_addr = ssi RX fifo addr, DMA dest_addr = SSI TX fifo addr.&lt;BR /&gt;You can take ASRC P2P code for sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 05:51:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-audio-loopback/m-p/325344#M43669</guid>
      <dc:creator>leige-b42127</dc:creator>
      <dc:date>2014-06-30T05:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6 audio loopback</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-audio-loopback/m-p/325345#M43670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lei, thanks for your reply and writing this again in English for me. This is actually interesting. We were trying to get p2p sdma working between spdif and ssi but we observed that every once a while sdma repeats transferring the same frame. We asked FSL if they know of any customer who successfully implemented p2p with any device other than asrc but haven't heard back. Would you know of any working implementation of p2p that does not use asrc. &lt;/P&gt;&lt;P&gt;Thanks and best regards&lt;/P&gt;&lt;P&gt;Sinan Akman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 16:22:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-audio-loopback/m-p/325345#M43670</guid>
      <dc:creator>sinanakman</dc:creator>
      <dc:date>2014-06-30T16:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6 audio loopback</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-audio-loopback/m-p/325346#M43671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what do you mean "SDMA repeats the same frame"? did you mean 2 channels, but only one channel data is transferring?&lt;BR /&gt;when using SSI p2p, dual fifo is not needed, you should disable ssi dual fifo mode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 08:27:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-audio-loopback/m-p/325346#M43671</guid>
      <dc:creator>leige-b42127</dc:creator>
      <dc:date>2014-07-03T08:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6 audio loopback</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-audio-loopback/m-p/325347#M43672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lei, in our experiment we used only one channel and didn't use the dual fifo. We observed that every once a while after a dma transfer is completed the same data was transferred again as if there was an error&amp;nbsp; and the previous transfer was repeated. Do you know anyone who had used spdif-ssi p2p sdma successfully ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 15:58:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-audio-loopback/m-p/325347#M43672</guid>
      <dc:creator>sinanakman</dc:creator>
      <dc:date>2014-07-03T15:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6 audio loopback</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-audio-loopback/m-p/325348#M43673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sinan Akman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did u get SPDIF to ASRC P2P channel working? I am facing an issue in this p2p SDMA transfer. SDMA reads only left channel FIFO of SPDIF. Do you have any idea to make SDMA to read both left and right FIFO of SPDIF?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 09:53:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-audio-loopback/m-p/325348#M43673</guid>
      <dc:creator>abeeshmp</dc:creator>
      <dc:date>2014-07-21T09:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6 audio loopback</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-audio-loopback/m-p/325349#M43674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abesh, we weren't trying to do this over asrc but rather directly from spdif to ssi. Both fifo's were filling. We had (still have) sync issues but this is different. You should have both fifo's being filled. Do you get any error in status registers ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 17:13:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-audio-loopback/m-p/325349#M43674</guid>
      <dc:creator>sinanakman</dc:creator>
      <dc:date>2014-07-21T17:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6 audio loopback</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-audio-loopback/m-p/325350#M43675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sinan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are getting "Rx FIFO resync" interrupt from spdif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 04:18:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-audio-loopback/m-p/325350#M43675</guid>
      <dc:creator>abeeshmp</dc:creator>
      <dc:date>2014-07-22T04:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6 audio loopback</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-audio-loopback/m-p/325351#M43676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sinan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please provide some inputs to make SPDIF to SSI(without ASRC) working in our side?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you use more than one SDMA channel for transfer data from spdif to ssi?&lt;/P&gt;&lt;P&gt;Did you enable Dual FIFO in SSI?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 12:42:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-audio-loopback/m-p/325351#M43676</guid>
      <dc:creator>abeeshmp</dc:creator>
      <dc:date>2014-07-22T12:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6 audio loopback</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-audio-loopback/m-p/325352#M43677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abeesg, IIRC we tried this on one channel but we then had our own sdma related issues so I don't remember if we&lt;/P&gt;&lt;P&gt;went further enough for two channels. In your case, you seemed to get the two channels out of sync perhaps as a result&lt;/P&gt;&lt;P&gt;of problem in you signal. Can you simple try this on one channel and if it works try it on another channel, i.e. have left&lt;/P&gt;&lt;P&gt;and right working separately first. If you get everything clean then we can look into why you might be having syncing&lt;/P&gt;&lt;P&gt;the both channels. Please let me know how far you are able to get with one channel only.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sinan Akman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 17:35:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-audio-loopback/m-p/325352#M43677</guid>
      <dc:creator>sinanakman</dc:creator>
      <dc:date>2014-07-22T17:35:38Z</dc:date>
    </item>
  </channel>
</rss>

