summaryrefslogtreecommitdiff
path: root/sys/dev/usb/uvideo.c
AgeCommit message (Collapse)Author
2009-11-24at close() get rid of the usb task before we start tearing down; ok mglockerTheo de Raadt
2009-10-26better test for if the parent is ohci; ok mglockerTheo de Raadt
2009-10-13Get rid of devact enum, substitute it with an int and coresponding defines.Paul Irofti
This is needed for the addition of further suspend/resume actions. Okay deraadt@, marco@.
2009-09-07sizeof ptr vs sizeof *ptr bug; ok mglocker@Miod Vallat
2009-06-28Better wording for the not-supported-video-control message.Marcus Glocker
Requested by and OK deraadt@
2009-04-18Fix tyop.Michael Knudsen
ok mglocker
2009-03-29Finally fix kernel crash (page fault) when closing bulk devices.Marcus Glocker
Help from kettenis@
2009-03-28Add quirk to support "Chen-Source CM12402 Eagle IR Cam" device, byMarcus Glocker
fixing wrong dwMaxVideoFrameSize value. As a side effect, broken devices which report dwMaxVideoFrameSize=0 today could be fixed as well. No regressions reported so far. Discussed with fgsch@. Diff from Kenji Aoyama
2009-03-25Revert 1.119 bulk crash workaround, because it breaks Logitech QuickCamMarcus Glocker
9000 devices. Add a XXX comment that we need to fix the bulk issue properly instead.
2009-02-270x3 is not really a good number for bit flags. Should fix the LogitechMarcus Glocker
QuickCam OEM attachment finally. OK deraadt@
2009-02-21Fix a kernel crash for bulk devices when closing the video stream;Marcus Glocker
We give the kthread loop a moment to recognize that bulk_running=0 before we close the USB pipes. Otherwise it can happen that we close the USB pipes before the kthread loop stopped.
2009-02-20Add Sony VGP-VCC9 Camera (Ricoh chipset) to the quirk list.Marcus Glocker
2009-02-20Add more Ricoh chipsets to the quirk list which could work.Marcus Glocker
2009-02-20Don't attach non-UISUBCLASS_VIDEOCONTROL interfaces from some quirkMarcus Glocker
devices. Problem reported by Jerome Pinot (QuickCam OEM). Also tested by deraadt@ with ricoh chipset.
2009-02-19the uaa structure (and things it points, for instance ifaces) is onlyTheo de Raadt
alive during match and attach. do not attempt to reuse this pointer or ifaces during a deferred attach routine, since it will contain junk, but instead make copies. tested on all 3 kinds of uvideo's (ricoh fw load, apple fw load, and the rest) ok robert mglocker
2009-02-06Fix kernel crash (page fault) for devices with unsorted frame index.Marcus Glocker
Problem reported by Kenji Aoyama
2008-12-22First shoot of the uvideo firmware package.Marcus Glocker
2008-12-22Fix some logic in the isight specific stream header decode functionMarcus Glocker
(still doesn't work).
2008-12-22Sort quirk device list and fix some comments there.Marcus Glocker
2008-12-22Add firmware load for Apple iSight first generation devicesMarcus Glocker
(0x05ac:8300 before firmware load, 0x05ac:0x8501 after firmware load). Also those devices have a own stream header procotol for which we've added a seperate stream header decode function, which does not work yet. A jointventure work with robert@
2008-12-17- Extend our quirk device table by a flags field.Marcus Glocker
- Add Apple iSight first revision device to the quirk table for future code. - Fix some logic in the device matching function. OK deraadt@
2008-12-17Backout anonymous union fix, since it breaks V4L ports. we try to fixMarcus Glocker
this upstream instead. OK deraadt@
2008-12-14Give names to anonymous unions.Ray Lai
Worked on with mglocker. OK mglocker
2008-12-10Fix ohci xfers for some devices by adjusting the number of microframes toMarcus Glocker
a static value of 8. Regression tested by todd@
2008-12-10Macro spacing. No binary change.Marcus Glocker
2008-12-10use maximum value of dwMaxVideoFrameBufferSize in each vs descriptorsYojiro Uo
as the maximum frame buffer size of video(4) current logic potentially brake the device initialization (and the result of the query is not correct). ok mglocker@
2008-12-09Also allow V4L2 apps to recognize the UYVY support.Brad Smith
ok mglocker@
2008-12-08do device classification for non-UVC and firmware-needing devices togetherTheo de Raadt
in the same device table, and abstract usb control out of the ricoh firmware loader so that it can be reused by other loaders ok mglocker
2008-12-08- Firmware header field "len" for Ricoh devices is uint8_t not uint16_t.Marcus Glocker
- Consistency in comments.
2008-12-08Add ability to load firmware for devices which require it.Marcus Glocker
Tested by deraadt@ and myself.
2008-12-06No need to set dwMaxVideoFrameSize and dwMaxPayloadTransferSize to 0Marcus Glocker
in the negotation routine explicitly, because the whole structure gets bzero'ed before.
2008-12-04fix typo in the dwFrameInterval commentYojiro Uo
2008-12-03- Fix unit for dwFrameInterval in DPRINTF.Marcus Glocker
- Add a comment from yuo@ which describes dwFrameInterval values a bit.
2008-12-03Fix error handling for usbd_transfer().Marcus Glocker
2008-12-03add UYVY video format support for uncompressed videoYojiro Uo
ok mglocker@
2008-12-03change UVC VS negotiation logic.Yojiro Uo
some device return wrong value for get probe request without initial set probe request. so, now it issue set probe request and then get probe to initialize device configuration.
2008-12-03fix USB packet size handling of uvideo(4)Yojiro Uo
2008-11-30Setup three isoc transfers at a time so we don't miss frames. This fixesMarcus Glocker
transfers which require larger bandwidths, e.g. for higher resolutions. discussed with yuo@, deraadt@
2008-11-24More sanitizing for wrong bDefaultFrameIndex values. Fixes a panicMarcus Glocker
at attach time for devices which set bDefaultFrameIndex larger than the existing frame descriptors. Spotted, tested, and OK yuo@
2008-11-10One more replacement; 2 -> UVIDEO_SH_MIN_LENMarcus Glocker
2008-11-09Make own struct for the stream header instead saving the data in singleMarcus Glocker
variables.
2008-11-09Add BULK xfer support.Marcus Glocker
Thanks to Carlos Valiente for donating an EeePC 701 where this has been developed and tested.
2008-11-06Fix a small bug which made it impossible to use more than oneMarcus Glocker
video control.
2008-10-26Fix IOERRORs seen on some devices after a few open / close cycles.Marcus Glocker
Tested and OK brad@
2008-10-04When closing the video stream switch back to default interface as lastMarcus Glocker
action. Shuts down the device gracefully.
2008-08-24Get VIDIOC_G_FMT working (makes ekiga happy).Marcus Glocker
2008-08-24Use consistent variable names; curr -> cur, err -> error.Marcus Glocker
2008-08-24Add support for processing unit (e.g. brightness) controls. New V4L2Marcus Glocker
ioctls therefore are VIDIOC_QUERYCTRL, VIDIOC_G_CTRL, and VIDIOC_S_CTRL.
2008-08-16If dwMaxPayloadTransferSize doesn't exactly match to an existingMarcus Glocker
endpoint, pick the next higher endpoint bandwidth.
2008-08-13Add VIDIOC_ENUM_FRAMESIZES ioctl. This permits applications to query theMarcus Glocker
available formats and resolutions of a device (e.g. "luvcview -L").