Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Aug 2002 16:48:05 -0700
From:      "Kevin Oberman" <oberman@es.net>
To:        Boris Gelfand <bg@cse.msu.edu>
Cc:        freebsd-mobile@freebsd.org
Subject:   Re: Thinkpad 600E sound in 4.6-Stable? 
Message-ID:  <20020828234805.3878D5D03@ptavv.es.net>
In-Reply-To: Your message of "Wed, 28 Aug 2002 19:30:20 EDT." <200208282330.g7SNUKv19662@arctic.cse.msu.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
> From: Boris Gelfand <bg@cse.msu.edu>
> 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: <PNP0501> 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: <CS4610/CS4611> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020828234805.3878D5D03>