1. 29 12月, 2010 2 次提交
    • H
      [media] gspca: only set gspca->int_urb if submitting it succeeds · 2661da47
      Hans de Goede 提交于
      Currently alloc_and_submit_int_urb() is setting gspca->int_urb
      as soon as the allocation has succeeded, but if the subsequent
      submit fails, the urb gets destroyed. And then later will
      get destroyed again in gspca_input_destroy_urb() because
      gspca->int_urb is set, leading to a double free.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      2661da47
    • H
      [media] gspca: submit interrupt urbs *after* isoc urbs · 314b3e08
      Hans de Goede 提交于
      Currently gspca supported usb-1.1 webcams for which we support the input
      button through an interrupt endpoint won't stream (not enough bandwidth
      error) when used through an USB-2.0 hub.
      
      After much debugging I've found out that the cause for this is that the
      ehci-sched.c schedeling code does not like it when there are already urb's
      scheduled when (large) isoc urbs are queued. By moving the submission
      of the interrupt urbs to after submitting the isoc urbs the camera
      starts working again through usb-2.0 hubs.
      
      Note that this does not fix isoc. streaming through a usb-hub while another
      1.1 usb device (like the microphone of the same cam) is also active
      at the same time :(
      
      I've spend a long time analyzing the linux kernel ehci scheduler code,
      resulting in this (long) mail:
      http://www.spinics.net/lists/linux-usb/msg37982.html
      
      The conclusion of the following mail thread is that yes there are several
      issues when using usb-1.1 devices through a usb-2.0 hub, but these are not
      easily fixable in the current code. Fixing this in ehci-sched.c requires
      an almost full rewrite, which is not bound to happen anytime soon.
      
      So with this patch gspca driven usb-1.1 webcams will atleast work when
      connected through an usb-2.0 hub when the microphone is not used.
      
      As an added bonus this patch avoids extra destroy/create input urb cycles
      when we end up falling back to a lower speed alt setting because of bandwidth
      limitations.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      314b3e08
  2. 22 10月, 2010 1 次提交
  3. 21 10月, 2010 5 次提交
  4. 28 9月, 2010 1 次提交
  5. 09 8月, 2010 2 次提交
  6. 03 8月, 2010 10 次提交
  7. 21 5月, 2010 1 次提交
  8. 19 5月, 2010 6 次提交
  9. 18 5月, 2010 2 次提交
  10. 27 2月, 2010 10 次提交