From owner-freebsd-questions@FreeBSD.ORG Tue May 27 19:56:38 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0085137B404 for ; Tue, 27 May 2003 19:56:38 -0700 (PDT) Received: from claygirl.org (ip68-101-207-85.sd.sd.cox.net [68.101.207.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2242A43F85 for ; Tue, 27 May 2003 19:56:37 -0700 (PDT) (envelope-from yussef@claygirl.org) Received: from [192.168.1.2] (helo=marathon.claygirl.org) by claygirl.org with smtp (Exim 4.14) id 19Kr8T-0000Tc-V0 for freebsd-questions@freebsd.org; Tue, 27 May 2003 19:57:53 -0700 From: yussef To: freebsd-questions@freebsd.org In-Reply-To: <200305280015.46963.fdaniel@noos.fr> References: <200305280015.46963.fdaniel@noos.fr> X-Mailer: Sylpheed version 0.9.0 (GTK+ 1.2.10; i386-portbld-freebsd4.8) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: Date: Tue, 27 May 2003 19:57:53 -0700 Subject: Re: Sound on SiS 7012 under 4.8 ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 May 2003 02:56:38 -0000 I have a laptop with the 7018 sis audio chipset. not sure how similar they are, but FWIW: sound seems to work fine under win2k, so i doubt its a h/w problem [maybe just poorly designed hw ;)]. However, in fbsd 4.8 i have to perform a lil tinkering to get sound working. The problem will be when i first reboot sometimes i can get 11 seconds of playback, and then it stops [sometimes i wont get any at all]. then after that initial 11, i cant get it to play again. things like restarted xmms/mplayer/whatever_sound/video_app doesnt work. Eventual frustration led to me play with hw.snd.maxautovchans and hw.snd.pcm0.vchans with xmms, i find i have to open up the app, then set both thos sysctl values to 4. kill xmms. check fstat |grep dsp. the sooner it reports that a dsp vchan is being used [even tho xmms is open] the better. as that seems to be the trick. sound will only work if i have a zombie process using one of the sound vchans. then i set the two sysctl values back to 0 [this is usually when the zombie process will appear. i notice getting xmms to hang will usually induce the zombie process]. now i can set the sysctl values back to 4, change the /dev xmms should use to something other than the one the zombie process is now claiming [otherwise xmms should report /dev/dsp as busy]. then i seem to be able to play all the mp3 and dvd i want. Also to note: i am able to play audio cd's fine w/out all this nonsense [i assume thast cuz the audio is being directly output, and not processed by bsd]. my dmesg| grep pcm is slightly different than yours, but hope this helps.. pcm0: port 0x3400-0x34ff mem 0x24003000-0x24003fff irq 5 at device 1.4 on pci0 pcm0: On Wed, 28 May 2003 00:15:46+0200 Florent DANIEL(by way of Florent\ DANIEL) wrote: > Hello, > > I can't get my onboard soundcard to work on FreeBSD 4.8-STABLE. My > computer is an Asus Terminator P4-533A, and its motherboard is based > on SiS 651/962 chipsets. I've addedd "device pcm" to my kernel and > rebuilt it, and now my soundcard appears in boot messages : > > bash-2.05b$ dmesg | grep pcm > pcm0: port 0x9000-0x907f,0x9400-0x94ff irq 5 at device 2.7 > on pci0 > pcm0: (id=0x41445370) > > I've executed "sh MAKEDEV snd0" in /dev, and the needed entries seems > to have been created, like : > > bash-2.05b$ ls -al /dev/audio* > lrwxrwxrwx 1 root wheel 6 May 25 12:56 /dev/audio -> audio0 > lrwxrwxrwx 1 root wheel 8 May 25 12:56 /dev/audio0 -> > audio0.0 crw-rw-rw- 1 root wheel 30, 4 May 25 18:22 > /dev/audio0.0 crw-rw-rw- 1 root wheel 30, 0x00010004 May 25 12:56 > /dev/audio0.1 crw-rw-rw- 1 root wheel 30, 0x00020004 May 25 12:56 > /dev/audio0.2 crw-rw-rw- 1 root wheel 30, 0x00030004 May 25 12:56 > /dev/audio0.3 bash-2.05b$ ls -al /dev/dsp* > lrwxrwxrwx 1 root wheel 4 May 25 12:56 dsp -> dsp0 > lrwxrwxrwx 1 root wheel 6 May 25 12:56 dsp0 -> dsp0.0 > crw-rw-rw- 1 root wheel 30, 3 May 25 16:55 dsp0.0 > crw-rw-rw- 1 root wheel 30, 0x00010003 May 25 14:09 dsp0.1 > crw-rw-rw- 1 root wheel 30, 0x00020003 May 25 18:14 dsp0.2 > crw-rw-rw- 1 root wheel 30, 0x00030003 May 25 12:56 dsp0.3 > lrwxrwxrwx 1 root wheel 5 May 25 12:56 dspW -> dspW0 > lrwxrwxrwx 1 root wheel 7 May 25 12:56 dspW0 -> dspW0.0 > crw-rw-rw- 1 root wheel 30, 5 May 25 12:56 dspW0.0 > crw-rw-rw- 1 root wheel 30, 0x00010005 May 25 12:56 dspW0.1 > crw-rw-rw- 1 root wheel 30, 0x00020005 May 25 12:56 dspW0.2 > crw-rw-rw- 1 root wheel 30, 0x00030005 May 25 12:56 dspW0.3 > > I've also added "hw.snd.pcm0.vchans=4" and "hw.snd.maxautovchans=4" to > /etc/sysctl.conf. KDE has been configured to use /dev/dsp0.1, but I > can't get any output ? I've tried to test it with xmms or wavplay, but > it with the same results... > > Does the "unknown ac97 codec" message indicate a problem ? If so, is > there a patch somewhere to fix this ? I've downgraded from 5.0 (where > sound also didn't work), and under this one I was just having this > line : > > pcm0: port 0x9000-0x907f,0x9400-0x94ff irq 3 at device 2.7 > on pci0 > > And no information about AC97 codec. One of the Windows drivers > bundled with the box is called "AD1980 SoundMAX Audio Driver", maybe > the the codec to be used is AD1980, but it doesn't appear in > /usr/src/sys/dev/sound/pcm/ac97.c > > Thanks in advance for your suggestions. > > Florent > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > --