Rpi-aprs-asound.conf

From wikipost
Revision as of 20:07, 8 November 2014 by Admin (talk | contribs) (Created page with "<pre> /etc/asound.conf </pre> The following configuration file sets the first (device 0) sound card as the default. This can be changed to make another device the default dev...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
/etc/asound.conf

The following configuration file sets the first (device 0) sound card as the default. This can be changed to make another device the default device, such as an external USB Sound Card. Another way to change the order of the numbering of a system with multiple sound cards is to edit /etc/modprobe.d/alsa-config... and override the numbering there.

This configuration file is for a system that has the native raspberry pi (audio out only) sound card disabled by blacklisting the broadcom drivers and sets the external (and only) sound card as the default. Stricly speaking this is not required but since the process to get aprs going is still in a transitional process we will continue to use this for now.

pcm.!default {
         type asym
         playback.pcm {
                 type plug
                 slave.pcm "hw:0,0"
         }
         capture.pcm {
                 type plug
                 slave.pcm "hw:0,0"
         }
}


If you wish to retain the RPi on-board sound card function you could update hw:0,0 to hw:1,0 to make the external sound card the default but you will have to make sure the order of these cards is correct.