From owner-freebsd-questions Sat Apr 27 11:32:32 2002 Delivered-To: freebsd-questions@freebsd.org Received: from scanmail2.cableone.net (scanmail2.cableone.net [24.116.0.122]) by hub.freebsd.org (Postfix) with ESMTP id 938F137B404 for ; Sat, 27 Apr 2002 11:32:26 -0700 (PDT) Received: from scanmail2.cableone.net ([10.116.0.122]) by scanmail2.cableone.net with Microsoft SMTPSVC(5.5.1877.687.68); Sat, 27 Apr 2002 11:30:04 -0700 Received: from scanmail2.cableone.net [24.116.0.122] by scanmail2.cableone.net (SMTPD32-7.04) id AE0A30910176; Sat, 27 Apr 2002 11:29:33 -0700 Received: from cis7.cableone.net (hmi1.cableone.net [24.116.0.41]) by mail.cableone.net with SMTP (MailShield v2.04 - WIN32 Jul 17 2001 17:12:42); Sat, 27 Apr 2002 11:29:33 -0600 Received: from mail pickup service by cis7.cableone.net with Microsoft SMTPSVC; Sat, 27 Apr 2002 11:31:53 -0700 From: To: "Isak Lyberth" Cc: Subject: RE: Sound on a Toshiba Labtop Date: Sat, 27 Apr 2002 11:31:53 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft CDO for Windows 2000 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Content-Class: urn:content-classes:message X-SMTP-HELO: cis7.cableone.net X-SMTP-MAIL-FROM: dennyboy@cableone.net X-SMTP-RCPT-TO: ily@cip-global.com,freebsd-questions@freebsd.org X-SMTP-PEER-INFO: hmi1.cableone.net [24.116.0.41] 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 I'm still kind of a newbie, so if any older hands see me saying something wrong in here, let me know. I got sound working on my laptop, mostly using all my device information printed out from previous windoze install & reading Annelise Anderson's book on FreeBSD. Sound is not enabled by default when you install FreeBSD. First of all, did you compile=20 sound support into your kernel? Do you know the=20 irq/drq info? On my Toshiba 4015cdt, in the kernel config, between the nic's & pseudo devices sections, I added: #Audio devices device pcm0 at isa? irq 5 drq 1 flags 0x0 So, to be safe, in /usr/src/sys/i386 do: cp GENERIC NEWKERN (or whatever name you want) vi NEWKERN Make the changes above using your irq, drq & flags info, not mine. Save it & close vi (or whatever editor you use) While still in /usr/src/sys/i386, do: config NEWKERN You'll get a message telling you to remember to do a make depend cd ../../compile/NEWKERN make depend make make install When finished, reboot the system. When up do: dmesg | grep pcm You should see something like: pcm0: on sbc0 Then do: cd /dev sh MAKEDEV snd0 (that is, if the pcm has 0. If 1, then use snd1) Now you should have these in /dev: /dev/audio /dev/dsp /dev/dspW /dev/midi /dev/mixer /dev/music /dev/sequencer /dev/pss Besides dmesg, you can see configured sound devices with: cat /dev/sndstat Hopefully, this'll get you going. Like I said tho, you have to know the irq & drq to put in. If you don't have that info from another install & don't know how to get it in fbsd, maybe one of the more experienced people on this mailing list can tell you how to get it. Good luck. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Unix/BSD/Linux Live Free or Die! =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -----Original Message----- From: "owner-misc@openbsd.org" on behalf of = "Isak Lyberth" Sent: Sat, 27 Apr 2002 18:27:24 +0200 To: "misc@openbsd.org" Subject: Sound on a Toshiba Labtop After going through the Google groups, mail list archives and newsgroups = without finding a result, i risk my neck here: =20 =20 I have installed the current snapshot. Everything works fine except the=20 sound. Whenever i start xmms i get an error saying that /dev/audio doesn't = support=20 44100 hz. The soundcard is a Yamaha OPL3 soundblaster compatible, it works on any=20 other operating system that has run on the computer (ive tried them = all). Running audioctl -w play.sample_rate=3D44100 it changes the value 45454 why? Regards Isak To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message