<?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: Sound Effect Delay - SGTL5000</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Sound-Effect-Delay-SGTL5000/m-p/729261#M113399</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/danielmartins"&gt;danielmartins&lt;/A&gt;‌ did you ever get this fixed???&amp;nbsp; If so, what was your solution?&amp;nbsp; I'm having an almost identical problem w/ my implementation.&amp;nbsp; When I try to play any audio out of the driver &amp;amp; device (aplay, custom apps, pjsip), I always get a 2 second delay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Jun 2019 19:13:02 GMT</pubDate>
    <dc:creator>tprins</dc:creator>
    <dc:date>2019-06-19T19:13:02Z</dc:date>
    <item>
      <title>Sound Effect Delay - SGTL5000</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Sound-Effect-Delay-SGTL5000/m-p/729259#M113397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #333333; background-color: #ffffff; font-size: 14px; margin: 0px 0px 10px;"&gt;Hello Sirs,&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-size: 14px; margin: 0px 0px 10px;"&gt;We're developing an application using C++ for backend and QML for frontend. In this application we'll play some audios which format is WAV and length from 1 to 5 secs.&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-size: 14px; margin: 0px 0px 10px;"&gt;The problem is that when an audio will be played after no audio was played before under ~6 seconds, it is delayed about ~2 seconds before starting playing. So If the audio is played constantly, it has no delay.&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-size: 14px; margin: 0px 0px 10px;"&gt;For hardware we're using a Toradex SOM, with a iMX6DL and a codec SGTL5000. For software, we're using Linux, Yocto distribuiton and Qt for framework.&lt;/P&gt;&lt;P&gt;One important detail that we've tested. We put the oscilloscope on the pin module - pin15 - output for headphone left (output from SGTL5000). This pin Toradex recommend to use for audio system. At stand-by mode, this pin have the level 0 (0V). When I play one sound, this pin goes to level 1 (3.3V). After 5 seconds, this pin return to 0V. If you play a sound before this 5 seconds, the module maintain this pin in 3.3V - and the delay doesn't occur. But, the delay every occurs when this pin is 0V. So, I think maybe have one configuration about this (delay time to pin go to 0)&lt;/P&gt;&lt;P&gt;Are there any important configuration for this .. or for SGTL500??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other important point, c&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;an you see the attach, with our screen. This is the log of our test. When we play any sound, and we cat dapm_widget value, we can see the paremeter 'PM State:' When we play any sound, this parameter goes to On - and any sound play with NO delay. After 5 seconds, this parameter goes to 'Standby', like in the picture. So, the next sound will be with the delay. We need to fid one way to configure this parameter to stay forever in ON&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN&gt;Are there any important configuration for this .. or for SGTL500??&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN&gt;We already tried to put a value (-1 and 1e6) to the field '&lt;SPAN style="color: #666666; background-color: #ffffff; font-size: 12px;"&gt;pmdown_time', but this doesn't work too.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN style="background-color: #ffffff; color: #666666; font-size: 12px;"&gt;Kindly,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2018 12:35:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Sound-Effect-Delay-SGTL5000/m-p/729259#M113397</guid>
      <dc:creator>danielmartins2</dc:creator>
      <dc:date>2018-05-29T12:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sound Effect Delay - SGTL5000</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Sound-Effect-Delay-SGTL5000/m-p/729260#M113398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can test with baremetal SDK tests to narrow down issue, if this could be caused&lt;/P&gt;&lt;P&gt;by Linux operating system delays:&lt;/P&gt;&lt;P&gt;Github SDK&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2Fbackenklee%2Fswp-report%2Ftree%2Fmaster%2FiMX6_Platform_SDK" rel="nofollow" target="_blank"&gt;https://github.com/backenklee/swp-report/tree/master/iMX6_Platform_SDK&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;As for Linux one can try not use lower power modes (with "enable_wait_mode=off"&lt;/P&gt;&lt;P&gt;kernel boot paramter) or disable busfreq driver using Chapter 24 attached Linux Manual.&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, 30 May 2018 00:14:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Sound-Effect-Delay-SGTL5000/m-p/729260#M113398</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-05-30T00:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sound Effect Delay - SGTL5000</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Sound-Effect-Delay-SGTL5000/m-p/729261#M113399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/danielmartins"&gt;danielmartins&lt;/A&gt;‌ did you ever get this fixed???&amp;nbsp; If so, what was your solution?&amp;nbsp; I'm having an almost identical problem w/ my implementation.&amp;nbsp; When I try to play any audio out of the driver &amp;amp; device (aplay, custom apps, pjsip), I always get a 2 second delay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jun 2019 19:13:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Sound-Effect-Delay-SGTL5000/m-p/729261#M113399</guid>
      <dc:creator>tprins</dc:creator>
      <dc:date>2019-06-19T19:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sound Effect Delay - SGTL5000</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Sound-Effect-Delay-SGTL5000/m-p/729262#M113400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Taylor,&lt;/P&gt;&lt;P&gt;Our problem was not solved. I tried a lot of things, but the HW like turn off if we don't play some sound between&amp;nbsp; 5 seconds. Like the SGTL goes to a Standby mode.&lt;/P&gt;&lt;P&gt;This is the poit that we can't resolve yet in our project.&lt;/P&gt;&lt;P&gt;Sorry for don't help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2019 01:29:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Sound-Effect-Delay-SGTL5000/m-p/729262#M113400</guid>
      <dc:creator>danielmartins2</dc:creator>
      <dc:date>2019-06-20T01:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sound Effect Delay - SGTL5000</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Sound-Effect-Delay-SGTL5000/m-p/729263#M113401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/danielmartins"&gt;danielmartins&lt;/A&gt;‌ we had been struggling with the same issue but on a different codec. After considerable amount of time looking through DAPM and many other posts regarding the similar issues, it turned out that our driver had msleep(250) that was hit every time we played sound. This delay was much worse (nearly double!!) after 5 seconds. I'm not sure if this is indeed your issue but I would take a look at the driver for the SGTL5000 to see if there are any hidden sleeps through out it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2019 17:36:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Sound-Effect-Delay-SGTL5000/m-p/729263#M113401</guid>
      <dc:creator>esevo</dc:creator>
      <dc:date>2019-10-28T17:36:33Z</dc:date>
    </item>
  </channel>
</rss>

