From owner-freebsd-usb@FreeBSD.ORG Tue Apr 12 14:40:31 2011 Return-Path: Delivered-To: freebsd-usb@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C71A1106566C; Tue, 12 Apr 2011 14:40:31 +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 4B85D8FC19; Tue, 12 Apr 2011 14:40:31 +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 p3CEeE15013871; Tue, 12 Apr 2011 16:40:29 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id p3CEeEsK013870; Tue, 12 Apr 2011 16:40:14 +0200 (CEST) (envelope-from olli) Date: Tue, 12 Apr 2011 16:40:14 +0200 (CEST) Message-Id: <201104121440.p3CEeEsK013870@lurza.secnetix.de> From: Oliver Fromme To: freebsd-usb@FreeBSD.ORG, freebsd-multimedia@FreeBSD.ORG X-Newsgroups: list.freebsd-usb 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]); Tue, 12 Apr 2011 16:40:29 +0200 (CEST) Cc: Subject: USB microphone problems X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Apr 2011 14:40:32 -0000 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: 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). Alternatively, any recommendation for a new USB microphone to buy that works well with FreeBSD 8? (By the way, I tried connecting an old analog microphone to my mainboard's mic input, but it records only silence, except when I blow directly into the microphone, no matter what mixer settings I've tried. So I guess that that mic input of my mainboard doesn't work correctly with FreeBSD either.) 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 "anyone new to programming should be kept as far from C++ as possible; actually showing the stuff should be considered a criminal offence" -- Jacek Generowicz