Skip to contentSkip to conversation

sound issue

Qemu-devel Rick Vernam 2 participants 2 messages Aug 31, 2006

lore
Share & tools
lore
#0 lore raw

I've spent quite a lot of time trying to figure out why this keeps happening:

$ export QEMU_AUDIO_DRV=alsa
$ qemu-system-x86_64 -kernel-kqemu -hda /home/rick/docs/.qemu/wxp1.qemu -m 
192 -net nic -net tap,script=/etc/qemu-ifup -localtime -snapshot -usbdevice 
tablet -soundhw es1370
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'
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'

I get no sound.
If I knew what these things meant, I might be able to figure this out... Posting here is my last ditch effort - believe me, I have tried to avoid posting support questions in a dev. list, but am hoping for a bit of insight here...

almost forgot, linux host (gentoo), 2.6.17 kernel.

thanks
-Rick

#1 lore raw
Quoted 9 lines · Rick Vernam <rickv <at> hobi.com> writes:

I've spent quite a lot of time trying to figure out why this keeps happening:

$ export QEMU_AUDIO_DRV=alsa
$ qemu-system-x86_64 -kernel-kqemu -hda /home/rick/docs/.qemu/wxp1.qemu -m 
192 -net nic -net tap,script=/etc/qemu-ifup -localtime -snapshot -usbdevice 
tablet -soundhw es1370
alsa: Could not initialize ADC
alsa: Failed to set period size 1024

[..snip..]

Quoted 6 lines

I get no sound.
If I knew what these things meant, I might be able to figure this out... Posting here is my last ditch effort - believe me, I have tried to avoid posting support questions in a dev. list, but am hoping for a bit of insight here...

The error messages just notify you that qemu can not open "recording" device due to the problems with setting the period value, you can adjust it via env variables (consult qemu -audio-help for that). But DAC (i.e. playback) seems to be functioning so lack of sound (without any further error messages) is strange.

P.S. Btw. does sound work in plain i386-softmmu qemu?
You can mail me directly.