From owner-freebsd-mobile Mon Jun 3 9:10: 4 2002 Delivered-To: freebsd-mobile@freebsd.org Received: from postal3.es.net (postal3.es.net [198.128.3.207]) by hub.freebsd.org (Postfix) with ESMTP id 70B1937B40D for ; Mon, 3 Jun 2002 09:09:43 -0700 (PDT) Received: from ptavv.es.net ([198.128.4.29]) by postal3.es.net (Postal Node 3) with ESMTP id GQF37091; Mon, 03 Jun 2002 09:09:42 -0700 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Postfix) with ESMTP id 031555D04; Mon, 3 Jun 2002 09:09:42 -0700 (PDT) To: adace@orbitz.com Cc: freebsd-mobile@freebsd.org Subject: Re: IBM ThinkPad T21 -- any hope for sound support? In-reply-to: Your message of "Mon, 03 Jun 2002 10:17:50 CDT." Mime-Version: 1.0 (generated by tm-edit 1.8) Content-Type: multipart/mixed; boundary="Multipart_Mon_Jun__3_09:06:09_2002-1" Content-Transfer-Encoding: 7bit Date: Mon, 03 Jun 2002 09:09:42 -0700 From: "Kevin Oberman" Message-Id: <20020603160942.031555D04@ptavv.es.net> Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --Multipart_Mon_Jun__3_09:06:09_2002-1 Content-Type: text/plain; charset=US-ASCII > From: adace@orbitz.com > Date: Mon, 3 Jun 2002 10:17:50 -0500 > Sender: owner-freebsd-mobile@FreeBSD.ORG > > Quick Hardware Summary: > > * IBM ThinkPad T21 > * Model: 2647-87U > * Audio Chipset: CS461x > > Relevant Kernel Config Options: > > options PNPBIOS > device pcm > device csa > > Resulting Kernel Messages: > May 16 11:54:25 ganymede /kernel: csa0: > mem > 0xe8000000-0xe80fffff,0xe8122000-0xe8122fff irq 11 at device 5.0 on pci0 > May 16 11:54:25 ganymede /kernel: csa: card is Thinkpad 600X/A20/T20 > May 16 11:54:25 ganymede /kernel: pcm0: on csa0 > May 16 11:54:25 ganymede /kernel: device_probe_and_attach: pcm0 attach > returned > 6 > > I found one email in the freebsd-mobile archives that indicates that this > simply doesn't work. Is this still the case for FreeBSD 4.5R? The dmesg indicates a PCI/ISA issue similar to that of the old 600E. While this may not be the case, it might be worth trying the 600E fix. I will append the perl script I use to apply the fix. After applying it, rebuild the kernel with the following changes to the kernel configuration: Delete "options PNPBIOS" Delete "device csa" Modify "device pcm" to "device pcm0 at isa? port 0x52c irq 5 drq 1 flags 0x10" Note that fix-files will need to be re-run each time you update your sources. While this last line is valid for the 600E, it is entirely possible that you will need to modify the port, irq, or drq for the T21. You can use the ps2 utility (ps2 ? au) to see the irq and drq values. The port should be 4 less that the address shown. This may not be appropriate to the T21, but it might be worth the effort since the messages you see are about the same as what I see when I don't have the new kernel and use "options PNPBIOS". Good luck. 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 --Multipart_Mon_Jun__3_09:06:09_2002-1 Content-Type: text/plain; charset=US-ASCII Content-Disposition: attachment; filename="fix-files" Content-Transfer-Encoding: 7bit #!/bin/sh perl -pi.orig -e "s@(dev/sound/pci/csa.c\s+optional pcm)@#\1@g;s@(csapcm.c\s+optional) pcm@\1 csa pcm@g" /sys/conf/files diff -u /sys/conf/files.orig /sys/conf/files --Multipart_Mon_Jun__3_09:06:09_2002-1-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message