Date: Fri, 15 Apr 2011 12:23:05 +0200 (CEST) From: Oliver Fromme <olli@lurza.secnetix.de> To: hselasky@c2i.net (Hans Petter Selasky) Cc: freebsd-multimedia@freebsd.org Subject: Re: USB microphone problems Message-ID: <201104151023.p3FAN5IR071125@lurza.secnetix.de> In-Reply-To: <201104150938.02429.hselasky@c2i.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104151023.p3FAN5IR071125>