From owner-freebsd-current@FreeBSD.ORG Sun Jan 11 10:33:38 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 7888D16A4CE; Sun, 11 Jan 2004 10:33:38 -0800 (PST) Received: from hak.cnd.mcgill.ca (hak.cnd.mcgill.ca [132.216.11.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6857A43D5C; Sun, 11 Jan 2004 10:33:33 -0800 (PST) (envelope-from mat@hak.cnd.mcgill.ca) Received: from hak.cnd.mcgill.ca (localhost [127.0.0.1]) by hak.cnd.mcgill.ca (8.12.9/8.12.8) with ESMTP id i0BIU4ba072738; Sun, 11 Jan 2004 13:30:04 -0500 (EST) (envelope-from mat@hak.cnd.mcgill.ca) Received: (from mat@localhost) by hak.cnd.mcgill.ca (8.12.9/8.12.8/Submit) id i0BIU4XX072737; Sun, 11 Jan 2004 13:30:04 -0500 (EST) Date: Sun, 11 Jan 2004 13:30:04 -0500 From: Mathew Kanner To: Cameron Grant Message-ID: <20040111183004.GC38657@cnd.mcgill.ca> References: <20040108171215.GE38657@cnd.mcgill.ca> <200401082055.i08Kth7E020781@gw.catspoiler.org> <20040110183955.GW38657@cnd.mcgill.ca> <202210218.1073800218@[10.1.0.2]> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202210218.1073800218@[10.1.0.2]> User-Agent: Mutt/1.4.1i Organization: I speak for myself, operating in Montreal, CANADA X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on hak.cnd.mcgill.ca cc: current@FreeBSD.org cc: orion@FreeBSD.org cc: cg@FreeBSD.org cc: Don Lewis cc: shoesoft@gmx.net Subject: Re: sound/pcm/* bugs (was: Re: page fault panic tracked down (selwakeuppri()) - really sound/pcm/*) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jan 2004 18:33:38 -0000 On Jan 11, Cameron Grant wrote: > > Perhaps a heavy handed approach but until someone can untangle > >and own this problem... > > if and when real life stops getting in my way, i'll resume working on it. > > > Whimsically, I wish some super-hacker could wrestle, unify, > >unifdef and de-kobj the sound code so I could eventually comprehend > >it. > > there really are very few ifdefs in it. in 5.x most of them are > unnecessary. > > de-kobjification would be absolutely stupid. completely the wrong > direction. > > i don't know what you mean by 'unify'. I'd hoped the "whimsical" beginning of my sentence conveyed its desperate and non-literal tone. I don't want anybody to wrestle code. I've seen it before and the bruises are ugly. But since you seem to be interested in my opinion I'll explain a little more. I'm not suggested dropping kobj's from the hardware/pcm relationship. I would like to see the vchans and format conversion either dropped or integrated completely. I would like to unifdef anything possible. Drop the use of snd_mutex_*, and general just assume that the code base is at least 5.x (the code is already moving in that direction, though not deliberately). The feeder/mixer/vchan concepts are difficult for me and I believe that de-kobj'ing would benefit the next generation of sound hacker to come. Or maybe a few lines of comments would clear everything up, it's hard to tell. Finally, the original statement was a plea for help. Anybody?... --Mat > > -cg -- We peer so suspiciously at each other that we cannot see that we Canadians are standing on the mountaintop of human wealth, freedom and privilege. - Pierre Elliott Trudeau