From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59054) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjPhp-0002zX-Od for qemu-devel@nongnu.org; Thu, 21 Nov 2013 03:33:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VjPhh-0000P5-B9 for qemu-devel@nongnu.org; Thu, 21 Nov 2013 03:33:45 -0500 Received: from mail-we0-x22b.google.com ([2a00:1450:400c:c03::22b]:48776) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjPhh-0000P0-4E for qemu-devel@nongnu.org; Thu, 21 Nov 2013 03:33:37 -0500 Received: by mail-we0-f171.google.com with SMTP id q58so4607465wes.30 for ; Thu, 21 Nov 2013 00:33:36 -0800 (PST) Date: Thu, 21 Nov 2013 09:33:33 +0100 From: Stefan Hajnoczi Message-ID: <20131121083333.GC27039@stefanha-thinkpad.redhat.com> References: <528D1DFE.6090207@fastmail.fm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <528D1DFE.6090207@fastmail.fm> Subject: Re: [Qemu-devel] pcm.c:7843:(snd_pcm_recover) underrun occurred List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Francesco Turco Cc: av1474@comtv.ru, qemu-devel@nongnu.org, kraxel@redhat.com On Wed, Nov 20, 2013 at 09:39:26PM +0100, Francesco Turco wrote: > I'm not sure if asking in qemu-devel is the right thing to do, as > I'm not a QEMU developer, but stefanha in the #qemu IRC channel told > me to do so. :-) > > I'm running QEMU 1.6.1 on a 64-bit Gentoo Linux system. The guest > operating system is Windows 7 32-bit. I get multiple identical > warning messages when using the ac97 or hda sound cards: > > > ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.0.27.2/work/alsa-lib-1.0.27.2/src/pcm/pcm.c:7843:(snd_pcm_recover) > underrun occurred > > The difference between ac97 and hda is that the former works well, > while the latter causes the sound to be garbled. > > /var/tmp/portage is the directory where Portage, the Gentoo package > manager, builds programs. I don't know why it is mentioned in the > error message. > > I also don't know if this is an ALSA problem or a QEMU problem. > > The command I use is: > > > qemu-system-i386 -cpu host -m 1G -k it -drive > file=~/QEMU/windows-7.img,media=disk,index=0 -vga std -net nic -net > user -enable-kvm -display sdl -soundhw ac97 > > My real sound card is an Intel HD Audio: > > > lspci | grep "Audio device" > > 00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD > Audio Controller (rev 02) Extra info from IRC discussion: The guest is just playing system sounds. This is *not* a real-time audio app with low-latency settings that easily hits underruns. Stefan