From owner-freebsd-current@FreeBSD.ORG Mon Dec 13 19:27:51 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C80DC16A4CE for ; Mon, 13 Dec 2004 19:27:51 +0000 (GMT) Received: from smtp005.bizmail.sc5.yahoo.com (smtp005.bizmail.sc5.yahoo.com [66.163.175.82]) by mx1.FreeBSD.org (Postfix) with SMTP id 510AA43D1D for ; Mon, 13 Dec 2004 19:27:51 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: from unknown (HELO optimator.noacks.org) (noackjr@supercrime.org@70.240.198.174 with login) by smtp005.bizmail.sc5.yahoo.com with SMTP; 13 Dec 2004 19:27:51 -0000 Received: from localhost (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id 381E86149; Mon, 13 Dec 2004 13:27:50 -0600 (CST) Received: from optimator.noacks.org ([127.0.0.1]) by localhost (optimator.noacks.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14733-09; Mon, 13 Dec 2004 13:27:47 -0600 (CST) Received: from www.noacks.org (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id 24B9D60FD; Mon, 13 Dec 2004 13:27:47 -0600 (CST) Received: from 69.53.57.66 (SquirrelMail authenticated user noackjr); by www.noacks.org with HTTP; Mon, 13 Dec 2004 13:27:47 -0600 (CST) Message-ID: <55260.69.53.57.66.1102966067.squirrel@69.53.57.66> In-Reply-To: <20041211155825.16409.qmail@laurel.tmseck.homedns.org> References: <20041210155518.O63382@carver.gumbysoft.com> <20041211155825.16409.qmail@laurel.tmseck.homedns.org> Date: Mon, 13 Dec 2004 13:27:47 -0600 (CST) From: "Jon Noack" To: "Thomas-Martin Seck" User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: amavisd-new at noacks.org cc: freebsd-current@freebsd.org Subject: Re: FreeBSD sound distortion problems with SB Live! fixed with PREEMPTION X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: noackjr@alumni.rice.edu List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2004 19:27:51 -0000 Thomas-Martin Seck wrote: > * Doug White : > >> I purchased a SBLive 5.1 and ran tests with it in a Dell PowerEdge 1750 >> (2x2.4GHz Xeon) the last time we had complaints about sound jitteryness >> and I wasn't able to reproduce it, even with heavy buildworld load. >> Guess its time to pull the card out and give it another try (after I >> just >> pulled it out of the machine yesterday...) > > Do add another datapoint here: > > Playing an mp3 with mpg321 from the console while doing a 'make extract' > or even 'make clean' in www/firefox is sufficient for reproducing the > sound related issues here. (This is pIII-550 with a Soundblaster card > (ES137x driver), 4BSD scheduler and an IDE disk on a Promise PDC20268 > UDMA100 controller). With PREEMPTION enabled, the playback is slowed > down noticeably, pops and clicks are rare, though. Without PREEMPTION > enabled, mp3 output was severely distorted even when not much system > activity happened beyond running mpg321. Try my es137x patch: http://www.noacks.org/freebsd/es137x.diff Among other things, it incorporates: * Locking and INTR_MPSAFE (PR kern/59349) * S/PDIF output (PR kern/68594) Note that I modified the locking from kern/59349 to include a snd_mtxfree. I also cleaned it up a bit. I got a review on the S/PDIF stuff, but the locking probably needs a good once-over. In any case, I've been running this patch in various forms since February with no problems. I used to have the behavior you're describing, but haven't seen it since PREEMPTION started working again with SCHED_4BSD a while back (before 5.3, certainly). Jon