<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Audio on Fran Kuo | R&amp;D Leadership</title>
    <link>https://chenfu.ai/en/tags/audio/</link>
    <description>Recent content in Audio on Fran Kuo | R&amp;D Leadership</description>
    <generator>Hugo -- 0.157.0</generator>
    <language>en</language>
    <lastBuildDate>Fri, 08 Feb 2013 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://chenfu.ai/en/tags/audio/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>I2S Bus Channel Configuration in GStreamer alsasrc</title>
      <link>https://chenfu.ai/en/posts/i2s-bus-channels-setting-in-gstreamer/</link>
      <pubDate>Fri, 08 Feb 2013 00:00:00 +0000</pubDate>
      <guid>https://chenfu.ai/en/posts/i2s-bus-channels-setting-in-gstreamer/</guid>
      <description>&lt;p&gt;A colleague recently observed a significant discrepancy in CPU usage while testing the GStreamer &lt;code&gt;alsasrc&lt;/code&gt; and &lt;code&gt;osssrc&lt;/code&gt; plugins. On our hardware platforms, &lt;code&gt;alsasrc&lt;/code&gt; was consuming about 16% of CPU resources, whereas the vendor-provided test tools achieved the same task with only 1~2% overhead. This massive gap in efficiency piqued my curiosity, and I decided to investigate the root cause.&lt;/p&gt;
&lt;p&gt;After several hours of deep diving into the code, I discovered that when the plugin is set to &amp;ldquo;non-blocking mode,&amp;rdquo; it can trigger a busy-wait condition within a &lt;code&gt;while&lt;/code&gt; loop, needlessly spiking CPU cycles. After a quick patch to optimize this behavior, I managed to bring the CPU usage down to 12%. While an improvement, it still felt far from the vendor tool&amp;rsquo;s efficiency.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
