You are not logged in.

#1 2007-07-27 20:46:47

zodmaner
Member
Registered: 2007-07-11
Posts: 653

Trying to get sound working in QEMU

Running QEMU with option '-soundhw es1370 hda' or '-soundhw all' gives me this error:

oss: Could not initialize DAC
oss: Failed to open `/dev/dsp'
oss: Reason: Device or resource busy
oss: Could not initialize DAC
oss: Failed to open `/dev/dsp'
oss: Reason: Device or resource busy
audio: Failed to create voice `pcspk'
pcspk: Could not open voice
oss: Could not initialize DAC
oss: Failed to open `/dev/dsp'
oss: Reason: Device or resource busy
oss: Could not initialize DAC
oss: Failed to open `/dev/dsp'
oss: Reason: Device or resource busy
audio: Failed to create voice `es1370.dac2'
oss: Could not initialize DAC
oss: Failed to open `/dev/dsp'
oss: Reason: Device or resource busy
oss: Could not initialize DAC
oss: Failed to open `/dev/dsp'
oss: Reason: Device or resource busy
audio: Failed to create voice `es1370.dac2'
oss: Could not initialize DAC
oss: Failed to open `/dev/dsp'
oss: Reason: Device or resource busy
oss: Could not initialize DAC
oss: Failed to open `/dev/dsp'
oss: Reason: Device or resource busy
audio: Failed to create voice `es1370.dac2'

And I get no sound when using QEMU.

Using '-soundhw sb16 hda' produces no error, but I get no sound either.

I'm not too sure what cause problem here. There's no other problem that use soundcard when I run QEMU (that I'm aware of).

EDIT: BTW, I've already installed alsa-oss package, so OSS should work, right?

Last edited by zodmaner (2007-07-27 20:52:39)

Offline

#2 2007-07-28 16:06:06

zodmaner
Member
Registered: 2007-07-11
Posts: 653

Re: Trying to get sound working in QEMU

Well, after searching around the official QEMU website, I manages to locate this question on FAQ: http://calamari.reverse-dns.net:980/cgi … efb9bb6378

So I try using these command:

export QEMU_AUDIO_DRV=alsa
export QEMU_ALSA_DAC_PERIOD_SIZE=1024

And now QEMU spit this error at me:

alsa: Could not initialize DAC
alsa: Failed to set period size 1024
alsa: Reason: Invalid argument
alsa: Could not initialize DAC
alsa: Failed to set period size 1024
alsa: Reason: Invalid argument
audio: Failed to create voice `es1370.dac2'
alsa: Could not initialize ADC
alsa: Failed to set period size 1024
alsa: Reason: Invalid argument
alsa: Could not initialize ADC
alsa: Failed to set period size 1024
alsa: Reason: Invalid argument
audio: Failed to create voice `es1370.adc'

On the QEMU FAQ it says that this error occurs because:

...you don't have a proper configuration set up for your sound card.

What does this mean? (My sound card is working perfectly, by the way). Do I need to config my sound card? I used to be able to run QEMU with sound support under Ubuntu, so this is a little puzzling to me as to what is wrong here.

Last edited by zodmaner (2007-07-28 16:07:33)

Offline

#3 2007-07-29 18:45:57

zodmaner
Member
Registered: 2007-07-11
Posts: 653

Re: Trying to get sound working in QEMU

Hm... would running 'alsaconf' help me fixed this problem? On the official QEMU FAQ they say that:

Make sure you have a sane asound.conf and/or ~/.asoundrc file for your host system.

and I can't seem to find these files. Will alsaconf create these files for me?

Also, I've read on our forum that I shouldn't use alsaconf because it might cause conflict problem with udev hardware auto-detection. Is this true?

Last edited by zodmaner (2007-07-29 18:46:20)

Offline

Board footer

Powered by FluxBB