Re: IBM ThinkPad T21 -- any hope for sound support?

"Kevin Oberman" <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile
Message-ID <[email protected]>
> From: [email protected]
> Date: Mon, 3 Jun 2002 10:17:50 -0500
> Sender: [email protected]
> 
> 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:
> <CS4280/CS4614/CS4622/CS4624/CS4630> 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: <CS461x PCM Audio> 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: [email protected]			Phone: +1 510 486-8634
fix-files (text/plain, 176 B)
#!/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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.