PDA

View Full Version : problem with Virtual Sound Channels in FreeBSD 7


casper007
07-16-2008, 01:06 PM
Hi I have installed FreeBSD 7.0-RELEASE with custom modified kernel. If I try to utilize multiple sound sources like say freebsd handbook in this (http://www.freebsd.org/doc/en/books/handbook/sound-setup.html) section and when I try to set this two nobs


sysctl hw.snd.pcm0.vchans=4
sysctl hw.snd.maxautovchans=4


sysctl gives me an error message.


[root@cormallon /]# sysctl hw.snd.pcm0.vchans=4
sysctl: unknown oid 'hw.snd.pcm0.vchans'


the second sysctl nob is corectly write


[root@cormallon /]# sysctl hw.snd.maxautovchans=4
hw.snd.maxautovchans: 4 -> 4


I have an intel ich soundcard which is corectly recognized by kernel


pcm0: <Intel ICH6 (82801FB)> port 0x1c00-0x1cff,0x1880-0x18bf mem 0xb0000800-0xb00009ff,0xb0000400-0xb00004ff irq 22 at device 30.2 on pci0
pcm0: [ITHREAD]
pcm0: <Analog Devices AD1981B AC97 Codec>


so any idea what is wrong ?


FreeBSD cormallon.local.bsd 7.0-RELEASE-p3 FreeBSD 7.0-RELEASE-p3 #0: Mon Jul 14 21:02:05 CEST 2008 casper@comallon.local.bsd:/usr/obj/usr/src/sys/CORMALLON i386


thx casper007

richardpl
07-16-2008, 04:14 PM
On FreeBSD 7 you dont need to change such sysctl variables.

hw.snd.maxautovchans: 16
dev.pcm.0.play.vchans: 1
dev.pcm.0.play.vchanrate: 48000
dev.pcm.0.play.vchanformat: s16le
dev.pcm.0.rec.vchans: 1
dev.pcm.0.rec.vchanrate: 48000
dev.pcm.0.rec.vchanformat: s16le

killasmurf86
07-16-2008, 04:48 PM
On FreeBSD 7 you dont need to change such sysctl variables.

hw.snd.maxautovchans: 16
dev.pcm.0.play.vchans: 1
dev.pcm.0.play.vchanrate: 48000
dev.pcm.0.play.vchanformat: s16le
dev.pcm.0.rec.vchans: 1
dev.pcm.0.rec.vchanrate: 48000
dev.pcm.0.rec.vchanformat: s16le

really, i didn't new that :D
I had same error, but i was lazy to fix it :)

richardpl
07-16-2008, 05:22 PM
Virtual channels on 7 are automatically created when needed:

ls /dev/dsp0.?

ls /dev/dsp0.{0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}

ls /dev/dsp0.?