qemu should close sound device when no more needs.

Bug #1313816 reported by Yuuki Harano
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QEMU
Expired
Undecided
Unassigned

Bug Description

I use alsa directly or via pulseaudio on qemu.
And I use xmms2 as well as qemu.

When I use alsa, one of xmms2 or qemu can play sound.
When I use pulseaudio with qemu and pulseaudio -k, and pulseaudio --start,
qemu can't play sound.

I think that:
- qemu should open sound device when needs.
- qemu should close sound device when no more needs.

One of xmms2 or qemu can play sound, but both of them rarely play sound
at the same time.
qemu occurs error on pulseaudio -k, but once close and open the device,
the error will be recovered, I hope.

Host: slackware64 14.1, linux kernel 3.14.2
Qemu: 2.0.0
QEMU_AUDIO_DRV=pa /usr/local/bin/qemu-system-x86_64 -enable-kvm -hda /dosc/win8_x64.img -soundhw hda -boot c -m 2G -cpu host -usb -usbdevice tablet -display sdl -rtc base=localtime
Guest: Windows 8.1 x64

Revision history for this message
Michael Tokarev (mjt+launchpad-tls) wrote :

This will not work if qemu is chrooted, because audio devices (/dev) aren't usually available there.

So at least a naive approach should not be used. If nothing else, it should be an option.

But really, with pulseaudio backend, there should be no need to go this route and to add new code.

Revision history for this message
Thomas Huth (th-huth) wrote :

Looking through old bug tickets... can you still reproduce this issue with the latest version of QEMU? Or could we close this ticket nowadays?

Changed in qemu:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for QEMU because there has been no activity for 60 days.]

Changed in qemu:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.