From owner-freebsd-questions Thu Nov 19 01:10:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA04622 for freebsd-questions-outgoing; Thu, 19 Nov 1998 01:10:09 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from moo.terminal.cz (moo.terminal.cz [195.70.130.100]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id BAA04615 for ; Thu, 19 Nov 1998 01:10:03 -0800 (PST) (envelope-from pgl@moo.terminal.cz) From: pgl@moo.terminal.cz Received: (qmail 518 invoked by uid 1000); 19 Nov 1998 10:08:29 -0000 Message-ID: <19981119100829.517.qmail@moo.terminal.cz> Subject: Re: pcm0 In-Reply-To: from Doug White at "Nov 18, 98 12:39:18 pm" To: dwhite@resnet.uoregon.edu (Doug White) Date: Thu, 19 Nov 1998 10:08:29 +0000 (GMT) Cc: freebsd-questions@FreeBSD.ORG Reply-To: pgl@ti.cz X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, Thanks for the help. However : 1) I've fixed it now already, another way 2) I don't understand how removing the if or fi lines from MAKEDEV will change anything? There are no pcm devices, and if I typed "MAKEDEV snd0" it would work without the changes. If I typed "MAKEDEV snd1", how is that different from the first one? How is snd0 linked to pcm0 - I thought I was meant to comment out snd0 from the kernel config file? By the way, here's how I fixed it : I assigned pcm0 some default values in my kernel config file, and looking at the values that pnp0 assigns to pcm1. Then I changed the values of pcm0 in my kernel config, and removed the pnp0 controller. My soundcard works without skipping now (no conflicts). I'm still baffled as to how I can use the pnp0 controller in conjuction with the pcm0 driver (or any driver?), as when the kernel says "pcm0 not configured, perhaps you want pcm1?", I don't know how to get the audio player (amp, xanim, etc etc) to -use- pcm1 instead of pcm0. I don't know much about the device nodes etc. FYI, the lines from my kernel config file : -- [moo:pgl]:/usr/src/sys/i386/conf $ grep pcm0 MOO device pcm0 at isa? port ? tty irq 5 drq 1 flags 0x13 vector pcmintr #device pcm0 at isa? port ? tty irq ? drq 1 flags 0x0 vector pcmintr -- Once again, thanks for the quick answers. Regards, Peter Lowe. > On Wed, 18 Nov 1998, Jeroen Ruigrok/Asmodai wrote: > > > On 18-Nov-98 pgl@moo.terminal.cz wrote: > > > Hi. > > > > > > I'm trying to use the pcm code ("Luigi's Sound Code"), as suggested in > > > LINT with the pnp0 controller. Unfortunately, every time my machine > > > boots up, because I have pcm0 in the kernel, it detects it (improperly) > > > and then pnp properly detects my soundcard as pcm1. Whenever I try and > > > play a sound file, I get a message : > > > > > > Nov 8 17:15:21 moo /kernel: pcm0: unit not configured, perhaps you want pcm1 > > > ? > > > > I thought that this helped: > > > > cd /dev > > ./MAKEDEV snd1 > > Not quite. You need to edit /dev/MAKEDEV first: > > snd*) > # > # changes from Linux voxware > # minor Linux FreeBSD > # 8 sequencer2 (aka music0) music0 > # 17 patmgr0 sequencer1 > # 33 patmgr1 sequencer2 > # > > unit=`expr $i : 'snd\(.*\)'` > chr=30 > > # XXX write this less verbosely, like std > snd_security_hole=0 # XXX > umask $snd_security_hole > > # there's an 'if ...' line here, remove it > ln -fs mixer$unit mixer > ln -fs sequencer$unit sequencer > ln -fs dsp$unit dsp > ln -fs audio$unit audio > ln -fs dspW$unit dspW > ln -fs music$unit music > ln -fs pss$unit pss > # remove the 'endif' line here too > > Make this change then run ./MAKEDEV snd1. > > > Doug White > Internet: dwhite@resnet.uoregon.edu | FreeBSD: The Power to Serve > http://gladstone.uoregon.edu/~dwhite | www.freebsd.org > -- Peter Lowe pgl@ti.cz To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message