http://wiki.kanotix.net/CoMa.php?CoMa=2_Soundkarten&search=yep zwei Soundkarten eintragen
http://www.sonic.net/~rknop/linux/debian_alsa.html Debian Pakete für Sarge
http://alsa.opensrc.org/index.php?page=MultipleCards mit mehr als einer Karte
http://alsa.opensrc.org/index.php?page=MultipleCards
alsa-base alsa-utils alsa-xmms alsa-source kernel-package
Note that if you're going to compil nun geht der alsamixer
mit den *seq* nun auch der sequenzer :) snd_cs46xx 93768 0 snd_rawmidi 25572 1 snd_cs46xx snd_seq_device 9992 1 snd_rawmidi snd_ac97_codec 71300 1 snd_cs46xx snd_pcm 89284 1 snd_cs46xx snd_timer 26372 1 snd_pcm snd 53028 6 snd_cs46xx,snd_rawmidi,snd_seq_device,snd_ac97_codec,snd_pcm,snd_timer soundcore 9376 1 snd snd_page_alloc 12872 2 snd_cs46xx,snd_pcm snd_seq_oss 38720 0 snd_seq_midi 10592 0 snd_seq_midi_event 8768 2 snd_seq_oss,snd_seq_midi snd_seq 57616 5 snd_seq_oss,snd_seq_midi,snd_seq_midi_event snd_rawmidi 25572 2 snd_seq_midi,snd_cs46xx snd_seq_device 9992 4 snd_seq_oss,snd_seq_midi,snd_seq,snd_rawmidi snd_timer 26372 2 snd_seq,snd_pcm snd 53028 11 snd_mixer_oss,snd_seq_oss,snd_seq_midi,snd_seq_midi_event,snd_seq,snd_cs46xx,snd_rawmidi,snd_seq_device,snd_ac97_codec,snd_pcm,snd_timer
Next is the tricky part of getting the Alsa sound drivers to work correctly, here are some usefull commands that may be of help:
# /usr/bin/esd & # /usr/bin/esdctl unlock # esdctl off1 # artsdsp -m quake3
slightcrazed of http://www.linuxquestions.org/questions/showthread.php?threadid=121619 says that to play in other than root mode open the sound permissions with:
- # chmod 666 /dev/dsp* # chmod 666 /dev/mixer* # chmod 666 /dev/pcm*
I add to these commands this with:
- # chmod a+rw /dev/sequencer # ls -l /dev/dsp
Here are some strange, but probaly nessisary commands:
- # lsmod | grep snd # lsof | grep dsp # lsmod | grep sound # lsmod | grep snd # lsof | grep dsp # modprobe snd-via82xx # modprobe snd-pcm-oss # modprobe snd-mixer-oss # modprobe snd-seq-oss
I made a file called .soundrc and placed it in the /root/ directory, although I don't know why, here are the lines in it:
- pcm.!default { type hw card 0 } ctl.!default { type hw card 0 }
I checked the Alsa ability to play sounds with:
- # aplay -D default /opt/kde3/share/sounds/pop.wav # ecasound -i /opt/kde3/share/sounds/pop.wav -o alsa.hw:0,0
The most difficult problem to find was that in the /etc/sysconfig/sound file the line LOAD_SEQUENCER="yes" needs to be changed to LOAD_SEQUENCER="no".
Another catch was when checking /dev/sndstat with the command:
- # cat /dev/sndstat
it did not exist. These commands fixed the problem. First find "sndstat" and check it:
- # cat /proc/asound/oss/sndstat
Next link to it:
- # rm /dev/sndstat # ln -s /proc/asound/oss/sndstat /dev/sndstat # cat /dev/sndstat
These lines may be needed each time quake3 is run, so maybe a script would work better, like:
- #use if alsa is not already started in xwindows# /etc/init.d/alsa start killall artsd; killall esd
echo "quake3.x86 0 0 direct" > /proc/asound/card0/pcm0p/oss echo "quake3.x86 0 0 disable" > /proc/asound/card0/pcm0c/oss /usr/local/games/quake3/quake3
root@vible:cat /proc/asound/cards
0 [V8237 ]: VIA8237 - VIA 8237
VIA 8237 with AD1980 at 0xc800, irq 22
1 [Headset ]: USB-Audio - Logitech USB Headset
Logitech Logitech USB Headset at usb-0000:00:10.2-1, full speed
root@vible:lsmod | grep snd
snd_seq 57424 0
snd_via82xx 25344 5
snd_ac97_codec 76128 1 snd_via82xx
snd_mpu401_uart 8640 1 snd_via82xx
snd_usb_audio 68736 7
snd_pcm_oss 59428 0
snd_mixer_oss 21440 6 snd_pcm_oss
snd_pcm 97668 4 snd_via82xx,snd_ac97_codec,snd_usb_audio,snd_pcm_oss
snd_timer 24772 2 snd_seq,snd_pcm
snd_page_alloc 9988 2 snd_via82xx,snd_pcm
snd_usb_lib 14144 1 snd_usb_audio
snd_rawmidi 23328 2 snd_mpu401_uart,snd_usb_lib
snd_seq_device 9228 2 snd_seq,snd_rawmidi
snd 59972 26 snd_seq,snd_via82xx,snd_ac97_codec,snd_mpu401_uart,snd_usb_audio,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_usb_lib,snd_rawmidi,snd_seq_device
soundcore 9568 6 snd
usbcore 123960 7 ohci_hcd,ehci_hcd,uhci_hcd,snd_usb_audio,snd_usb_lib,usbhid
root@vible:ls -al /dev/sound/
insgesamt 0
drwxr-xr-x 2 root root 220 2005-02-06 16:35 .
drwxr-xr-x 20 root root 14700 2005-02-06 13:41 ..
crw-rw---- 1 root audio 14, 12 2005-02-06 13:06 adsp
crw-rw---- 1 root audio 14, 4 2005-02-06 13:06 audio
crw-rw---- 1 root audio 14, 20 2005-02-06 13:22 audio1
crw-rw---- 1 root audio 14, 3 2005-02-06 13:06 dsp
crw-rw---- 1 root audio 14, 19 2005-02-06 13:22 dsp1
crw-rw---- 1 root audio 14, 0 2005-02-06 13:06 mixer
crw-rw---- 1 root audio 14, 16 2005-02-06 13:22 mixer1
crw-rw---- 1 root audio 14, 1 2005-02-06 16:35 sequencer
crw-rw---- 1 root audio 14, 8 2005-02-06 16:35 sequencer2
Linux/Alsa (last modified 2008-11-04 06:59:55)