From owner-freebsd-mobile@FreeBSD.ORG Thu Dec 4 07:49:50 2003 Return-Path: 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 5095F16A4CE for ; Thu, 4 Dec 2003 07:49:50 -0800 (PST) Received: from postal1.es.net (proxy.es.net [198.128.3.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0AEDA43FBF for ; Thu, 4 Dec 2003 07:49:49 -0800 (PST) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal1.es.net (Postal Node 1) with ESMTP (SSL) id MUA74016; Thu, 04 Dec 2003 07:49:46 -0800 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 3177D5D04; Thu, 4 Dec 2003 07:49:45 -0800 (PST) To: Davis Doherty In-Reply-To: Message from Davis Doherty Date: Thu, 04 Dec 2003 07:49:44 -0800 From: "Kevin Oberman" Message-Id: <20031204154945.3177D5D04@ptavv.es.net> cc: freebsd-mobile@freebsd.org Subject: Re: pcm ain't working - running 5.1 on Thinkpad 600 X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Dec 2003 15:49:50 -0000 > Date: Wed, 3 Dec 2003 16:52:41 -0800 (PST) > From: Davis Doherty > Sender: owner-freebsd-mobile@freebsd.org > > > So I inherited this IBM Thinkpad 600 (not one of those fancy ones with a > letter after the 600) as my first laptop, and decided I would try (a) the > FreeBSD 5.x tree for the first time and (b) FreeBSD on a laptop for the > first time. Right now, the biggest nuisance is that I cannot, for the life > of me, get the sound to work. > > So far, I have tried putting > > device pcm > > in my kernel and compiling. After doing a make and a make install followed > by a reboot, I get the message > > pcm0: on isa0 > device_probe_and_attach: pcm0 attach returned 6 > > A quick 'less -f /dev/sndstat' shows no installed devices. Furthermore, > no sound-related device is present in /dev (there's no mixer, dsp, snd, > pcm, or what have you). Were I running any other tree, I'd think I had > forgotten to do a 'sh MAKEDEV snd0'. > > So then I follow the advice of 'man pcm' and add the lines > > hint.pcm.0.at="isa" > hint.pcm.0.irq="5" > hint.pcm.0.drq="1" > hint.pcm.0.flags="0x0" > > in my /boot/device.hints file, but to no avail -- absolutely nothing > changes (that I can tell, anyway). > > Just for fun, I even tried adding > > device csa > > to my kernel (though I didn't really expect this to work), and all that > changed was that the boot message above had 'pcm1' instead of 'pcm0'. > > Any suggestions will receive my hearty appreciation. First, your pcm.0.flags probably should be 0x10. You probably also will need hint.pcm.o.port="0x52c". Finally, if this is a 600E you need to edit /sys/conf/files. delete/comment out "dev/sound/pci/csa.c optional pcm pci" (be careful that you get the right one!) and edit the line after next to read "dev/sound/pci/csapcm.c optional csa pcm pci". I'm not confident that this is needed on a 600, though. FWIW, by probe line for the sound reads: pcm0: at port 0x220-0x233,0x388-0x38b,0x530-0x537 irq 5 drq 0,1 on isa0 It is a rather out-of-date system as it takes forever to build world and it's only a test system. It was built back in June, but I doubt that any of this has changed. Also, my 600E did not gat along with ACPI at all well and I use APM on it. -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634