Web lists-archives.com

Re: how to select sound card in mixer




Cindy-Sue Causey wrote:

> crw-rw----+ 1 root audio    14,   4 Jan 16 12:21 /dev/audio
> crw-rw----+ 1 root audio    14,   3 Jan 16 12:21 /dev/dsp
> crw-rw----+ 1 root audio    14,   0 Jan 16 12:21 /dev/mixer

this is dsp - I think it is compatibility layer to older OSS. What you also
want to look at is:

$ ls -al /dev/snd/
total 0
drwxr-xr-x   4 root root      340 Jan  6 16:10 .
drwxr-xr-x  17 root root    14400 Jan 18 21:06 ..
drwxr-xr-x   2 root root       60 Jan  6 16:10 by-id
drwxr-xr-x   2 root root       80 Jan  6 16:10 by-path
crw-rw----+  1 root audio 116, 10 Jan  6 16:10 controlC0
crw-rw----+  1 root audio 116, 12 Jan  6 16:10 controlC1
crw-rw----+  1 root audio 116,  8 Jan  6 16:10 hwC0D2
crw-rw----+  1 root audio 116,  9 Jan  6 16:10 hwC0D3
crw-rw----+  1 root audio 116,  3 Jan 14 23:19 pcmC0D0c
crw-rw----+  1 root audio 116,  2 Jan 19 08:05 pcmC0D0p
crw-rw----+  1 root audio 116,  4 Jan  6 16:10 pcmC0D2c
crw-rw----+  1 root audio 116,  5 Jan  6 16:45 pcmC0D3p
crw-rw----+  1 root audio 116,  6 Jan  6 16:45 pcmC0D7p
crw-rw----+  1 root audio 116,  7 Jan  6 16:45 pcmC0D8p
crw-rw----+  1 root audio 116, 11 Jan 14 23:19 pcmC1D0c
crw-rw----+  1 root audio 116,  1 Jan 11 18:08 seq
crw-rw----+  1 root audio 116, 33 Jan  6 16:10 timer

output might differ on your end

but usually all is hidden behind pulseaudio.

you can set the precedence of the audio card by configuring the index
parameter for it for example in /etc/modprobe.d/alsa-base.conf or custom
conf file there

options snd_hda_intel index=0
options snd-usb-audio index=1

this tells the computer to use the hda_intel card as first one and the usb
audio card as second. Read also the documentation.

regards