From owner-freebsd-mobile@FreeBSD.ORG Tue Jun 6 18:54:48 2006 Return-Path: X-Original-To: freebsd-mobile@freebsd.org Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE21016C5C5 for ; Tue, 6 Jun 2006 18:52:39 +0000 (UTC) (envelope-from anderson@centtech.com) Received: from mh2.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F67E43D58 for ; Tue, 6 Jun 2006 18:52:38 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh2.centtech.com (8.13.1/8.13.1) with ESMTP id k56IqWcw053269; Tue, 6 Jun 2006 13:52:33 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <4485CEF8.10201@centtech.com> Date: Tue, 06 Jun 2006 13:52:40 -0500 From: Eric Anderson User-Agent: Thunderbird 1.5.0.2 (X11/20060506) MIME-Version: 1.0 To: Andrea Bittau References: <20060606124030.GA32057@shorty.sorbonet.org> In-Reply-To: <20060606124030.GA32057@shorty.sorbonet.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.87.1/1515/Tue Jun 6 08:38:42 2006 on mh2.centtech.com X-Virus-Status: Clean Cc: freebsd-mobile@freebsd.org Subject: Re: HDA sound driver mod for thinkpad x60s X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2006 18:54:58 -0000 Andrea Bittau wrote: > [i sent this to fbsd multimedia. I noticed a discussion about sound on x60s on > fbsd mobile so I decided to send here too. Lemme know if it worx.] > > this is an ultra crude mod of Stephane's hdac driver. It allows me to play > music [and change the volume; w00t!] on my ibm x60s laptop. I posted it in case > anyone wanted a 0day sound driver for this laptop without having to wait until a > stable and proper version comes out. > > Doesn't support recording. I'll probably do that next if no one writes > something in the near future. > > Stephane: if you are interested in me helping out with the "mainstream" driver, > let me know. My time is very limited [you can tell by reading the code] but I > have all the info I need about this card in my head now, so I might be able to > produce something useful. > > [I'm not subscribed to the list---email me directly if you need to contact me.] > > Driver: > fetch http://darkircop.org/hdac.tgz > tar zxvf hdac.tgz > cd hdac > make > kldload ./hdac.ko Cool! I've got a Dell D820, and it builds and loads, making this dmesg output: Jun 6 13:40:37 neutrino kernel: pcm0: mem 0xdfffc000-0xdfffffff irq 21 at device 27.0 on pci0 Jun 6 13:40:37 neutrino kernel: init 0xc5011e80 Jun 6 13:40:37 neutrino kernel: pcm0: sndbuf_setmap 101000, 1000; 0xc4ecd000 -> 101000 Jun 6 13:40:37 neutrino kernel: pcm0: Reserved 0x4000 bytes for rid 0x10 type 3 at 0xdfffc000 Jun 6 13:40:37 neutrino kernel: ioapic0: routing intpin 21 (PCI IRQ 21) to vector 49 Jun 6 13:40:37 neutrino kernel: pcm0: [MPSAFE] Jun 6 13:40:37 neutrino kernel: pcm0: Output Streams: 4, Input Streams: 4, Bidirectional Streams: 0 Jun 6 13:40:37 neutrino kernel: pcm0: CORB Size: 256, RIRB Size: 256 [..snip..] Jun 6 13:40:37 neutrino kernel: pcm0: