<?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: GStreamer audio pipeline hangs in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/GStreamer-audio-pipeline-hangs/m-p/318889#M42418</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm having the same issue on a custom board with iMX6S.&lt;/P&gt;&lt;P&gt;Any news about this matter? Have you found a workaround/fix?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Dario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Nov 2014 14:12:20 GMT</pubDate>
    <dc:creator>DarioCosta</dc:creator>
    <dc:date>2014-11-26T14:12:20Z</dc:date>
    <item>
      <title>GStreamer audio pipeline hangs</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GStreamer-audio-pipeline-hangs/m-p/318887#M42416</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'm using i.MX6Q (with Freescale's BSP 3.0.35) and having issues with a GStreamer audio pipeline hanging in an infinite loop.&lt;/P&gt;&lt;P&gt;I have i.MX6Q as the I2S slave sending out an audio stream to an external device set as the I2S master.&lt;/P&gt;&lt;P&gt;Audio is streamed through the alsasink element without any problems until the external device stops the I2S clock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the I2S clock stops, the alsasink element keeps trying to write pcm buffers left in the pipeline (gstalsasink.c: gst_alsasink_write: snd_pcm_writei).&lt;/P&gt;&lt;P&gt;The pcm ring buffer in the kernel eventually becomes full, and returns EAGAIN (sound/core/pcm_lib.c: snd_pcm_lib_write1).&lt;/P&gt;&lt;P&gt;Upon receiving EAGAIN, the alsasink element retries indefinitely thinking that a buffer would free up eventually.&lt;/P&gt;&lt;P&gt;Obviously, a buffer is never going to free up since the kernel cannot write out the remaining pcm buffers when the I2S clock stops.&lt;/P&gt;&lt;P&gt;Once in this state, I cannot stop the pipeline since it is stuck in an infinite loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there any suggestions in overcoming this?&lt;/P&gt;&lt;P&gt;Currently, the best way I can think of is change the kernel code so that the remaining pcm buffers are thrown away when the I2S clock stops.&lt;/P&gt;&lt;P&gt;I checked the kernel source code contained in BSP 3.10.17, but it looks like the issue will still be present.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 06:04:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GStreamer-audio-pipeline-hangs/m-p/318887#M42416</guid>
      <dc:creator>chikigai</dc:creator>
      <dc:date>2014-07-11T06:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: GStreamer audio pipeline hangs</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GStreamer-audio-pipeline-hangs/m-p/318888#M42417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will delve into this. &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/weidong.sun"&gt;weidong.sun&lt;/A&gt; sorry to bother you, but do you have a clue about this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alejandro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 14:02:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GStreamer-audio-pipeline-hangs/m-p/318888#M42417</guid>
      <dc:creator>alejandrolozan1</dc:creator>
      <dc:date>2014-07-23T14:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: GStreamer audio pipeline hangs</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GStreamer-audio-pipeline-hangs/m-p/318889#M42418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm having the same issue on a custom board with iMX6S.&lt;/P&gt;&lt;P&gt;Any news about this matter? Have you found a workaround/fix?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Dario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 14:12:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GStreamer-audio-pipeline-hangs/m-p/318889#M42418</guid>
      <dc:creator>DarioCosta</dc:creator>
      <dc:date>2014-11-26T14:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: GStreamer audio pipeline hangs</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GStreamer-audio-pipeline-hangs/m-p/318890#M42419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to see if a fix could be applied to the kernel, but unfortunately never managed.&lt;/P&gt;&lt;P&gt;As a temporary workaround, I currently have a standalone process handling the gstreamer pipelines which is forked/killed appropriately.&lt;/P&gt;&lt;P&gt;Not a proper fix by any means...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 23:30:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GStreamer-audio-pipeline-hangs/m-p/318890#M42419</guid>
      <dc:creator>chikigai</dc:creator>
      <dc:date>2014-11-26T23:30:23Z</dc:date>
    </item>
  </channel>
</rss>

