You are not logged in.
I have installed an USB-Soundcard and an USB-Webcam. The problem is, if the webcam is pluged in. The system recognize the soundcard as second device.
**** List of CAPTURE Hardware Devices ****
card 0: Camera [Camera], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Device [Kenwood Audio Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
So,if i try to watch for example videos on YouTube i don´t have sound, an this error-message in the terminal:
ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
If i start the system without the camera plugged-in i have sound. So i created an "/etc/asound.conf" as explained in the wiki, and modified it.
#/etc/asound.conf start:
pcm.!default {
type plug
slave.pcm "dmixer"
}
pcm.dsp0 {
type plug
slave.pcm "dmixer"
}
pcm.dmixer {
type dmix
ipc_key 1024
slave {
pcm "hw:1,0"
period_time 0
period_size 1024
buffer_size 8192
rate 44100
}
bindings {
0 0
1 1
}
}
ctl.dmixer {
type hw
card 1
}
#end.
After doing this i had sound. But the microphone doesn´t work anymore, and i get the following error-message.
ALSA lib pcm_dmix.c:803:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
Does anyone has an idea how to fix this? Maybe its possible to set the the second card as standart-output or to change the order: Soundcard = Card 0 / Webcam = Card1.
Last edited by stonerl (2007-05-30 06:51:40)
Offline
To set the order of my two soundcards I've added to modprobe.conf those lines:
alias snd-card-0 snd-emu10k1
alias sound-slot-0 snd-emu10k1
alias snd-card-1 snd-intel8x0
alias sound-slot-1 snd-intel8x0
options snd-emu10k1 index=0
options snd-intel8x0 index=1
Offline
Great, that worked. I had to modify it, because both cards are using the same driver.
alias snd-card-0 snd-usb-audio
alias sound-slot-0 snd-usb-audio
alias snd-card-1 snd-usb-audio
alias sound-slot-1 snd-usb-audio
options snd-usb-audio index=1,0
Offline