From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: Re: [PATCH] [RFC] Add support for a USB audio device model Date: Fri, 10 Sep 2010 18:08:52 -0700 Message-ID: <4C8AD6A4.5010601@linux.intel.com> References: <1284155276-14959-1-git-send-email-hpa@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org, "H. Peter Anvin" To: malc Return-path: Received: from mga11.intel.com ([192.55.52.93]:31480 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751657Ab0IKBIw (ORCPT ); Fri, 10 Sep 2010 21:08:52 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On 09/10/2010 05:28 PM, malc wrote: > On Fri, 10 Sep 2010, H. Peter Anvin wrote: > >> I discovered that none of the audio device models supported by current >> Qemu/KVM appear to be supported out of the box on Win7 64 bit (AC97 >> works fine on 32 bit). The most logical ways to fix that would be to >> add a long-term supportable audio device model. Intel HD Audio and >> USB Audio seemed like the most reasonable options, but I opted for USB >> Audio for a few reasons: > > I'll look at it tomorow, in the meantime it would be great to know > how to test it (i.e. how to build the kernel which includes the > driver for this thing) Any remotely recent stock distro should have support for it. I say "should", because I haven't actually tested it with a Linux guest yet. I'll try to do that later; I have to leave now. > Oh and is the audio output bad when using linux guest too? (I don't > have any windows guests to test this part of the equation) Yes; I also have an stderr message in the patch > P.S. The patches have lot's of tabs in them btw. *Sigh* my tools are tuned to Linux kernel development, I'm afraid. > P.P.S. There's an extension to your Intel HDA Audio option: > to get the HDA code from VirtualBox and "port" it to QEMU. I know. Someone else is welcome to do that... since it would require knowing both the VirtualBox and the Qemu sound subsystem interfaces and in what ways they are similar or different. -hpa From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=60330 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OuEaM-0003mR-VC for qemu-devel@nongnu.org; Fri, 10 Sep 2010 21:08:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OuEaL-0003Gs-OH for qemu-devel@nongnu.org; Fri, 10 Sep 2010 21:08:54 -0400 Received: from mga11.intel.com ([192.55.52.93]:55628) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OuEaL-0003Go-Gg for qemu-devel@nongnu.org; Fri, 10 Sep 2010 21:08:53 -0400 Message-ID: <4C8AD6A4.5010601@linux.intel.com> Date: Fri, 10 Sep 2010 18:08:52 -0700 From: "H. Peter Anvin" MIME-Version: 1.0 References: <1284155276-14959-1-git-send-email-hpa@linux.intel.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH] [RFC] Add support for a USB audio device model List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: malc Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org, "H. Peter Anvin" On 09/10/2010 05:28 PM, malc wrote: > On Fri, 10 Sep 2010, H. Peter Anvin wrote: > >> I discovered that none of the audio device models supported by current >> Qemu/KVM appear to be supported out of the box on Win7 64 bit (AC97 >> works fine on 32 bit). The most logical ways to fix that would be to >> add a long-term supportable audio device model. Intel HD Audio and >> USB Audio seemed like the most reasonable options, but I opted for USB >> Audio for a few reasons: > > I'll look at it tomorow, in the meantime it would be great to know > how to test it (i.e. how to build the kernel which includes the > driver for this thing) Any remotely recent stock distro should have support for it. I say "should", because I haven't actually tested it with a Linux guest yet. I'll try to do that later; I have to leave now. > Oh and is the audio output bad when using linux guest too? (I don't > have any windows guests to test this part of the equation) Yes; I also have an stderr message in the patch > P.S. The patches have lot's of tabs in them btw. *Sigh* my tools are tuned to Linux kernel development, I'm afraid. > P.P.S. There's an extension to your Intel HDA Audio option: > to get the HDA code from VirtualBox and "port" it to QEMU. I know. Someone else is welcome to do that... since it would require knowing both the VirtualBox and the Qemu sound subsystem interfaces and in what ways they are similar or different. -hpa