summaryrefslogtreecommitdiff
path: root/sys/dev/usb
AgeCommit message (Collapse)Author
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").
2008-08-12Don't process xfers which have the stream error bit set in the streamMarcus Glocker
header.
2008-08-11Since we have ehci(4) isoc support now, don't demote USB2 uvideo(4)Marcus Glocker
devices to USB1, instead let them attach to ehci(4). This may break a couple of the devices for the moment, but it's the way we have to go finally.
2008-08-10Prepare for ehci:Marcus Glocker
- Remove GET_DEF request for negotation. It doesn't help, instead keep breaking devices. - On device close first switch back to default interface 0 before abort/close the isoc pipe. This fixes IOERRORs on device re-open.
2008-08-09Add isochronous xfer support for ehci(4). From NetBSD.Marcus Glocker
OK brad@
2008-08-09RegenMiod Vallat
2008-08-09Add the fr-dvorak-be'po layout as fr.dvorak for ps/2 and usb keyboards.Miod Vallat
This is only the simplified layout, which is final; the complete layout with extra symbols is still being discussed.
2008-08-09Revert last commit, it doesn't always help, we need to find anotherMarcus Glocker
solution.
2008-08-09Prepare for ehci: If GET_DEF request has failed, wait a moment beforeMarcus Glocker
issuing GET_CUR. Makes my NX6000 attach on ehci.
2008-08-08if we fail to extract the mbuf in the Rx routine, incrementThordur I. Bjornsson
the if_ierrors before bailing out; Turn a printf() that fires in this case too a DPRINTF since we the interface error counters now reflect this. OK mglocker@
2008-08-08syncReyk Floeter
2008-08-08add eMPIA Technology EeePC 701 camera (currently unsupported uvideo(4)Reyk Floeter
device)
2008-08-03revert part of rev. 1.65 where we set the address earlier. this seemsFederico G. Schwindt
to cause issues as per netbsd pr/39023. deraadt@ yuo@ ok.
2008-08-02Use correct terms as in the specs;Marcus Glocker
"fragment" gets replaced by "sample". "sample" gets replaced by "frame". A sample is a peace of a frame (final image). No functional changes. OK deraadt@
2008-08-02Better wording for a comment.Marcus Glocker
2008-08-02Spacing, sorting, and remove an unused prototype.Marcus Glocker
2008-08-02Woops, remove #undef which was committed by mistake.Marcus Glocker
2008-08-02Don't print error message if GET_DEF request fails, since this is commonMarcus Glocker
for some devices and we will fail back to GET_CUR then.
2008-08-02If a format descriptor doesn't contain any frame descriptors even if itMarcus Glocker
claims to (as seen on the M$ LifeCam NX6000), abort further processing. Safes us from potential NULL pointer derefs.
2008-08-02Fix typo. Reported by Maxim Belooussov.Marcus Glocker
2008-08-01- Use defined return values wherever possible instead inventingMarcus Glocker
custom ones. - Define functions which use USB return values with usbd_status instead int. - Define functions which always return 0 with void instead int. - (void) function calls which don't check the return code.
2008-08-01If no format descriptors have been found, abort attachment. Adjust someMarcus Glocker
DPRINTF and printf messages while here.
2008-07-31- Don't relay on bFormatIndex as an internal array index, since thisMarcus Glocker
field is unreliable and can start with any number. Use an own internal array index instead. - If the read buffer is too small, return a propper error to the calling functions. Just check the buffer size if we use the read(2) method since it doesn't affect mmap(2). Fixes kernel crashes seen with the M$ LifeCam NX-6000 and internal (laptop) Sonix chipsets. Tested by jcs@ (Sonix) and myself (NX-6000). OK deraadt@
2008-07-30syncTheo de Raadt
2008-07-30syncTheo de Raadt
2008-07-30add 2nd sierra MC5725 correctlyTheo de Raadt
2008-07-30Add an alternate ID for Sierra Wireless MC5725 modem, foundCan Erkin Acar
in a Lenovo T60, reported by Juan Delgado. ok you@, jsg@ deraadt@
2008-07-30Free the correct buffer list on failure.Damien Bergamini
From Andrew Thompson at FreeBSD.
2008-07-29The stream header length and flags field are uint8_t not int.Marcus Glocker
2008-07-28When getting the string descriptors, fetch 2 bytes (size and type) first,Federico G. Schwindt
and then the whole string based on the returned size, not just one byte. The Lexar card reader kindly loaned by Denis Doroshenko (denis dot doroshenko at gmail.com) it's happy now, and after further inspection it's what other OSs do. Discussed with yuo@. krw@ yuo@ ok.
2008-07-28add another 3G modems support to umsm(4).Yojiro Uo
- Option GlobeSuffer ICON7.2 - Option GlobeTrotter HSDPA ICON 225 These modems require special request to change its mode to modem. It is similar with huawei E220, but these modems using UMASS standard query to change mode. tested by pyr@ and ajacoutot@ ok jsg@ and pyr@
2008-07-26Since we are able to change the device image resolution on the fly in theMarcus Glocker
meantime, the memory allocation for the read(2) method for video(4) is not right anymore, and can cause a buffer overflow. We fix this by queuering the maximum available image size for a device at attach time. If the image size should exceed our video(4) buffer after a video format change (which shouldn't happen), uvideo(4) will gracefully fail. Also tested by kettenis@
2008-07-25After our recent changes, VIDIOC_S_FMT didn't always return the correctMarcus Glocker
maximum image size. Fix it. Makes read(2) method work again.
2008-07-25Not all devices support GET_DEF, fall back on GET_CUR if so.Marcus Glocker
Reported and tested kettenis@
2008-07-24Remove some obsolete XXX comments.Marcus Glocker
2008-07-24Simplify uvideo_enum_fmt(), no functional changes.Marcus Glocker
2008-07-23- Fix potential uvm_fault crash inMarcus Glocker
uvideo_vs_parse_desc_frame_uncompressed(). - If a VS alternate interface isn't valid (e.g. doesn't contain a UE_ISOCHRONOUS endpoint), abort attachment with a corresponding error message instead crashing the kernel. Tested and OK maja@
2008-07-22There are devices out there which are UVC compatible, but do not showMarcus Glocker
up as this (we love standards). To make those devices attach anyway we add an explicit quirk device list. Of course this list still needs to be extended. Thanks to Jerome Pinot for reporting about this issue and testing this diff with his cam, which is such a device. OK yuo@
2008-07-22Spelling, negotation -> negotiation.Marcus Glocker
2008-07-22Fix uvm_fault crash in uvideo_vs_negotation() which was reported by someMarcus Glocker
users. Thanks to mpf@ for his help to debug this bug down.
2008-07-21instead of passing rx tstamp and rssi to the ieee80211_input function,Damien Bergamini
pass a pointer to an ieee80211_rxinfo structure containing those two fields plus an extra flags field that indicates whether the frame was decrypted by hardware or not. required for a future fix.
2008-07-20Huawei E618 and E620 is not compatible with ubsa(4).Yojiro Uo
This patch moves these device to umsm(4). reported by Aleksander Piotrowski, ok jsg@
2008-07-19If a resolution which has been requested over VIDEO_TRY_FMT orMarcus Glocker
VIDEO_S_FMT doesn't exactly match the devices available resolutions, return the next best matching resolution which we have. Makes some V4L2 apps happy when running them with the default resolution (no options).
2008-07-18For negotation first get the devices default values (GET_DEF) insteadMarcus Glocker
asking for (GET_CUR) directly. This gets us better negotation values.
2008-07-18Implement VIDIOC_S_FMT and VIDIOC_TRY_FMT. Now V4L2 applications canMarcus Glocker
set their desired image size, and therefore users can manipulate the image size, too via the application. Also tested by brad@
2008-07-14Make VIDIOC_ENUM_FMT list all available formats for the attached device.Marcus Glocker
2008-07-14Finish support for uncompressed payloads (UDESCSUB_VS_FORMAT_UNCOMPRESSED).Marcus Glocker
2008-07-13Spacing.Marcus Glocker
2008-07-13Save format and frame descriptors to a format group structure so weMarcus Glocker
can use them later for stuff like VIDIOC_S_FMT (e.g. set custom resolution).
2008-07-12syncBernd Ahlers