[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] usbpassthrough of xen-4.1.2 update / Qemu-dm PulseAudio/Alsa support



On Tue, Sep 25, 2012 at 06:34:45PM +0300, Pasi Kärkkäinen wrote:
> On Tue, Sep 25, 2012 at 10:04:22AM -0400, Konrad Rzeszutek Wilk wrote:
> >
> > # Remember QEMU_AUDIO_DRV=pa
> > soundhw='es1370'
> >
> 
> Hey,
> 
> This reminds me.. is qemu-dm (traditional) automatically compiled with 
> PulseAudio support enabled these days? 

Not that I know off. I had to enable it it my makefile/configure script.

But the other thing is that is a pain in the butt to work right.
You have to (as root) set these:

export PULSE_SERVER=192.168.101.16
export QEMU_AUDIO_DRV=pa

so that qemu-dm knows to use PA, and that PA knows where to send data.

And then on the client side (so ~/.pulse/default):
load-module module-native-protocol-tcp auth-ip-acl=192.168.101.0/24
and then also open a firewall port for it on the client side.

The GSOC work that was done to make a PulseAudio client for PV guests
was more promising - as it would automatically configure the host/client
(if they were running on the same machine). Granted it meant you had
to install some extra-third party under Windows. But it is not ready.

> How about Alsa support? 

Hadn't tried it. I thought that ALSA has gone out of favour and
PulseAudio is the new king?
> 
> Or do we need Makefile tweaks before building Xen/Qemu..


This was the only modification to the ioemu I had to do:
 
diff --git a/xen-setup b/xen-setup
index c3af79b..f674ba8 100755
--- a/xen-setup
+++ b/xen-setup
@@ -18,7 +18,7 @@ if test -z "${XEN_SCRIPT_DIR}"; then
        XEN_SCRIPT_DIR="/etc/xen/scripts"
 fi
 
-${QEMU_ROOT:-.}/configure --disable-gfx-check --disable-curses --disable-slirp 
"$@" --prefix=${PREFIX}
+${QEMU_ROOT:-.}/configure --disable-gfx-check --disable-curses --disable-slirp 
"$@" --prefix=${PREFIX} --audio-drv-list=pa
 
 if [ "x$XEN_ROOT" != x ]; then
        echo "XEN_ROOT=$XEN_ROOT" >>config-host.mak


The sound quality is not perfect - but when I play Left4Dead under Win7
(with PCI passthrough of a network card and radeon GPU) the moans
of zombies as they get whacked by my baseball is satisfyingly enough.

> -- Pasi
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxx
> http://lists.xen.org/xen-devel
> 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.