From owner-freebsd-current@FreeBSD.ORG Tue Nov 9 03:25:06 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 ABEA416A4CE for ; Tue, 9 Nov 2004 03:25:06 +0000 (GMT) Received: from smtp003.bizmail.yahoo.com (smtp003.bizmail.yahoo.com [216.136.130.195]) by mx1.FreeBSD.org (Postfix) with SMTP id 7AC8243D2D for ; Tue, 9 Nov 2004 03:25:06 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: from unknown (HELO optimator.noacks.org) (noackjr@supercrime.org@70.240.208.193 with login) by smtp003.bizmail.yahoo.com with SMTP; 9 Nov 2004 03:25:06 -0000 Received: from localhost (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id 376BB61D7; Mon, 8 Nov 2004 21:25:05 -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 68736-15; Mon, 8 Nov 2004 21:25:01 -0600 (CST) Received: from www.noacks.org (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id B611B60CF; Mon, 8 Nov 2004 21:25:00 -0600 (CST) Received: from 192.168.1.1 (SquirrelMail authenticated user noackjr); by www.noacks.org with HTTP; Mon, 8 Nov 2004 21:25:00 -0600 (CST) Message-ID: <1454.192.168.1.1.1099970700.squirrel@192.168.1.1> In-Reply-To: References: Date: Mon, 8 Nov 2004 21:25:00 -0600 (CST) From: "Jon Noack" To: "Ariff Abdullah" 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: Robin cc: freebsd-current@freebsd.org cc: mat@cnd.mcgill.ca Subject: Re: Not support for CT4730 chip? 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: Tue, 09 Nov 2004 03:25:06 -0000 Ariff Abdullah wrote: > On Sun, 7 Nov 2004 00:10:42 +0800, Robin wrote: >> Hi all: >> I've just installed FreeBSD 5.3rc2 on an old micron laptop. The >> sound chip is detected, and snd_es137x.ko can be loaded succesfully. >> But, no sound at all. ;( Mixer is tried, but nothing is changed. >> Since it works under NetBSD 1.6.2, I believe the hardware is OK. >> Dmesg and cat /dev/sndstat is here. Any ideas? >> > ...... > > http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/73498 Have you by any chance tried my es137x patch? I doubt it would fix your problem, but as you're using the es137x driver I thought I'd see if it works for you: http://www.noacks.org/freebsd/es137x.diff The patch includes 2 main features (and is a superset of the 2 PRs mentioned): 1) Adds locking to the driver to make it MPSAFE. Reducing Giant contention can't hurt... This is based on Mathew Kanner's patch in kern/59349 (http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/59349), although I cleaned it up and added a snd_mtxfree (mutex_destroy) to complete the locking. 2) Adds digital (S/PDIF) output. This is enabled via the hw.snd.pcmX.spdif_enabled sysctl. Make sure to read the notes in kern/68594 (http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/68594). I've been using the S/PDIF output since February and the locking since August. I've had no problems with either. However, I am not aware of anyone other than myself looking at this code, so I'm sure I screwed up somewhere... ;-) Jon