From owner-freebsd-multimedia@FreeBSD.ORG Sun Apr 17 15:16:09 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 5B7FE106566B for ; Sun, 17 Apr 2011 15:16:09 +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 D2E378FC08 for ; Sun, 17 Apr 2011 15:16:08 +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 p3HFFmi2081666; Sun, 17 Apr 2011 17:16:03 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id p3HFFmfg081665; Sun, 17 Apr 2011 17:15:48 +0200 (CEST) (envelope-from olli) Date: Sun, 17 Apr 2011 17:15:48 +0200 (CEST) Message-Id: <201104171515.p3HFFmfg081665@lurza.secnetix.de> From: Oliver Fromme To: freebsd-multimedia@FreeBSD.ORG, hselasky@c2i.net In-Reply-To: <201104151023.p3FAN5IR071125@lurza.secnetix.de> 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]); Sun, 17 Apr 2011 17:16:03 +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: Sun, 17 Apr 2011 15:16:09 -0000 Oliver Fromme wrote: > Hans Petter Selasky wrote: > > === uaudio.c > > ================================================================== > > --- uaudio.c (revision 220305) > > +++ uaudio.c (local) > > @@ -1360,11 +1360,10 @@ > > sc->sc_mixer_iface_index); > > > > /* > > - * If just one sampling rate is supported, > > - * no need to call "uaudio_set_speed()". > > - * Roland SD-90 freezes by a SAMPLING_FREQ_CONTROL request. > > + * Only set the sample rate if the channel reports that it > > + * supports the frequency control. > > */ > > - if (ch->p_asf1d->bSamFreqType != 1) { > > + if (ch->p_sed->bmAttributes & UA_SED_FREQ_CONTROL) { > > if (uaudio_set_speed(sc->sc_udev, endpoint, ch->sample_rate)) > > { > > /* > > * If the endpoint is adaptive setting the speed may > > > > Could you try the patch above? /sys/dev/sound/usb/uaudio.c > > Thanks! It works, but I still have to do "usbconfig -d 3.2 reset" > after plugging in the webcam. Without the reset, it does not work. For testing purposes I bought another webcam that seems to be very popular. It's a Logitech C310 HD. (The one that I already have is a C210, non-HD.) I can confirm that that your patch also works the same with that new webcam. I can also confirm that a Philips SPC 900 NC webcam still works fine with that patch (it worked fine before, too), so there is no regression. This one uses 44.1 kHz; the Logitech ones use 48 kHz. Therefore I think the patch can be commited. There is still the problem that the Logitech cameras seem to need a reset after plugging in. Furthermore I can't change the mic level with mixer(8). Both of these problems do _not_ exist with the Philips webcam. 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 "A misleading benchmark test can accomplish in minutes what years of good engineering can never do." -- Dilbert (2009-03-02)