Follow up: Sound in multiple Linux progs

Ariff Abdullah ariff at FreeBSD.org
Sat Jun 16 04:12:18 UTC 2007


On Sat, 16 Jun 2007 04:50:06 +0100
"Alexandre Vieira" <nullpt at gmail.com> wrote:
> On 6/16/07, Ariff Abdullah <ariff at freebsd.org> wrote:
> >
> > On Fri, 15 Jun 2007 15:52:48 +0100
> > "Alexandre Vieira" <nullpt at gmail.com> wrote:
> > > Hi,
> > >
> > > Just FYI. The modules from
> > > sndkld_releng6_i386_giant_eradication.tar.gz work perfectly and
> > > -CURRENT from 2 weeks ago is working fine too!
> > >
> >
> > I'm curious.. could you please take _latest_ (a must) binary/patch
> > from the usual place, set dev.pcm.0.rec.vchans=0 and do the test
> > again?
> >
> Hi,
> 
> I've fetched "sndkld_releng6_i386_giant_eradication.tar.gz
> 2007-Jun-15 23:59:16 426.4K application/x-gzip" from
> http://people.freebsd.org/~ariff/BINARY_MODULES/ . I'm using
> sound.ko and snd_via8233.ko.
> There is something strange with this test (or maybe this sysctls are
> not supposed to matter anymore):
> 
> # sysctl -a | grep vchan
> hw.snd.maxautovchans: 0
> dev.pcm.0.play.vchans: 0
> dev.pcm.0.rec.vchans: 0
> 
> I've also tried different values as well. For example 1 (just in
> case 0 is unlimited vchans).
> 
> I
> open TeamSpeak and Enemy Territory at the same time and they both
> work.  I've additionaly ran amarok and played some mp3 at the same
> time. Everything works at the same time.
> 
> # fstat /dev/ds*
> USER CMD PID FD MOUNT INUM MODE SZ|DV R/W NAME
> alex amarokapp 9585 20 /dev 41 crw-rw-rw- dsp0.0 w /dev/dsp0.0
> alex et.x86 9573 50 /dev 6 crw-rw-rw- dsp0.2 rw /dev/dsp0.2
> alex TeamSpeak.bin 9564 21 /dev 40 crw-rw-rw- dspW0.1 rw
> /dev/dspW0.1 alex TeamSpeak.bin 9563 21 /dev 40 crw-rw-rw- dspW0.1
> rw /dev/dspW0.1 alex TeamSpeak.bin 9562 21 /dev 40 crw-rw-rw-
> dspW0.1 rw /dev/dspW0.1 alex TeamSpeak.bin 9560 21 /dev 40
> crw-rw-rw- dspW0.1 rw /dev/dspW0.1 alex TeamSpeak.bin 9559 21 /dev
> 40 crw-rw-rw- dspW0.1 rw /dev/dspW0.1 alex TeamSpeak.bin 9558 21
> /dev 40 crw-rw-rw- dspW0.1 rw /dev/dspW0.1 alex TeamSpeak.bin 9557
> 21 /dev 40 crw-rw-rw- dspW0.1 rw /dev/dspW0.1 alex TeamSpeak.bin
> 9556 21 /dev 40 crw-rw-rw- dspW0.1 rw /dev/dspW0.1 alex
> TeamSpeak.bin 9555 21 /dev 40 crw-rw-rw- dspW0.1 rw /dev/dspW0.1
> 
> /usr/local/lib/teamspeak_client/TeamSpeak.bin: ELF 32-bit LSB
> executable, Intel 80386, version 1 (SYSV), dynamically linked (uses
> shared libs), stripped
> 
> /usr/local/bin/amarokapp: ELF 32-bit LSB executable, Intel 80386,
> version 1 (FreeBSD), dynamically linked (uses shared libs), stripped
> 
> /usr/local/lib/enemyterritory/et.x86: ELF 32-bit LSB executable,
> Intel 80386, version 1 (GNU/Linux), for GNU/Linux 2.0.30,
> dynamically linked (uses shared libs), stripped
> 
> 

sysctl hw.snd.version should produce something like this:
# sysctl hw.snd.version
hw.snd.version: 2007061600/i386
(note the date)

This issues are due to linux application binaries (probably other
linuxish apps) that trying to open sound device in full-duplex mode,
but later on chicken out, being total coward and throw away the other
direction (usually the record direction), and use only the playback
direction. They seems trying hard to make us fail, but no, we will not
give in anymore :)

..and also, don't forget hw.snd.compat_linux_mmap, just in case linux
binary apps starting to fail (especially on -current).


Nevertheless, enjoy.


--
Ariff Abdullah
FreeBSD

... Recording in stereo is obviously too advanced
    and confusing for us idiot ***** users :P ........
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-multimedia/attachments/20070616/0c2249cb/attachment.pgp


More information about the freebsd-multimedia mailing list