<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=8053&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / The exclusive mode of ALSA]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=8053</link>
		<description><![CDATA[The most recent posts in The exclusive mode of ALSA.]]></description>
		<lastBuildDate>Sun, 21 Jun 2026 01:45:27 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[The exclusive mode of ALSA]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=64350#p64350</link>
			<description><![CDATA[<h5>The exclusive mode of ALSA</h5><p>With <span class="bbc">plughw:0,0</span> or default, the audio path is:</p><div class="codebox"><pre><code>Application → ALSA Library → Plugin Layer → Kernel PCM Core → Hardware Driver → Hardware </code></pre></div><p>The ALSA path with <span class="bbc">hw:0,0</span> is:</p><div class="codebox"><pre><code>Application → ALSA Library → Kernel PCM Core → Hardware Driver → Hardware </code></pre></div><p>When using <span class="bbc">hw:0,0</span>, the ALSA library bypasses the plugin layer (software format/rate/channel conversion) but still goes through the kernel PCM core for buffer management, period handling, and synchronization before reaching the hardware driver. </p><p>Usually, &quot;exclusive mode&quot; refers to exclusive device access control by one applications (this is what the word exclusive is supposed to mean). Such exclusive device access prevents multiple applications from simultaneously using the same hardware resource. In the Linux kernel&#039;s technical documentation, &quot;exclusive&quot; has a specific meaning: preventing multiple applications from simultaneously using the same hardware resource. </p><p>ALSA permits &quot;exclusive full duplex&quot;: </p><div class="codebox"><pre><code>$ arecord -f cd -D hw:0,0 | aplay -V mono -D hw:0,0  
Recording WAVE &#039;stdin&#039; : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Playing WAVE &#039;stdin&#039; : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
#####################   +                          | 46%

$ arecord -f cd -D hw:1,0 | aplay -V mono -D hw:1,0 
Recording WAVE &#039;stdin&#039; : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Playing WAVE &#039;stdin&#039; : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
##################################################+| MAX

$ arecord -f cd -D hw:PCH,0 | aplay -V mono -D hw:PCH,0 
Recording WAVE &#039;stdin&#039; : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Playing WAVE &#039;stdin&#039; : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
####################                             + | 97% </code></pre></div><p><span class="bbc">arecord</span> opens <span class="bbc">hw:0,0</span> for capture<br /><span class="bbc">aplay</span> opens <span class="bbc">hw:0,0</span> for playback<br />Both processes have the the same device open simultaneously in &quot;exclusive mode&quot;.</p><p>The active meter indicates that the full duplex works and audio data is actively flowing through the pipeline in real-time.</p><p>Thus, two applications, <span class="bbc">arecord</span> and <span class="bbc">aplay</span>, have exclusive access to the same device simultaneously. It works with Intel HDA codecs, USB soundcards, etc.</p><p>OSS4 with software mixer <span class="bbc">vmix</span> disabled does not support &quot;exclusive full duplex&quot; for Intel HDA codecs</p><div class="codebox"><pre><code>$ ./fulldup

Using audio engine 0=HD Audio play front for duplex

/dev/dsp doesn&#039;t support one device based full duplex scheme
Please use the two device scheme.

$ file /dev/dsp
/dev/dsp: symbolic link to /dev/oss/oss_hdaudio0/pcm0 </code></pre></div><p>ALSA is more advanced in this sense. In advanced Monty Python reality, the word exclusive has a flexible meaning. It may mean anything you want.</p>]]></description>
			<author><![CDATA[dummy@example.com (igorzwx)]]></author>
			<pubDate>Sun, 21 Jun 2026 01:45:27 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=64350#p64350</guid>
		</item>
	</channel>
</rss>
