ALSA problems with 3.0.6 PUEL, but OSE works fine
Posted: 28. Sep 2009, 12:46
Hello,
well I have some audio trouble with the Virtualbox 3.0.6 PUEL version, but the
selfcompiled 3.0.6 OSE Version works fine somehow?!
I can't get the ALSA driver for the guests working with PUEL. It always fails with
no audio devices could be opened, using NULL... It also does that if nothing is
accessing the sound system at all.
I can get sound only working with the PUEL if guests are using the OSS driver,
_but_ this _only_ works if no application is using sound (ALSA or OSS doesn't matter)
But then VirtualBox somehow blocks the audio access for everything else...
This seems to be because my soundcard does not support hardwaremixing, and /dev/dsp
somehow doesn't get dmixed by ALSA (I also tried many different .asoundrc configs,
nothing helped). BTW "aoss VirtualBox" didn't work either...
I was close to install pulseaudio or something so that I can have sound in
VirtualBox and other apps at the same time. Then I had the idea to try VirtualBox OSE.
So I grabbed some buildscripts from slackbuilds org and modified them for 3.0.6.
With VirtualBox OSE i can select the ALSA driver for guests and everything works
totally fine! So for me it is practically solved, just wondering if this could be a bug?
Something seems to be different in the way the PUEL and OSE versions talk to ALSA?
VirtualBox 3.0.6 PUEL (installed with ./VirtualBox-3.0.6-52128-Linux_amd64.run):
-> Complete Log: http://de.pastebin.ca/1582345
Result: No audio
VirtualBox 3.0.6 OSE (selfcompiled with slackbuild script):
-> Complete Log: http://de.pastebin.ca/1582347
Result: Everything works as expected, Guest has sound!
My System:
Slackware64 13, Kernel 2.6.31.1 SMP PREEMPT x86_64,
Installed alsa packages:
alsa-lib-1.0.18-x86_64-2
alsa-oss-1.0.17-x86_64-1
alsa-utils-1.0.18-x86_64-2
well I have some audio trouble with the Virtualbox 3.0.6 PUEL version, but the
selfcompiled 3.0.6 OSE Version works fine somehow?!
I can't get the ALSA driver for the guests working with PUEL. It always fails with
no audio devices could be opened, using NULL... It also does that if nothing is
accessing the sound system at all.
I can get sound only working with the PUEL if guests are using the OSS driver,
_but_ this _only_ works if no application is using sound (ALSA or OSS doesn't matter)
But then VirtualBox somehow blocks the audio access for everything else...
This seems to be because my soundcard does not support hardwaremixing, and /dev/dsp
somehow doesn't get dmixed by ALSA (I also tried many different .asoundrc configs,
nothing helped). BTW "aoss VirtualBox" didn't work either...
I was close to install pulseaudio or something so that I can have sound in
VirtualBox and other apps at the same time. Then I had the idea to try VirtualBox OSE.
So I grabbed some buildscripts from slackbuilds org and modified them for 3.0.6.
With VirtualBox OSE i can select the ALSA driver for guests and everything works
totally fine! So for me it is practically solved, just wondering if this could be a bug?
Something seems to be different in the way the PUEL and OSE versions talk to ALSA?
VirtualBox 3.0.6 PUEL (installed with ./VirtualBox-3.0.6-52128-Linux_amd64.run):
Code: Select all
00:00:01.890 Audio: Trying driver 'alsa'.
00:00:01.890 Audio: set_record_source ars=0 als=0 (not implemented)
00:00:01.904 ALSA: Failed to apply audio parameters
00:00:01.909 ALSA: Failed to apply audio parameters
00:00:01.913 ALSA: Failed to apply audio parameters
00:00:01.917 ALSA: Failed to apply audio parameters
00:00:01.923 ALSA: Failed to apply audio parameters
00:00:01.929 ALSA: Failed to apply audio parameters
00:00:01.929 AC97: WARNING: Unable to open PCM IN!
00:00:01.930 AC97: WARNING: Unable to open PCM MC!
00:00:01.930 AC97: WARNING: Unable to open PCM OUT!
00:00:01.930 Audio: Using NULL audio driver
00:00:01.930 Audio: set_record_source ars=0 als=0 (not implemented)
00:00:01.930 VM: Raising runtime error 'HostAudioNotResponding' (fFlags=0x0)
Result: No audio
VirtualBox 3.0.6 OSE (selfcompiled with slackbuild script):
Code: Select all
00:00:01.947 Audio: Trying driver 'alsa'.
00:00:01.947 Audio: set_record_source ars=0 als=0 (not implemented)
00:00:01.962 ALSA: ADC frequency 44100Hz, period size 940, buffer size 3763
00:00:01.966 ALSA: DAC frequency 44100Hz, period size 940, buffer size 3763
Result: Everything works as expected, Guest has sound!
My System:
Slackware64 13, Kernel 2.6.31.1 SMP PREEMPT x86_64,
Installed alsa packages:
alsa-lib-1.0.18-x86_64-2
alsa-oss-1.0.17-x86_64-1
alsa-utils-1.0.18-x86_64-2