<?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: Sometimes first few seconds of audio doesn't play in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Sometimes-first-few-seconds-of-audio-doesn-t-play/m-p/1012253#M149922</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can try with nxp imx-gst1.0 gstreamer plugins described in Linux Guide included in&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=L3.14.28_1.0.0_LINUX_DOCS"&gt;Linux 3.14.28 BSP &amp;amp; Multimedia Codecs Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and with more new nxp kernels described on&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/design/i.mx-developer-resources/i.mx-software-and-development-tools:IMX-SW" title="https://www.nxp.com/design/i.mx-developer-resources/i.mx-software-and-development-tools:IMX-SW"&gt;i.MX Software and Development Tools | NXP&lt;/A&gt;&amp;nbsp;&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>Tue, 24 Dec 2019 02:47:29 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2019-12-24T02:47:29Z</dc:date>
    <item>
      <title>Sometimes first few seconds of audio doesn't play</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Sometimes-first-few-seconds-of-audio-doesn-t-play/m-p/1012252#M149921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp;have a&amp;nbsp;board based on i.MX 6Quad SABRE, running "imx6qsabresd 3.14.28-1.0.0_ga+g91cf351". Recently I'm trying to play mp3 or wav audio files with HDMI monitor, and I found sometimes the beginning of the audio are cut off. I tried gst-launch-1.0 and aplay, both have this behavior. It happens randomly, and the lost part could be anywhere below 3 seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on some posts, it looks similar issue happens to PC and windows, too. Mostly it's related to power saving. With alsa, "options snd-hda-intel power_save=0" fixes the issue for some platforms. I was hoping there is a similar configuration for imx but I couldn't find any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did find an easy "workaround": If I keep playing anything such as silence with "gst-launch-1.0 audiotestsrc wave=silence ! autoaudiosink", the real audio files work perfectly. But it uses 5% to 10% of CPU, which I don't want to waste.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A configuration would be an elegant solution. Otherwise I might need a patch on alsa-lib or the kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. Any suggestion is appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2019 19:08:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Sometimes-first-few-seconds-of-audio-doesn-t-play/m-p/1012252#M149921</guid>
      <dc:creator>harry_cheng</dc:creator>
      <dc:date>2019-12-23T19:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sometimes first few seconds of audio doesn't play</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Sometimes-first-few-seconds-of-audio-doesn-t-play/m-p/1012253#M149922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can try with nxp imx-gst1.0 gstreamer plugins described in Linux Guide included in&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=L3.14.28_1.0.0_LINUX_DOCS"&gt;Linux 3.14.28 BSP &amp;amp; Multimedia Codecs Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and with more new nxp kernels described on&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/design/i.mx-developer-resources/i.mx-software-and-development-tools:IMX-SW" title="https://www.nxp.com/design/i.mx-developer-resources/i.mx-software-and-development-tools:IMX-SW"&gt;i.MX Software and Development Tools | NXP&lt;/A&gt;&amp;nbsp;&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>Tue, 24 Dec 2019 02:47:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Sometimes-first-few-seconds-of-audio-doesn-t-play/m-p/1012253#M149922</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-12-24T02:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sometimes first few seconds of audio doesn't play</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Sometimes-first-few-seconds-of-audio-doesn-t-play/m-p/1012254#M149923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Igor,&lt;BR /&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got an error from pulsesink: "error: Failed to connect: Connection refused". So I'm still trying to fix it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I am not really confident it will work. It looks pulsesink still uses alsa as backend, and I suspect the issue is with alsa or even lower level, because I have the same issue when playing raw audio:&lt;BR /&gt;gst-launch-1.0 filesrc location=/home/root/somefile.mp3 ! mad ! filesink location=/home/root/decoded.audio&lt;BR /&gt;aplay -f s32 -r 44100 -c 2 decoded.audio&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Dec 2019 18:41:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Sometimes-first-few-seconds-of-audio-doesn-t-play/m-p/1012254#M149923</guid>
      <dc:creator>harry_cheng</dc:creator>
      <dc:date>2019-12-24T18:41:23Z</dc:date>
    </item>
  </channel>
</rss>

