From owner-freebsd-multimedia@FreeBSD.ORG Thu Apr 14 11:01:39 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 D78E1106564A for ; Thu, 14 Apr 2011 11:01:39 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 3F02D8FC20 for ; Thu, 14 Apr 2011 11:01:39 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id p3EB1JGt023434; Thu, 14 Apr 2011 13:01:34 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id p3EB1JJ2023433; Thu, 14 Apr 2011 13:01:19 +0200 (CEST) (envelope-from olli) Date: Thu, 14 Apr 2011 13:01:19 +0200 (CEST) Message-Id: <201104141101.p3EB1JJ2023433@lurza.secnetix.de> From: Oliver Fromme To: freebsd-multimedia@FreeBSD.ORG, hselasky@c2i.net In-Reply-To: X-Newsgroups: list.freebsd-multimedia User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.5 (lurza.secnetix.de [127.0.0.1]); Thu, 14 Apr 2011 13:01:34 +0200 (CEST) Cc: 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: Thu, 14 Apr 2011 11:01:39 -0000 Hans Petter Selasky wrote: > On Tuesday 12 April 2011 16:40:14 Oliver Fromme wrote: > > pcm5: chn_read(): pcm5:virtual:dsp5.vr0: record interrupt timeout, > > channel dead > > 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? I'm sorry for the late reply. I spent one or two hours plugging and unplugging that webcam a hundred times. :-) The good news: Yes, the command helps. But only when issued at a certain time. The following sequence works: 1. Plug camera in. 2. usbconfig -d 3.2 do_request 0x22 0x01 0x100 0x86 0x03 0x80 0xBB 0x00 3. usbconfig -d 3.2 reset 4. usbconfig -d 3.2 do_request 0x22 0x01 0x100 0x86 0x03 0x80 0xBB 0x00 5. Now the microphone works. I cannot omit any of the steps, and I cannot change the order of the steps. Otherwise the microphone does not work. Let me repeat: The do_request has to be done *twice*, and a reset has to be done in-between. Interestingly, the following works, too: 1. Plug camera in. 2. Run pwcview. 3. usbconfig -d 3.2 do_request 0x22 0x01 0x100 0x86 0x03 0x80 0xBB 0x00 4. Now the microphone works. No need to do a reset, and no need to perform the do_request twice. But again, it has to be done exactly in that order. It does not matter whether I stop pwcview or keep it running. The only important thing seems to be that pwcview opens the video device once. Instead of pwcview I can also use skype to open the video device (by starting the device test in the options dialog). The microphone keeps working, no matter what I do, until I unplug it. Just out of curiosity, what exactly does the do_request with those eight hex numbers do? Another thing I noticed is that mixer(8) still does not show a microphone device, only vol and pcm: Mixer vol is currently set to 75:75 Mixer pcm is currently set to 75:75 So I cannot change the mic level. Changing the vol and pcm values doesn't have any effect. But it's not fatal because the default mic level is acceptable. Thanks for your work! Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "The most important decision in [programming] language design concerns what is to be left out." -- Niklaus Wirth