From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MneNr-0006D4-9b for qemu-devel@nongnu.org; Tue, 15 Sep 2009 16:12:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MneNm-0006Au-T6 for qemu-devel@nongnu.org; Tue, 15 Sep 2009 16:12:14 -0400 Received: from [199.232.76.173] (port=39691 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MneNm-0006Aq-La for qemu-devel@nongnu.org; Tue, 15 Sep 2009 16:12:10 -0400 Received: from mx20.gnu.org ([199.232.41.8]:55836) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MneNm-0002gn-5W for qemu-devel@nongnu.org; Tue, 15 Sep 2009 16:12:10 -0400 Received: from fmmailgate02.web.de ([217.72.192.227]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MneNj-0002Cz-V6 for qemu-devel@nongnu.org; Tue, 15 Sep 2009 16:12:08 -0400 Message-ID: <4AAFF50F.9010203@web.de> Date: Tue, 15 Sep 2009 22:11:59 +0200 From: Jan Kiszka MIME-Version: 1.0 References: <4AACD7DB.2080800@web.de> <4AAD4E9B.3010503@web.de> <4AAD510A.90908@web.de> <4AADE01B.50001@web.de> In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig81E3D28C529340DF1A1AF7AF" Sender: jan.kiszka@web.de Subject: [Qemu-devel] Re: Audio List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: malc Cc: qemu-devel This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig81E3D28C529340DF1A1AF7AF Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable malc wrote: > On Mon, 14 Sep 2009, Jan Kiszka wrote: >=20 >> malc wrote: >>> On Sun, 13 Sep 2009, Jan Kiszka wrote: >>> >>>> Jan Kiszka wrote: >>>>> malc wrote: >>>>>> Does following help? >>> [..snip.] >>> >>>>> Nope, still full CPU load. >>>> Forgot to mention: I also tried OSS before, but it suffered the same= >>>> way, and polling had to be disabled. >>>> >>> Aha, i've commited this patch and another which correct premature >>> closure of audio device (for both OSS and ALSA), can not notice >>> anything particularly wrong when running with poll enabled now, can >>> you please retest things on your end, once again it would be nice to >>> have both audio systems, tested. Thanks in advance. >>> >> Sorry, both audio systems still require to disable polling for a norma= l >> cpu load. >=20 > I believe the problem is within wm8750(/musicpal combination?) > wm8750_set_format creates a bunch of ADC voices and enables them, but > no reads are ever performed, so ALSA/OSS quickly fills the buffers > and then stops reading into them thus leaving respective fd's in a > selectable state. My main machine lacks ADC so i was unable to reproduc= e > the behaviour you've seen on it on another box the issue is indeed very= > visible. Setting QEMU_OSS_ADC_DEV to /dev/moo or commenting out > AUD_set_active_in in wm8750.c cures the problem as does, contrary to > your report, setting QEMU_AUDIO_ADC_TRY_POLL to 0. Cannot confirm this: Neither commenting out AUD_set_active_in nor "tuning" QEMU_OSS_ADC_DEV makes any difference here. But what I observed is that once I tune in some station / play some song on the Musicpal, the load goes down and stays in normal range. Will dig a bit in this direction, trying to find out what is different then. Jan --------------enig81E3D28C529340DF1A1AF7AF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkqv9RQACgkQniDOoMHTA+nlbwCcD1x7jbaJQDHfvjvoBhFQAbbR 4HoAn3TIuSwW8KXwKEXxSxMoYWWM2WoX =VmsI -----END PGP SIGNATURE----- --------------enig81E3D28C529340DF1A1AF7AF--