All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad@kernel.org>
To: "Pasi Kärkkäinen" <pasik@iki.fi>
Cc: xen-devel@lists.xen.org
Subject: Re: usbpassthrough of xen-4.1.2 update / Qemu-dm PulseAudio/Alsa support
Date: Wed, 26 Sep 2012 07:45:15 -0400	[thread overview]
Message-ID: <20120926114514.GB7356@phenom.dumpdata.com> (raw)
In-Reply-To: <20120925153445.GN8912@reaktio.net>

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@lists.xen.org
> http://lists.xen.org/xen-devel
> 

  reply	other threads:[~2012-09-26 11:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-25  3:17 usbpassthrough of xen-4.1.2 update Qian Hu
2012-09-25  6:11 ` Pasi Kärkkäinen
2012-09-25  9:01   ` Qian Hu
2012-09-25 14:04 ` Konrad Rzeszutek Wilk
2012-09-25 15:34   ` usbpassthrough of xen-4.1.2 update / Qemu-dm PulseAudio/Alsa support Pasi Kärkkäinen
2012-09-26 11:45     ` Konrad Rzeszutek Wilk [this message]
2012-09-26  8:39   ` usbpassthrough of xen-4.1.2 update Qian Hu
2012-09-26 11:48     ` Konrad Rzeszutek Wilk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120926114514.GB7356@phenom.dumpdata.com \
    --to=konrad@kernel.org \
    --cc=pasik@iki.fi \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.