From owner-freebsd-questions Mon Feb 7 3:39:42 2000 Delivered-To: freebsd-questions@freebsd.org Received: from monsoon.mail.pipex.net (monsoon.mail.pipex.net [158.43.128.69]) by builder.freebsd.org (Postfix) with SMTP id D2B3D3EC4 for ; Mon, 7 Feb 2000 03:39:32 -0800 (PST) Received: (qmail 560 invoked from network); 7 Feb 2000 11:15:40 -0000 Received: from userbp43.uk.uudial.com (HELO marder-1.) (62.188.146.38) by smtp.dial.pipex.com with SMTP; 7 Feb 2000 11:15:40 -0000 Received: (from mark@localhost) by marder-1. (8.9.3/8.9.3) id LAA02240; Mon, 7 Feb 2000 11:15:28 GMT (envelope-from mark) Date: Mon, 7 Feb 2000 11:15:28 +0000 From: Mark Ovens To: Walter Brameld Cc: Christopher Johnson , freebsd-questions@freebsd.org Subject: Re: Vibra16/sound problems Message-ID: <20000207111528.B1906@marder-1> References: <00020623130600.00794@Bozo_3.BozoLand.domain> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 1.0pre2i In-Reply-To: <00020623130600.00794@Bozo_3.BozoLand.domain> Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Feb 06, 2000 at 11:11:20PM -0500, Walter Brameld wrote: > Your /dev/sndstat is indicating that your card appears on pcm1 > instead of pcm0. Try recompiling your kernel with pcm1. After > rebooting, cd to /dev and type "./MAKEDEV snd1". See if that helps. > Yes, but Christopher says the card is ISA and he has ``device pcm0....'' in the kernel, so the card should be found as pcm0, unless it is, in fact, a PCI card. This is based on something I read (which I can't now find; maybe it was a thread here on -questions) and my own experience. Originally I had an ISA Yamaha OPL3 card, ``device pcm0...'' in my kernel and the card was indeed found as pcm0. Recently I replaced the Yamaha with a SoundBlaster PCI128, a PCI card. Now FreeBSD, using the *same* kernel, finds the SB as pcm1 and says pcm0 not found: marder-1:/usr/mark{52}% dmesg Copyright (c) 1992-1999 FreeBSD Inc. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 3.4-STABLE #1: Sat Feb 5 13:38:58 GMT 2000 mark@marder-1:/usr/src/sys/compile/MARDER-1 [snip] es1: rev 0x06 int a irq 11 on pci0.11.0 pcm1: using I/O space register mapping at 0x6800 [snip] pcm0 not found The first time I booted with the new card all I had to do was: # cd /dev # ./MAKEDEV snd1 This symlinks the sound devices to 1 instead of 0: # cd /dev # ls -lrt [snip] lrwxrwxrwx 1 root wheel 6 Feb 5 13:53 mixer -> mixer1 lrwxrwxrwx 1 root wheel 10 Feb 5 13:53 sequencer -> sequencer1 lrwxrwxrwx 1 root wheel 4 Feb 5 13:53 dsp -> dsp1 lrwxrwxrwx 1 root wheel 6 Feb 5 13:53 audio -> audio1 lrwxrwxrwx 1 root wheel 5 Feb 5 13:53 dspW -> dspW1 lrwxrwxrwx 1 root wheel 6 Feb 5 13:53 music -> music1 lrwxrwxrwx 1 root wheel 4 Feb 5 13:53 pss -> pss1 I don't think that changing the kernel config file to ``device pcm1...' will help, I tried that in an attempt to get rid of the ``pcm0 not found'' boot message, but all that happened was that the SB was found as pcm2 and the error changed to ``pcm1 not found''. So, the immediate fix here is probably to run ``./MAKEDEV snd1'' in /dev as Walter suggests. That should get sound working, but I'm still curious as to why the card is found as pcm1. Are you sure it's an ISA card? The only other reason I can think of is that there is built-in sound on the motherboard that is causing a conflict. HTH > On Sun, 06 Feb 2000, in a never-ending search for enlightenment, > Christopher Johnson wrote: > > > I've been able to get some sound to work with my ISA Soundblaster > > Vibra16 card, but it's still having problems. I'll try to include > > as much relevant information as possible, so bear with me. > > > After adding: > > device pcm0 at isa? port ? tty irq 10 drq 1 flags 0x0 > > and recompiling/installing the kernel, it will work fine with fxtv, but > > not xmms or aumix, and the volume is stuck at one level. (The 'controller > > pnp0' line was already in there.) > > > > I also have: > > bash-2.03# cat /dev/sndstat > > FreeBSD Audio Driver (981002) Feb 6 2000 18:28:23 > > Installed devices: > > pcm1: at 0x220 irq 10 dma 1:3 > > So I presume that the driver is working okay, but it might not be, since > > dmesg reports: > > /kernel: pcm0 not probed due to drq conflict with pcm1 at 1 > > OK, this is the strange bit. > > Also /var/log/err has: > > /kernel: cmd xmms pid 18252 tried to use non-present sched_getscheduler > > and: > > /kernel: pcm0: unit not configured, perhaps you want pcm1 ? > > > > I'm running 3.4-STABLE on a PII/350 w/256 MB of ram. > > > > I think I just have something misconfigured, but being new to FreeBSD, I > > don't know where to start. I read the pcm man page, the mixer man page, > > the handbook, and the FreeBSD diary, and I'm just not sure what I'm doing > > wrong. sh -x /dev/mixer reports that there is no such device name, and > > although sh -x /dev/snd0 and snd1 seem to work, I think it's the reason I > > have about 20-25 dsp** entries in /dev. (I did the /dev/snd0 a few times, > > because the pcm man page suggested recreating the symlinks) > > > > Thanks in advance! > > > > Chris Johnson > > cjohnson@wcug.wwu.edu > > > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > -- > Walter > > in·tel·lec·tu·al > n. Someone who has been educated past his/her level of intelligence. > P.S. The answer is 42. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Microsoft: Where do you want to go today? Linux: Where do you want to go tomorrow? BSD: Are you guys coming, or what? -Poster at LinuxWorld 2000 ________________________________________________________________ FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://ukug.uk.freebsd.org/~mark/ mailto:mark@ukug.uk.freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message