From owner-freebsd-mobile Wed Aug 28 16:48:54 2002 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 A0A9937B401 for ; Wed, 28 Aug 2002 16:48:35 -0700 (PDT) Received: from postal1.es.net (postal1.es.net [198.128.3.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01DB243E81 for ; Wed, 28 Aug 2002 16:48:31 -0700 (PDT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal1.es.net (Postal Node 1) with ESMTP id GQF37091; Wed, 28 Aug 2002 16:48:05 -0700 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Postfix) with ESMTP id 3878D5D03; Wed, 28 Aug 2002 16:48:05 -0700 (PDT) To: Boris Gelfand Cc: freebsd-mobile@freebsd.org Subject: Re: Thinkpad 600E sound in 4.6-Stable? In-reply-to: Your message of "Wed, 28 Aug 2002 19:30:20 EDT." <200208282330.g7SNUKv19662@arctic.cse.msu.edu> Date: Wed, 28 Aug 2002 16:48:05 -0700 From: "Kevin Oberman" Message-Id: <20020828234805.3878D5D03@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 > From: Boris Gelfand > Date: Wed, 28 Aug 2002 19:30:20 -0400 (EDT) > Sender: owner-freebsd-mobile@FreeBSD.ORG > > Hello all! A bit of archive searching has hinted quite > often at CS4610/11 sound chips working in FreeBSD-4 with > a bit of tweaking. I've had no luck. > > Machine: Thinkpad 600E 366mhz, 2645-4AU. DOS-mode PS2 > config for audio at port 530, irq 5, dma 0, dma 1, > sb port 220. (If anyone needs a bootable ISO-image > with the IBM ps2 config utilities, let me know -- > running a FreeBSD-only shop is a pain at times ;). > > OS: 4.6-STABLE FreeBSD Sun Aug 25 19:25:42 EDT 2002 > > here are all the kernel config bits I've tried: > > # having this doesn't affect anything one way or other > # and just generates lots of PNP error messages at boot: > # unknown: can't assign resources > #options PNPBIOS > > # this probes but no audio > #device pcm0 at isa? port 0x530 irq 5 drq 0 flags 0x11 > > # same thing > #device pcm > #device csa0 at isa? port 0x530 irq 5 drq 0 flags 0x11 > > # same thing > #device pcm > #device sbc0 at isa? port 0x220 irq 5 drq 0 flags 0x11 > > # same thing > #device pcm0 at isa? port 0x52c irq 5 drq 1 flags 0x10 > > # same thing > #device pcm > #device csa0 at isa? port 0x52c irq 5 drq 1 flags 0x10 > > # no go > #device snd0 > #device sb0 at isa? port 0x220 irq 5 drq 0 > > Here's the most hopeful dmesg probe I can get it to do: > > csa0: mem 0x50000000-0x500fffff,0x50100000-0x50100fff irq 11 at device 6.0 on pci0 > csa: card is Unknown/invalid SSID (CS4610) > device_probe_and_attach: csa0 attach returned 6 > > Some folks have reported that audio works with this type of suspicious > probing, but I haven't had any luck with any actual audio output. > > With MAKEDEV on either snd0 or snd1, mpg123 returns "Can't open /dev/dsp!" > > I tried the previously posted fix to /usr/src/sys/conf/files with > exactly the same results, although Kevin Oberman's very encouraging > post from earlier this year says this fix is now unnecessary: > > http://www.geocrawler.com/archives/3/163/2002/2/0/7972084/ You must have missed the followup that I had been in error and the patch was still required.My working system includes only: device pcm0 at isa? port 0x52c irq 5 drq 1 flags 0x10 It does NOT include "options PNPBIOS" or "device csa". The snippet of the dmesg indicates that the kernel was not built with the patch to /sys/conf/files. #!/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 The perl command above will do the patch and print a diff. It should comment out one line and add "csa" to the next line. After running this, rebuild the kernel cd /usr/src; make kernel KERNCONF=Your_Kernel_Conf A reboot should show a clean probe line for pcm0 and no csa0. 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message