USB microphone problems
Oliver Fromme
olli at lurza.secnetix.de
Sun Apr 17 15:16:09 UTC 2011
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)
More information about the freebsd-multimedia
mailing list