From owner-freebsd-current Tue Nov 23 1:49:59 1999 Delivered-To: freebsd-current@freebsd.org Received: from herring.nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (Postfix) with ESMTP id 8116614E09 for ; Tue, 23 Nov 1999 01:49:45 -0800 (PST) (envelope-from dfr@nlsystems.com) Received: from salmon.nlsystems.com (salmon.nlsystems.com [10.0.0.3]) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id JAA37732; Tue, 23 Nov 1999 09:47:32 GMT (envelope-from dfr@nlsystems.com) Date: Tue, 23 Nov 1999 09:47:32 +0000 (GMT) From: Doug Rabson To: Peter Wemm Cc: "Matthew N. Dodd" , Nick Hibma , FreeBSD CURRENT Mailing List Subject: Re: sbc and pcm In-Reply-To: <19991122202239.5A75C1C6D@overcee.netplex.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 23 Nov 1999, Peter Wemm wrote: > "Matthew N. Dodd" wrote: > > On Mon, 22 Nov 1999, Nick Hibma wrote: > > > My compliments on the sbc bridge drivers. This is what newbus is > > > supposed to look like. Anyone wanting to know what a bridge driver is, > > > have a look at > > > > > > sys/dev/sound/isa/sbc.c > > > > > > Beautiful in its simplicity: > > > > > > probe > > > attach (create a few children: pcm, midi, etc.) > > > helper functions (alloc/free resource). > > > > Actually, I've a few issues with it but I'm sure Peter will cover anything > > I have to say. > > > > Mostly, sbc.c is handling PnP ID matching in a totally bogus manner. > > Yes, it's quite bogus and is incompatible with motherboard devices. There > should be no vendor ID references in there at all, that's for card ID, not > device id. I thought the problem with that (which was present in the non-bridged sb driver too) is that for sound cards, we need to use both logical and vendor IDs to detect things accuratly (a surprisingly large number of cards are just labeled CSC0001 or similar). -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message