Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Apr 2011 21:23:49 +0200
From:      Juergen Lock <nox@jelal.kn-bremen.de>
To:        Andriy Gapon <avg@FreeBSD.org>
Cc:        emulation@FreeBSD.org, Juergen Lock <nox@jelal.kn-bremen.de>, multimedia@FreeBSD.org, olli@FreeBSD.org
Subject:   Re: Linuxolator v4l2/dvb patches (like for webcamd + skype...)
Message-ID:  <20110420192349.GA23498@triton8.kn-bremen.de>
In-Reply-To: <4DA96AC2.5020302@FreeBSD.org>
References:  <4DA4A1AC.90601@yandex.ru> <20110412222945.39b7a47b@ukr.net> <4DA4ADC7.6020101@yandex.ru> <20110412230426.550e8155@ukr.net> <20110413170446.GA84392@triton8.kn-bremen.de> <4DA5E0DB.2020009@FreeBSD.org> <20110413182157.GA87724@triton8.kn-bremen.de> <4DA72B26.7010009@FreeBSD.org> <20110415174620.GA31480@triton8.kn-bremen.de> <4DA96AC2.5020302@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Apr 16, 2011 at 01:09:06PM +0300, Andriy Gapon wrote:
> on 15/04/2011 20:46 Juergen Lock said the following:
> >  I also couldn't get audio input to work with that skype version
> > but maybe that just was because I am on 8 and used a Linux alsa
> > oss plugin,
> > 
> > 	http://archives.fedoraproject.org/pub/archive/fedora/linux/updates/10/i386/alsa-plugins-oss-1.0.21-3.fc10.i386.rpm
> > 
> > with this /compat/linux/etc/asound.conf:
> > 
> > -----snip--------
> [snip]
> > -----snip--------
> > 
> > ...instead of messing with pulseaudio and the patches it needs like
> > you posted here:
> > 
> > 	http://lists.freebsd.org/pipermail/freebsd-multimedia/2011-February/011696.html
> > 
> > (I did hear skype's sounds that way btw, just the webcam's builtin
> > mic on /dev/dsp4 wouldn't want to record anything even tho skype
> > allowed me to select `dsp4' as mic input.)
> 
> I think that this is a well known and still unresolved issue.
> As far as I know nobody has been able to get a microphone working with any
> non-OSS version of Skype via ALSA emulation.  That's exactly the reason why I
> started looking at PulseAudio.
> Not sure if it's worth debugging alsalib input issue further.  It's open source
> after all, so a determined person with proper test environment could go to far
> length.  But I am sticking to pulseaudio for time being.
> 
> BTW, to update on the link that you quoted:
> - the kernel patches are already in head and stable/[78]
> - libasyncns in the ports
> - pulseaudio-libs is in the PR db
> - for pulse communication via local sockets one has to create an additional link
> in ~/.pulse directory: "${hostname}:runtime" which should point to the same
> location as "${hostname}-runtime" created by native pulseaudio daemon.  This is
> because of different pulseaudio versions.
> - input and output sources have to be set via pulseaudio config, e.g.:
> default-sink = oss_output.dsp4
> default-source = oss_input.dsp1
> in client.conf.

Ok so I finally got around to testing this myself, using your updated
audio/linux-f10-pulseaudio-libs port from

	http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/156112

and found two things:

a) I still needed the symlink you mentioned ~/.pulse/${hostname}:runtime
   - was this what the patch was supposed to fix?

b) You said earlier that pulseaudio's mmap support for recording is
   broken, I found that too and found this workaround:  Instead of
   changing /usr/local/etc/pulse/client.conf I changed
   /usr/local/etc/pulse/default.pa - I commented out the line:

	load-module module-detect

  and added two lines:

	load-module module-oss device="/dev/dsp4" source_name=input mmap=0
	load-module module-oss device="/dev/dsp0" sink_name=output

  (dsp4 is the webcam's mic in this case.)

 Now as to why video still doesn't work for me with the latest
skype beta I still don't know, does it work for anyone else besides
kwm, and if yes which FreeBSD version/arch do you use and does your
cam need that LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so ?

 (Btw I still found another bug so if it doesn't work for you also
try redownloading my patch.)

 Thanx,
	Juergen



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110420192349.GA23498>