You are not logged in.
Pages: 1
Hi guys,
I have this problem for some time now (I just havent got time to deal with it) - after latest installation of arch I am unable to play sound from multiple programs at once (eg from firefox and xmms). I tried to figure out alsa configuration for this myself but with no luck at all.
Could anyone please give me some hints what i should do to make it work?
Thanks.
Offline
What's with that?
http://wiki.archlinux.org/index.php/All … nd_at_once
There are many hints hidden in the alsa page, too... and I've seen a lot of goos explanations in ubuntu wiki a while ago, if that doesn't get you far enough.
Last edited by whoops (2009-06-21 11:39:20)
Offline
Have you gone through the wiki page on ALSA wiki page? If you haven't give it a good look. If no luck take a look at the Advanced Configuration section I just added, it might just help.
Setting Up a Scripting Environment | Proud donor to wikipedia - link
Offline
I think there's something wrong or incompatible with xmms and flash concerning their alsa implementation that came to view with the latest kernel or something else recent, i don't know which upgrade caused it.
I can't play sound in xmms and firefox(flash) at the same time anymore atleast. Amarok (2.1) and firefox flash still works though.
KISS = "It can scarcely be denied that the supreme goal of all theory is to make the irreducible basic elements as simple and as few as possible without having to surrender the adequate representation of a single datum of experience." - Albert Einstein
Offline
I have tried the wiki but with no success.
Here is my /etc/asound.conf file
pcm.default pcm.dmixer
pcm.dsp0 {
type plug
slave.pcm "dmixer"
}
pcm.dmixer {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
period_time 0
period_size 1024
buffer_size 8192
rate 44100 #many new cards are 48000 only
}
bindings {
0 0
1 1
}
}
ctl.dmixer {
type hw
card NVidia
}
cat /etc/asound/cards
0 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0xfeaf4000 irq 22
1 [pcsp ]: PC-Speaker - pcsp
Internal PC-Speaker at port 0x61
I am pretty sure, that this is not only xmms problem. No two aplications are able to use soundcard together. For example when i play something in vlc and mplayer (in this order) mplayer give me this errors.
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
[AO_ALSA] alsa-lib: pcm_hw.c:1321:(snd_pcm_hw_open) open /dev/snd/pcmC0D0p failed: Device or resource busy
[AO_ALSA] alsa-lib: pcm_dmix.c:1008:(snd_pcm_dmix_open) unable to open slave
[AO_ALSA] Playback open error: Device or resource busy
Another suspicious thing is, that pcm seem not to work at all. When I want to control sound volume I have to use Master or Front as a mixer.
Offline
Try disabling oss. Most programs should then just use dmix.
sudo rmmod snd_pcm_oss
If that ends up working, blacklist the module in /etc/rc.conf.
Offline
Oss disabled no change at all. Meanwhile I disabled pcsp - just to be sure, that it doesn't mess things, but stil with no luck.
My sound configuration now look like this:
$ ls -l /sys/module/snd/holders
celkem 0
lrwxrwxrwx 1 root root 0 23. čen 20.33 snd_hda_intel -> ../../snd_hda_intel
lrwxrwxrwx 1 root root 0 23. čen 20.33 snd_hwdep -> ../../snd_hwdep
lrwxrwxrwx 1 root root 0 23. čen 20.33 snd_pcm -> ../../snd_pcm
lrwxrwxrwx 1 root root 0 23. čen 20.33 snd_seq -> ../../snd_seq
lrwxrwxrwx 1 root root 0 23. čen 20.33 snd_seq_device -> ../../snd_seq_device
lrwxrwxrwx 1 root root 0 23. čen 20.33 snd_seq_oss -> ../../snd_seq_oss
lrwxrwxrwx 1 root root 0 23. čen 20.33 snd_timer -> ../../snd_timer
$ lsmod|grep '^snd' | column -t
snd_seq_oss 35584 0
snd_seq_midi_event 9344 1 snd_seq_oss
snd_seq 58336 4 snd_seq_oss,snd_seq_midi_event
snd_seq_device 9364 2 snd_seq_oss,snd_seq
snd_hda_intel 531252 1
snd_pcm 82952 1 snd_hda_intel
snd_timer 24720 2 snd_seq,snd_pcm
snd_page_alloc 11792 2 snd_hda_intel,snd_pcm
snd_hwdep 10632 1 snd_hda_intel
snd 65224 9 snd_seq_oss,snd_seq,snd_seq_device,snd_hda_intel,snd_pcm,snd_timer,snd_hwdep
$ ls -l /dev/snd
celkem 0
crw-rw---- 1 root audio 116, 8 23. čen 20.30 controlC0
crw-rw---- 1 root audio 116, 7 23. čen 20.30 hwC0D0
crw-rw---- 1 root audio 116, 6 23. čen 20.31 pcmC0D0c
crw-rw---- 1 root audio 116, 5 23. čen 20.32 pcmC0D0p
crw-rw---- 1 root audio 116, 4 23. čen 20.30 pcmC0D4c
crw-rw---- 1 root audio 116, 3 23. čen 20.30 seq
crw-rw---- 1 root audio 116, 2 23. čen 20.30 timer
Does anyone see there anything suspicious? I have no idea what to try.
Offline
Pages: 1