<?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=7971&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / How to swap out sound cards at will,]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=7971</link>
		<description><![CDATA[The most recent posts in How to swap out sound cards at will,.]]></description>
		<lastBuildDate>Fri, 15 May 2026 08:50:39 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: How to swap out sound cards at will,]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=63821#p63821</link>
			<description><![CDATA[<p>Here&#039;s a script to create or change the file delgado suggested. Run it without an argument and it will display the card names and numbers and let you choose the default card. Run it with the desired card number as an argument and it will set that card as default. e.g.&#160; <span class="bbc">set-default-card 1</span></p><p>Run it as root or with sudo.</p><div class="codebox"><pre><code>$ cat set-default-card 
#!/usr/bin/env bash
#set-default-card

choose_card () {
	while true ; do
		echo &quot;Enter the card number to set as default.&quot;
		read ans
		cardnum=&quot;$ans&quot;
		break
	done
}

if [ &quot;$#&quot; -eq 0 ] ; then
	aplay -l
	choose_card
else
	cardnum=&quot;$1&quot;
fi

echo &quot;defaults.pcm.card $cardnum
defaults.ctl.card $cardnum&quot; &gt; /etc/asound.conf
/etc/init.d/alsa-utils restart</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Fri, 15 May 2026 08:50:39 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=63821#p63821</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to swap out sound cards at will,]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=63811#p63811</link>
			<description><![CDATA[<p>I have 2 sound cards in my alsa only system: <br />The build-in analog out (used) and the digital HDMI audio (without any physical connection to make a sound).</p><div class="codebox"><pre><code>cat /etc/asound.conf
defaults.pcm.card 1
defaults.ctl.card 1</code></pre></div><p>From time to time the index of the analog out sound card changes from 0 to 1 or back (e.g. after installing a linux distribution for testing purposes). If no sound is present, the index in &quot;asound.conf&quot; has to be adjusted.<br />A third (USB-)sound card might appear as card index &quot;2&quot; or even mix up the order.</p><p>Not sure whether this is helpful, but anyway.</p>]]></description>
			<author><![CDATA[dummy@example.com (delgado)]]></author>
			<pubDate>Thu, 14 May 2026 22:37:24 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=63811#p63811</guid>
		</item>
		<item>
			<title><![CDATA[How to swap out sound cards at will,]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=63806#p63806</link>
			<description><![CDATA[<p>I want to know how to do this to use usb audio and without the following:</p><p>anything related to pulseaudio, pipewire, or other obnoxious linux frameworks.</p><p>alsa fine though.</p>]]></description>
			<author><![CDATA[dummy@example.com (zapper)]]></author>
			<pubDate>Thu, 14 May 2026 16:46:09 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=63806#p63806</guid>
		</item>
	</channel>
</rss>
