<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://www.marcelpost.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Rpi-aprs-CM106-sound-settings</id>
	<title>Rpi-aprs-CM106-sound-settings - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.marcelpost.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Rpi-aprs-CM106-sound-settings"/>
	<link rel="alternate" type="text/html" href="https://www.marcelpost.com/wiki/index.php?title=Rpi-aprs-CM106-sound-settings&amp;action=history"/>
	<updated>2026-05-17T05:38:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://www.marcelpost.com/wiki/index.php?title=Rpi-aprs-CM106-sound-settings&amp;diff=1704&amp;oldid=prev</id>
		<title>Admin at 10:53, 8 November 2014</title>
		<link rel="alternate" type="text/html" href="https://www.marcelpost.com/wiki/index.php?title=Rpi-aprs-CM106-sound-settings&amp;diff=1704&amp;oldid=prev"/>
		<updated>2014-11-08T10:53:41Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Several methods exist to load and save sound card settings under linux. Since I wanted a non-gui method of setting the sound card&amp;#039;s properties I found that the asound tool does exactly that. The nameing of the various controls and registers will probably be different for every sound card so check with &amp;#039;amixer controls&amp;#039; what those registers are called before running this script.&lt;br /&gt;
&lt;br /&gt;
[[File:Cmedia-CM106-USB-soundcard.jpg|200px|thumb|none|CMedia CM106 USB Sound Card]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
# pre-sets sound device mixer controls&lt;br /&gt;
# find out which controls are available by issuing &amp;#039;amixer controls&amp;#039;&lt;br /&gt;
&lt;br /&gt;
ACTL=/usr/sbin/alsactl&lt;br /&gt;
AMIX=/usr/bin/amixer&lt;br /&gt;
HWDEV=0&lt;br /&gt;
&lt;br /&gt;
#load some defaults&lt;br /&gt;
#$ACTL -f /etc/asound.state restore&lt;br /&gt;
&lt;br /&gt;
# Set the default recording channel&lt;br /&gt;
$AMIX -c $HWDEV sset &amp;#039;PCM Capture Source&amp;#039; &amp;#039;Mixer&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Set the input level for PCM to 80%:&lt;br /&gt;
$AMIX -c $HWDEV set PCM 80%&lt;br /&gt;
&lt;br /&gt;
# Set the input level for LINE to 0%:&lt;br /&gt;
$AMIX -c $HWDEV set Line 0%&lt;br /&gt;
&lt;br /&gt;
# Set the playback level for LINE to 55%:&lt;br /&gt;
$AMIX -c $HWDEV set Line 55%&lt;br /&gt;
&lt;br /&gt;
# Unmute the Line playback&lt;br /&gt;
$AMIX -c $HWDEV set Line unmute&lt;br /&gt;
&lt;br /&gt;
# set all playback levels to 0% except the Front-Left and Front-Right channels (10%)&lt;br /&gt;
$AMIX cset numid=7 38,38,0,0,0,0,0,0&lt;br /&gt;
&lt;br /&gt;
# force loading of these settings as otherwise it takes about 3 minutes..&lt;br /&gt;
sleep 5&lt;br /&gt;
/usr/bin/alsamixer &amp;gt; /dev/null 2&amp;gt;&amp;amp;1 &amp;amp;&lt;br /&gt;
sleep 5&lt;br /&gt;
/usr/bin/killall alsamixer &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please note that the volume levels when not listed in per cent they are not 0 - 100 or 0 - 255. Check the &amp;#039;amixer controls&amp;#039; output for this.&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>