From owner-freebsd-questions Wed Oct 17 14:40:38 2001 Delivered-To: freebsd-questions@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id 4769337B407 for ; Wed, 17 Oct 2001 14:40:31 -0700 (PDT) Received: from localhost (doug@localhost) by fledge.watson.org (8.11.6/8.11.5) with SMTP id f9HLdqh39696; Wed, 17 Oct 2001 17:39:53 -0400 (EDT) (envelope-from doug@safeport.com) X-Authentication-Warning: fledge.watson.org: doug owned process doing -bs Date: Wed, 17 Oct 2001 17:39:52 -0400 (EDT) From: Doug Denault X-Sender: doug@fledge.watson.org Reply-To: Doug Denault To: Geoff Ludwiczak Cc: freebsd-questions@freebsd.org Subject: Re: sound card problem (CMI8330) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG If you have access to archives of this list. That's a good place to start. My son and I struggled through several systems, they were all different so I do not think there is a set formula. In general: 1) If windows is also installed on your system see what it uses for irq, memory ports etc. Our technique has been to match that in FreeBSD. 2) Check out the handbook and see if it addresses your card. 3) A lot of the comments in this list say *do not* use PNP. Note if you take it our of the kernel you must (should?) also disable it for the card in the BIOS. 4) make sure to run /dev/MAKEDEV That said here is what we did: a) Dell 7500 Inspiron: One line in the kernel config. device pcm b) Dell PE 300 This system had all sorts of problems, none coming from FreeBSD. The PE 300 has video card on the motherboard and no sound card. In configuring this for a workstation we added a better video card and a Sound Blaster 16 that we cobbled from an older system. That involved forcing the BIOS to use thesame irq for the video and sound cards that win98 used. So in the kernel config there we added: device sbc0 at isa? port 0x220 irq 5 drq 1 flags 0x15 device pcm Again we choose the irq and port to match what windows assigned. After reconfiguring the kernel and building the devices, you should have things like audio, sndstat, mixer, .... On the 7500 they all have a primary device number of 30 so: mneme:/dev> ls -l | grep "30," crw-rw-rw- 1 root wheel 30, 4 Oct 13 02:32 audio0 crw-rw-rw- 1 root wheel 30, 3 Oct 13 20:19 dsp0 crw-rw-rw- 1 root wheel 30, 5 Oct 13 02:32 dspW0 crw-rw-rw- 1 root wheel 30, 2 Oct 13 02:32 midi0 crw-rw-rw- 1 root wheel 30, 0 Oct 13 02:32 mixer0 crw-rw-rw- 1 root wheel 30, 8 Oct 13 02:32 music0 crw-rw-rw- 1 root wheel 30, 9 Oct 13 02:32 pss0 crw-rw-rw- 1 root wheel 30, 1 Oct 13 02:32 sequencer0 crw-rw-rw- 1 root wheel 30, 6 Oct 13 02:32 sndstat You can tell if the setup is okay (as opposed to any applications) by cat /kernel > /dev/dsp0 Make sure the sound is turned down first, or choose a smaller file. If all that works you can then tackle which application you want to use. Chris settled on xmms which works fine for us. On Wed, 17 Oct 2001, Geoff Ludwiczak wrote: > Hey, > > I'm having some trouble getting my sound card to work properly in > 4.4-RELEASE. > > ~$ dmesg | grep pcm > pcm0: at port 0x530-0x537,0x388-0x38f irq 11 drq 0 on isa0 > ~$ > > The card is supposed to be PNP/ISA, it's onboard, I've tried different kinds > of configurations in the kernel, i've used > > options PNPBIOS > device pcm > device sbc > > i've also tried taking out PNPBIOS, tried replacing the sbc line with > > device sbc0 at isa? port 0x220 irq 5 drq 1 flags 0x15 > > Whenever I try playing mp3's, I get a bold kernel message saying > > pcm0: play interrupt timeout, channel dead > > If anyone can help me, I'd appreciate it, thanks! > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message