From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Js2Mz-0002Ub-2a for qemu-devel@nongnu.org; Fri, 02 May 2008 17:00:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Js2My-0002U6-JC for qemu-devel@nongnu.org; Fri, 02 May 2008 17:00:40 -0400 Received: from [199.232.76.173] (port=50431 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Js2My-0002Tz-GF for qemu-devel@nongnu.org; Fri, 02 May 2008 17:00:40 -0400 Received: from fmmailgate03.web.de ([217.72.192.234]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Js2My-0008E7-0g for qemu-devel@nongnu.org; Fri, 02 May 2008 17:00:40 -0400 Message-ID: <481B80F0.8050705@web.de> Date: Fri, 02 May 2008 23:00:32 +0200 From: Jan Kiszka MIME-Version: 1.0 References: <481B6626.7010603@web.de> In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig552F8D10E78D8E91D46322A9" Sender: jan.kiszka@web.de Subject: [Qemu-devel] Re: [PATCH] alsaaudio: increase default buffer sizes Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: malc Cc: qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig552F8D10E78D8E91D46322A9 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable malc wrote: > On Fri, 2 May 2008, Jan Kiszka wrote: >=20 >> Sound though the ALSA driver is skipping here unless I increase the >> buffer size. OSS seems to use 16K as well, and 1K was obviously to sma= ll >> for recording anyway. >> >> [ PS: Can someone explain to me why I also have to override the >> DAC/ADC_FIXED_FREQ to 48000 to make ALSA work? Suboptimal... ] >=20 > How exactly it doesn't work if you don't override it? Do you get any > messages prefixed with "alsa:"? As for the defaults they were set to > 1024/256 because that's what was needed to make it sound on par with OS= S > on the two machines i had at the time. alsa: Could not initialize ADC alsa: Failed to set period size 256 alsa: Reason: Invalid argument alsa: Could not initialize ADC alsa: Failed to set period size 256 alsa: Reason: Invalid argument audio: Failed to create voice `wm8750.input1' alsa: Could not initialize ADC alsa: Failed to set period size 256 alsa: Reason: Invalid argument alsa: Could not initialize ADC alsa: Failed to set period size 256 alsa: Reason: Invalid argument audio: Failed to create voice `wm8750.input2' alsa: Could not initialize ADC alsa: Failed to set period size 256 alsa: Reason: Invalid argument alsa: Could not initialize ADC alsa: Failed to set period size 256 alsa: Reason: Invalid argument audio: Failed to create voice `wm8750.input3' alsa: Could not initialize DAC alsa: Failed to set period size 256 alsa: Reason: Invalid argument alsa: Could not initialize DAC alsa: Failed to set period size 256 alsa: Reason: Invalid argument audio: Failed to create voice `wm8750.speaker' alsa: Could not initialize DAC alsa: Failed to set period size 256 alsa: Reason: Invalid argument alsa: Could not initialize DAC alsa: Failed to set period size 256 alsa: Reason: Invalid argument audio: Failed to create voice `wm8750.headphone' alsa: Could not initialize DAC alsa: Failed to set period size 256 alsa: Reason: Invalid argument alsa: Could not initialize DAC alsa: Failed to set period size 256 alsa: Reason: Invalid argument audio: Failed to create voice `wm8750.monomix' BTW, I picked up those ALSA settings from user reports on kvm-devel, dating back to mid of last year. So I'm not alone, and it shouldn't be a wm8750-specific thing. >=20 > By the by: OSSs fragment size is specified in bytes, ALSAs on the other= > hand in frames. So 16*1024 in the patch bellow means(considering > S16/stereo) 65536 bytes large buffer and 1024 bytes large period. For > OSS it's 16K bytes buffer and 4096 bytes period. >=20 Ah, OK. However, 4*1024 is not enough for the DAC here, and there were similar reports by kvm users. Jan --------------enig552F8D10E78D8E91D46322A9 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.4-svn0 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFIG4D0niDOoMHTA+kRAvRJAJ4wY1kE6o7ssKOxbTpKjdyIH8M8bQCeKqLS EtTn03KvUVg+pbfCwhC4WV8= =Nqla -----END PGP SIGNATURE----- --------------enig552F8D10E78D8E91D46322A9--