From owner-freebsd-questions Fri Apr 7 16:14:17 2000 Delivered-To: freebsd-questions@freebsd.org Received: from poseidon.student.umd.edu (poseidon.student.umd.edu [129.2.220.99]) by hub.freebsd.org (Postfix) with ESMTP id 0EDC437B5F1; Fri, 7 Apr 2000 16:14:07 -0700 (PDT) (envelope-from bfoz@glue.umd.edu) Received: from glue.umd.edu (localhost [127.0.0.1]) by poseidon.student.umd.edu (8.9.3/8.9.3) with ESMTP id TAA25704; Fri, 7 Apr 2000 19:14:03 -0400 (EDT) (envelope-from bfoz@glue.umd.edu) Message-ID: <38EE6BBA.B03AE183@glue.umd.edu> Date: Fri, 07 Apr 2000 19:14:03 -0400 From: Brandon Fosdick X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Walter Brameld Cc: freebsd-questions@FreeBSD.ORG, freebsd-stable@FreeBSD.ORG Subject: Re: SBLive! on FreeBSD 4.0 HOWTO References: <00040715030802.00327@Bozo_3.BozoLand.domain> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Walter Brameld wrote: > > (The following information was provided by Christopher Holden and > Martin Minkus. I'm just putting it all together). > > Thanks to the above-mentioned, I am no longer using my SBLive! card for > a paper-weight. So far I have only used it to play CD sound and mp3 > files, so on performance your mileage may vary. Anyway, here > is a step-by-step of what I did: > > 1) Go to: > > ftp://ftp.freebsd.org/pub/FreeBSD/FreeBSD-current/src/sys/dev/sound/pci/ > > and download the following two files: > > emu10k1.c > emu10k1.h > > 2) Edit emu10k1.c. Look for the following line: > > codec = ac97_create(dev, sc, NULL, emu_rdcd, emu_wrcd); > > Remove the NULL entry. It should now say: > > codec = ac97_create(dev, sc, emu_rdcd, emu_wrcd); > > 3) Place these files in /usr/src/sys/dev/sound/pci. You may also wish > to keep a backup so your first CVSUP doesn't flush them down the > toilet. > > 4) Edit /usr/src/sys/conf/files and insert the following line in the > appropriate place (You know....alphabetically?): > > dev/sound/pci/emu10k1.c optional pcm pci > > (You may also wish to keep this file safe from the Tidy-Bowl Man). > > 5) Edit your kernel config file and make sure it has the following two > devices: > > device pcm > device pci > > Christopher also mentioned device sbc. Not sure what this serves, > but I am going to add it in a minute to see what happens as ac_97 > is saying my DAC is not ready. > > 6) Recompile your kernel and reboot. dmesg should show the following: > > pcm0: port 0xe400-0xe41f irq 10 at device 9.0 on pci0 > pcm0: ac97 codec reports dac not ready (Maybe you won't get this) > pci0: (vendor=0x1102, dev=0x7002) at 9.1 > > Cat /dev/sndstat should show: > > FreeBSD Audio Driver (newpcm) Apr 7 2000 13:12:21 > Installed devices: > pcm0: at io 0xe400 irq 10 (1p/0r channels duplex) > > or something similar, io and irq may vary. > > 7) You may have to go into /dev and type ./MAKEDEV snd0, but not sure > about this. > > That's all I've done so far, will post a follow-up as to whether device > sbc clears up my DAC problem. I also notice midi is not working. If > anyone has a problem with this HOWTO or has more to add, feel free to > do so. Just make the changes and repost, you do not need to quote. > > I would also appreciate some feedback about if this worked. Just reply > to me, no need to clutter the mail lists. > > Good luck! > > -- > Walter Brameld > Eureka!!! It works on my 4.0 box. Not sure how to play cd's so I haven't tried that yet. I added device sbc to my kernel and I still get the DAC not ready message. Any idea when this will be included in the 4.0 sources? -Brandon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message