From owner-freebsd-multimedia@FreeBSD.ORG Fri Apr 15 10:23:26 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 9961C106564A for ; Fri, 15 Apr 2011 10:23:26 +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 1A7EC8FC17 for ; Fri, 15 Apr 2011 10:23:25 +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 p3FAN5JX071127; Fri, 15 Apr 2011 12:23:21 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id p3FAN5IR071125; Fri, 15 Apr 2011 12:23:05 +0200 (CEST) (envelope-from olli) From: Oliver Fromme Message-Id: <201104151023.p3FAN5IR071125@lurza.secnetix.de> To: hselasky@c2i.net (Hans Petter Selasky) Date: Fri, 15 Apr 2011 12:23:05 +0200 (CEST) In-Reply-To: <201104150938.02429.hselasky@c2i.net> X-Mailer: ELM [version 2.5 PL8] 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]); Fri, 15 Apr 2011 12:23:21 +0200 (CEST) Cc: freebsd-multimedia@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: Fri, 15 Apr 2011 10:23:26 -0000 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. 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 "We will perhaps eventually be writing only small modules which are identi- fied by name as they are used to build larger ones, so that devices like indentation, rather than delimiters, might become feasible for expressing local structure in the source language." -- Donald E. Knuth, 1974