From owner-freebsd-multimedia@FreeBSD.ORG Wed Apr 13 10:10:16 2011 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 23142106564A; Wed, 13 Apr 2011 10:10:16 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe03.c2i.net [212.247.154.66]) by mx1.freebsd.org (Postfix) with ESMTP id 834468FC17; Wed, 13 Apr 2011 10:10:15 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=0KkIQGagYCvnrzE3Z2Lmid87OPdbX6VLcZYwAuLMZ50= c=1 sm=1 a=IU0TiZmyZPMA:10 a=WQU8e4WWZSUA:10 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=ev9qzYlmKIQDNtcvXdQA:9 a=wPNLvfGTeEIA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe03.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 113961190; Wed, 13 Apr 2011 12:10:13 +0200 From: Hans Petter Selasky To: freebsd-multimedia@freebsd.org Date: Wed, 13 Apr 2011 12:09:11 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.2-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <201104121440.p3CEeEsK013870@lurza.secnetix.de> In-Reply-To: <201104121440.p3CEeEsK013870@lurza.secnetix.de> X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201104131209.11451.hselasky@c2i.net> Cc: Oliver Fromme , freebsd-usb@freebsd.org Subject: Re: USB microphone problems X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Apr 2011 10:10:16 -0000 On Tuesday 12 April 2011 16:40:14 Oliver Fromme wrote: > Sorry for posting to both usb@ and multimedia@, but I'm not > sure if the problem is related to usb(4) or snd(4). > > I'm trying to get the microphone of a webcam working (it's > a Logitech C210). When I load snd_uaudio(4), it is found > as follows: > > uaudio0: 2> on usbus3 uaudio0: No playback! > uaudio0: Record: 48000 Hz, 1 ch, 16-bit S-LE PCM format > uaudio0: No midi sequencer > pcm5: on uaudio0 > > Interestingly, I got only a new mixer device, but no new > dsp device: > > crw-rw-rw- 1 root wheel 0, 144 Apr 11 22:39 mixer5 > > And /dev/sndstat says this ("pcm5" is the cam's microphone): > > FreeBSD Audio Driver (newpcm: 32bit 2009061500/i386) > Installed devices: > pcm0: (play) > pcm1: (play/rec) default > pcm2: (play/rec) > pcm3: (play) > pcm4: (play) > pcm5: (rec) > > And finally, mixer -f /dev/mixer5 says: > > Mixer vol is currently set to 75:75 > Mixer pcm is currently set to 75:75 > > There seems to be no recording source configured: > "mixer -f /dev/mixer5 recsrc" produces no output. Also, > I cannot set any recording source. But I guess that's OK > because there really is only _one_ fixed recording source > supported by that device. > > Strangely, after a few minutes, a dsp device appeared. > Something must have triggered that, but I have no idea what. > Maybe it just took that long because something hung inside > the driver and finally ran into a timeout ... But that's > just a guess. > > crw-rw-rw- 1 root wheel 0, 145 Apr 11 22:48 dsp5.0 > > However, the device doesn't work. When I tried to do a > test recording with skype, nothing got recorded, and the > following was logged: > > pcm5: chn_read(): pcm5:virtual:dsp5.vr0: record interrupt timeout, > channel dead > > Does anyone have an idea what to do to get it working? > I'm running a fairly new FreeBSD/i386 8-stable (2011-03-19). > Try the following command on your device after it is plugged: usbconfig -d X.Y do_request 0x22 0x01 0x100 0x86 0x03 0x80 0xBB 0x00 Does it help? --HPS