From owner-freebsd-multimedia@FreeBSD.ORG Mon Jul 17 19:29:55 2006 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C6A616A4DE; Mon, 17 Jul 2006 19:29:55 +0000 (UTC) (envelope-from morganw@chemikals.org) Received: from ms-smtp-03.southeast.rr.com (ms-smtp-03.southeast.rr.com [24.25.9.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 94D9843D45; Mon, 17 Jul 2006 19:29:52 +0000 (GMT) (envelope-from morganw@chemikals.org) Received: from volatile.chemikals.org (cpe-024-211-118-154.sc.res.rr.com [24.211.118.154]) by ms-smtp-03.southeast.rr.com (8.13.6/8.13.6) with ESMTP id k6HJTcQR026173; Mon, 17 Jul 2006 15:29:39 -0400 (EDT) Received: from localhost (morganw@localhost [127.0.0.1]) by volatile.chemikals.org (8.13.6/8.13.6) with ESMTP id k6HJTbJS098044; Mon, 17 Jul 2006 15:29:37 -0400 (EDT) (envelope-from morganw@chemikals.org) Date: Mon, 17 Jul 2006 15:29:37 -0400 (EDT) From: Wesley Morgan To: Eric Anderson In-Reply-To: <44BB9DD7.3040908@centtech.com> Message-ID: <20060717151203.L58067@volatile.chemikals.org> References: <20060606124030.GA32057@shorty.sorbonet.org> <4485DA6D.9020304@centtech.com> <4485E199.7000604@centtech.com> <20060606205918.GA6765@shorty.sorbonet.org> <20060606231025.R50560@volatile.chemikals.org> <20060607073918.GB9245@shorty.sorbonet.org> <448CE5A0.70806@centtech.com> <20060709093252.S31266@volatile.chemikals.org> <20060709141724.GA33010@shorty.sorbonet.org> <20060717113622.7ee97e3a@localhost> <44BB77B9.5000302@centtech.com> <44BB9DD7.3040908@centtech.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Symantec AntiVirus Scan Engine Cc: Daniel Eischen , freebsd-multimedia@freebsd.org, freebsd-mobile@freebsd.org, Andrea Bittau , Dennis Melentyev Subject: Re: HDA sound driver mod for sigmatel 92xx X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2006 19:29:55 -0000 On Mon, 17 Jul 2006, Eric Anderson wrote: > On 07/17/06 09:17, Daniel Eischen wrote: >> On Mon, 17 Jul 2006, Eric Anderson wrote: >> >>> On 07/17/06 06:31, Dennis Melentyev wrote: >>>> 2006/7/17, Norberto Meijome : >>>>> On Sun, 9 Jul 2006 15:17:24 +0100 >>>>> Andrea Bittau wrote: >>>>> >>>>> > by the way, I got a version which should record stuff too: >>>>> > http://darkircop.org/hdac-rec.tgz >>>>> >>>>> Hi all, >>>>> I downloaded and tried this last night . It works great, including with >>>>> Skype >>>>> (for me, main reason for having sound really :) ). Thanks!! >>>>> >>>> .... >>>>> anyway, thanks for the code :) >>>> Will this code be commited/MFC'ed into 6-STABLE? >>>> I'd like to give it a try on my Dell Inspirion 1300 with a similar >>>> SigmaTel 92xx chip. >>>> >>> >>> I think this driver is considered a hack at this point, and if so, it >>> won't ever be committed. It might become a real driver at some point, and >>> then be committed, but at this stage I think it just barely works. :) >> >> That's funny, it works very well for me -- at least with mplayer. >> > > Me too, but just because it works well, doesn't mean it's committable. If I > recall, the original one was claimed as a hack, and the patches were made > against it. I'm just saying what I recall, not that it is actually what will > happen. It all goes to the people who have the commit bits, and core I'm > sure. The driver works "OK", as in it plays PCM sound and might record, but the internal structure of it is insufficient to really be considered "complete". Every HDA codec might have a different widget layout, which as of now the driver doesn't do much more than probe. The mixers only work because the NID of the amps are hard-coded into the system, and the playback only works because *every* DAC is activated (I think). I know that mine is capable of playing from a CD with configurable gain, should have a master volume level in addition to a PCM level (although, that could be a "soft" volume in windows) and at the least a microphone input. The problem is that I can't figure out how to connect all the widgets together properly to make this work. Even when I figure it out on my system, the topology of other codecs is likely to be different and require either a very flexible userland control (like NetBSD uses) or lots of chip-specific code in order to work. Unfortunately I don't know anything about the OSS API or FreeBSD device drivers. I'm just working off of the HDA specs. Stephane's original idea is still what I think will be the best model for FreeBSD. -- This .signature sanitized for your protection