From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: usbpassthrough of xen-4.1.2 update / Qemu-dm PulseAudio/Alsa support Date: Wed, 26 Sep 2012 07:45:15 -0400 Message-ID: <20120926114514.GB7356@phenom.dumpdata.com> References: <20120925140421.GA16478@phenom.dumpdata.com> <20120925153445.GN8912@reaktio.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <20120925153445.GN8912@reaktio.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, Sep 25, 2012 at 06:34:45PM +0300, Pasi K=E4rkk=E4inen wrote: > On Tue, Sep 25, 2012 at 10:04:22AM -0400, Konrad Rzeszutek Wilk wrote: > > > > # Remember QEMU_AUDIO_DRV=3Dpa > > soundhw=3D'es1370' > > > = > Hey, > = > This reminds me.. is qemu-dm (traditional) automatically compiled with Pu= lseAudio 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=3D192.168.101.16 export QEMU_AUDIO_DRV=3Dpa 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=3D192.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=3D"/etc/xen/scripts" fi = -${QEMU_ROOT:-.}/configure --disable-gfx-check --disable-curses --disable-s= lirp "$@" --prefix=3D${PREFIX} +${QEMU_ROOT:-.}/configure --disable-gfx-check --disable-curses --disable-s= lirp "$@" --prefix=3D${PREFIX} --audio-drv-list=3Dpa = if [ "x$XEN_ROOT" !=3D x ]; then echo "XEN_ROOT=3D$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@lists.xen.org > http://lists.xen.org/xen-devel > =