Sound on SiS 7012 under 4.8 ?

yussef yussef at claygirl.org
Tue May 27 19:56:38 PDT 2003


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: <SiS 7018> port 0x3400-0x34ff mem 0x24003000-0x24003fff irq
5 at device 1.4 on pci0 
pcm0: <Asahi Kasei AK4543 ac97 codec>

On Wed, 28 May 2003 00:15:46+0200 Florent
DANIEL<fdaniel-at-noos-point-fr at FreeBSD.ORG>(by way of Florent\
DANIEL<fdaniel at noos.fr>) 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: <SiS 7012> port 0x9000-0x907f,0x9400-0x94ff irq 5 at device 2.7
> on pci0
> pcm0: <unknown ac97 codec> (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: <SiS 7012> 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"
> 


-- 


More information about the freebsd-questions mailing list