summaryrefslogtreecommitdiff
path: root/sys/dev/usb
AgeCommit message (Collapse)Author
2011-04-11uncompressed video formats have a fixed per-pixel bit depth, whichJacob Meuser
means the data size of a frame can be calculated if the dimensions are known. * calculate frame data sizes for uncompressed formats instead of believing what the hardware says. the UVC spec changed between 1.0 and 1.1, and as a result, some devices return bogus information. * skip under-sized as well as over-sized uncompressed frames; there is only one correct size for uncompressed frames. * remove quirk to fix uncompressed frame sizes on certain devices, since that now always happens. * check that the device is actually using the parameters we think it's using.
2011-04-07Do not use NULL in integer comparisons. No functional change.Miod Vallat
ok matthew@ tedu@, also eyeballed by at least krw@ oga@ kettenis@ jsg@
2011-04-06add a new "serial" devid type for scsi devices. add code to usb that fakesDavid Gwynne
it up by using the usb devices iSerial thing. ok deraadt@
2011-04-05binary vs logical or, found by clangJonathan Gray
ok mikeb@ deraadt@
2011-04-05- use nitems() no binary change on amd64Jasper Lievisse Adriaanse
"reads OK" claudio@
2011-04-05regenMiod Vallat
2011-04-05hid_locate() is supposed to accept the last two arguments being NULL, soMiod Vallat
correctly handle this in the failure case.
2011-04-04the v4l2 spec says that setting time per frame to zero should reset timeJacob Meuser
per frame to the default, so do that instead of returning EINVAL
2011-03-31just report the frame interval in the same terms the device gives us.Jacob Meuser
previously, this was returning the wrong value (frame rate instead of time per frame, d'oh!).
2011-03-31Don't process packets where the USB xfer length is shorter than a packetMichael Knudsen
header, and don't process packets where the packet header length field says the packet is longer than the size of the USB xfer. While there, fix a debug print that was missing the device name from the parameter list, causing it to crash when enabled. Also, use correct MTU from datasheet. From Loganaden Velvindrom with input from me. Tested by kili. ok jasper sthen (with a whitespace nit)
2011-03-26oops. the frame rate is the inverse of the frame interval. fixesJacob Meuser
setting the frame rate with luvcview.
2011-03-26use 'sizeof(struct usb_video_frame_desc)' instead of a hardcodedJacob Meuser
number
2011-03-26fill in the timestamp when copying a frame into the mmap bufferJacob Meuser
2011-03-26fill in support for VIDIOC_ENUM_FRAMEINTERVALSJacob Meuser
2011-03-26support VIDIOC_S_PARM and VIDIOC_G_PARM. these ioctls are used forJacob Meuser
setting and and getting the frame interval.
2011-03-26print the supported frame intervals when printing the frame descriptorJacob Meuser
2011-03-25* don't try to align our array of frame descriptors with theJacob Meuser
frame descriptor's bFrameIndex field. the first valid frame in the array is at index 0, not 1. * don't change the format group's default frame when configuring the device, and don't use the default frame as the current frame: these are what the format group's 'frame_cur' is for. tested by several as part of larger diff
2011-03-25* the mjpeg and uncompressed video frame descriptor structures areJacob Meuser
equivilent. only define one structure, struct usb_video_frame_desc, and handle both types of frame descriptors in the same code. * replace hardcoded numbers with 'sizeof(struct usb_video_frame_desc)' where the numbers represent the size of a frame descriptor tested by several
2011-03-25* empty the queue of frames in the mmap frame buffer and set theJacob Meuser
index of the current frame to -1 when the mmap frame buffer is free'd * set the index of the current frame to 0 when allocating the mmap frame buffer * paranoia: panic if a) the mmap frame buffer is already allocated when we try to allocate it, or b) the mmap frame buffer is not allocated when we try to add frames to it tested by several
2011-03-22silently clear the endpoint when the device has failed; ok jakemsrTheo de Raadt
2011-03-20Update URI to data sheet. New location found on www.davicom.com.tw butMichael Knudsen
points to some other domain for some reason. Noticed while looking into a udav(4) issue with Loganaden Velvindron. OK jasper
2011-03-19Add the ONDA MSA110UP USB modemDavid Coppa
Tested by Sergio Charpinel Jr. OK sthen@, jsg@
2011-03-19syncDavid Coppa
2011-03-19Add the ONDA MSA110UP USB modemDavid Coppa
Tested by Sergio Charpinel Jr. OK sthen@, jsg@
2011-03-16revert previous as it breaks nfs client as reported by kili@Jasper Lievisse Adriaanse
req'd by jsg@
2011-03-16If we get a packet larger than if_hardmtu skip it.Jonathan Gray
Tweaked version of a diff from Loganaden Velvindron who sees a large garbage frame on his device.
2011-03-09Knock out a bunch more UPS devices from attaching to uhid(4).Stuart Henderson
feedback/ok deraadt@
2011-03-09syncStuart Henderson
2011-03-09- add IDs for various USB HID UPS devices, extracted from NUTStuart Henderson
- switch to generic naming ("Somevendor UPS") where the vendor uses the same device ID for several devices feedback/ok deraadt@
2011-03-08regenJasper Lievisse Adriaanse
2011-03-08- add Trust and two miceJasper Lievisse Adriaanse
2011-03-04Add TouchScreen support. Makes newer Gunze USB TouchScreen devices work.Mark Kettenis
ok deraadt@
2011-03-04Apparently keeping some USB devices in reset for too long makes themMark Kettenis
non-functional. Reduce the root port reset delay to 100 ms. This is still twice as long as the delay mandated by the standard, but makes the Gunze TouchScreen on the Sony Vaio VGN-UX91S and a few other devices work. ok jakemsr@
2011-03-03Prevent division-by-zero when scaling down to the screen resolution. MakeMark Kettenis
the WSMOUSEIO_SCALIBCOORDS fail with EINVAL if the settings would cause a division-by-zero. ok deraadt@
2011-03-02- change recieved -> received in comments, as well as two unused definesJasper Lievisse Adriaanse
in pxe.h. ok deraadt@ sthen@
2011-02-21Make mos(4) set IFF_BROADCAST in if_flags.Stefan Sperling
ok jsg kevlo claudio; committing with miod's permission (src is soft-locked)
2011-02-17allow interfaces other than slaves of the union interface to be theJacob Meuser
data interface. lets an "MTK GPS Receiver" work, as reported by Daniel C. Sinclair. ok miod@
2011-02-10now that usb_wait_task() is back, bring back recently revertedJacob Meuser
changes: * use usb_ref_{incr,decr,wait}() to avoid detaching the driver while a process is still using the hardware. * don't add timeout(9)s if the device is detached. * add checks to see if the device has been detached before running ioctls, timeouts, and tasks. * use usb_wait_task() to wait for tasks to complete. ok damien@
2011-02-09bring back changes in usb.c revision 1.73Jacob Meuser
date: 2011/02/04 08:21:39; author: jakemsr; state: Exp; lines: +85 -34 * merge 'onqueue' and 'running' members of struct usb_task into a new member, 'state'. * add new function 'usb_wait_task()', which waits for queued or running usb_tasks to complete. * in the USB_DEVICEINFO ioctl, fill struct usb_device_info in a usb_task, thereby avoiding races against driver attach/detach. but this time make the state a bitmask, since it is valid to be added to the task queue while the task is running. also be more careful about waking up the task when state changes. ok miod@
2011-02-09revert usb.c to r1.72, and all subsequent changes that depend on it.Jacob Meuser
this is causing problems with suspend/resume for some people.
2011-02-05* use usb_ref_{incr,decr,wait}() to avoid detaching the driver while aJacob Meuser
process is still using the hardware. * don't add timeout(9)s if the device is detached. * add checks to see if the device has been detached before running ioctls, timeouts, and tasks. * use usb_wait_task() to wait for tasks to complete. ok damien@
2011-02-04* merge 'onqueue' and 'running' members of struct usb_task intoJacob Meuser
a new member, 'state'. * add new function 'usb_wait_task()', which waits for queued or running usb_tasks to complete. * in the USB_DEVICEINFO ioctl, fill struct usb_device_info in a usb_task, thereby avoiding races against driver attach/detach. ok miod@
2011-02-01Add the Toshiba 3G HSDPA MiniCard, found in my Dell Latitude D630.David Coppa
Ok jsg@, sthen@, miod@
2011-02-01regenDavid Coppa
2011-02-01Add the Toshiba 3G HSDPA MiniCard, found in my Dell Latitude D630.David Coppa
Ok jsg@, sthen@, miod@
2011-01-30another runTed Unangst
2011-01-30regenTed Unangst
2011-01-30another run device. ok miodTed Unangst
2011-01-25garbage collect "usb events". without /dev/usb there is no way to accessJacob Meuser
them from userland, and nothing in the kernel uses them. ok krw@, miod@
2011-01-17syncKevin Lo