From owner-freebsd-questions@FreeBSD.ORG Mon May 24 13:17:02 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 60A1016A4CE for ; Mon, 24 May 2004 13:17:02 -0700 (PDT) Received: from pocky.capybara.org (H31.C18.B96.tor.eicat.ca [66.96.18.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F8DF43D49 for ; Mon, 24 May 2004 13:17:01 -0700 (PDT) (envelope-from andrew@capybara.org) Received: from cubic.capybara.org (cubic.capybara.org [192.168.1.90]) by pocky.capybara.org (8.11.6/8.11.6) with ESMTP id i4OKGqX25355 for ; Mon, 24 May 2004 16:16:53 -0400 (EDT) From: Andrew Kilpatrick Organization: Andrew Kilpatrick To: freebsd-questions@freebsd.org Date: Mon, 24 May 2004 16:16:52 -0400 User-Agent: KMail/1.5.4 MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200405241615.51890.andrew@capybara.org.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Sounds breaks up with 5.2-STABLE X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 May 2004 20:17:02 -0000 Hi, I'm using FreeBSD 5.2-STABLE on my workstation and have just installed a CMedia CMI8738-based sound card. The card has worked well under OpenBSD in the past (even 3 in the same machine!) but with FreeBSD the sound breaks up and is choppy if I do specific things in X like: - opening new windows - dragging a window - scrolling in my browser - holding down a key (like space) It sounds like the buffers are underrunning. Looking at /dev/sndstat with verbose set to 3 reveals a lot of buffer underruns, but it doesn't seem to notice them all. I've tried unsuccessfully setting the hw.snd.pcm0.buffersize variable higher than 16384, but to no avail. My system is a Mini-ITX EPIA 533MHz board with a CMI8738-based card. Top shows lots of CPU idling. I wrote a little program in C to open the sound card and dump stdin to it, so I can see how fast it's consuming buffers and fiddle with the ioctls and stuff, but nothing I do seems to make it work, and writing buffers larger than 16384 makes it play with gaps between buffers. That's what I've tried so far... any help would be greatly appreciated! Cheers, Andrew