USB microphone problems
Oliver Fromme
olli at lurza.secnetix.de
Fri Apr 15 10:23:26 UTC 2011
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
More information about the freebsd-multimedia
mailing list