Age | Commit message (Collapse) | Author |
|
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.
|
|
ok matthew@ tedu@, also eyeballed by at least krw@ oga@ kettenis@ jsg@
|
|
it up by using the usb devices iSerial thing.
ok deraadt@
|
|
ok mikeb@ deraadt@
|
|
"reads OK" claudio@
|
|
|
|
correctly handle this in the failure case.
|
|
per frame to the default, so do that instead of returning EINVAL
|
|
previously, this was returning the wrong value (frame rate instead
of time per frame, d'oh!).
|
|
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)
|
|
setting the frame rate with luvcview.
|
|
number
|
|
|
|
|
|
setting and and getting the frame interval.
|
|
|
|
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
|
|
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
|
|
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
|
|
|
|
points to some other domain for some reason.
Noticed while looking into a udav(4) issue with Loganaden Velvindron.
OK jasper
|
|
Tested by Sergio Charpinel Jr.
OK sthen@, jsg@
|
|
|
|
Tested by Sergio Charpinel Jr.
OK sthen@, jsg@
|
|
req'd by jsg@
|
|
Tweaked version of a diff from Loganaden Velvindron
who sees a large garbage frame on his device.
|
|
feedback/ok deraadt@
|
|
|
|
- switch to generic naming ("Somevendor UPS") where the vendor uses
the same device ID for several devices
feedback/ok deraadt@
|
|
|
|
|
|
ok deraadt@
|
|
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@
|
|
the WSMOUSEIO_SCALIBCOORDS fail with EINVAL if the settings would cause a
division-by-zero.
ok deraadt@
|
|
in pxe.h.
ok deraadt@ sthen@
|
|
ok jsg kevlo claudio; committing with miod's permission (src is soft-locked)
|
|
data interface. lets an "MTK GPS Receiver" work, as reported by
Daniel C. Sinclair.
ok miod@
|
|
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@
|
|
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@
|
|
this is causing problems with suspend/resume for some people.
|
|
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@
|
|
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@
|
|
Ok jsg@, sthen@, miod@
|
|
|
|
Ok jsg@, sthen@, miod@
|
|
|
|
|
|
|
|
them from userland, and nothing in the kernel uses them.
ok krw@, miod@
|
|
|