[Linux-uvc-devel] Possible bug in while enumerating private controls

2008-01-03 Thread Antoine Cellerier
Hello, I've stumbled upon a problem when hacking the VLC v4l2 driver: I want to enumerate all the private controls to make them available in the interface. The code used to enumerate the controls uses the same logic as Example 1-8 in the spec:

Re: [Linux-uvc-devel] Possible bug in while enumerating private controls

2008-01-03 Thread Antoine Cellerier
On Thu, Jan 03, 2008, Antoine Cellerier wrote: Since I don't know the uvcvideo control code really well I haven't started patching it yet and would like a confirmation from the gurus that I'm reading the spec correctly. Ok, so here is a patch that fixes the problem as far as i can tell. It

[Linux-uvc-devel] [PATCH] Fix auto exposure mode control

2008-01-03 Thread Antoine Cellerier
This patch fixes the auto exposure mode control so it complies with 4.2.2.1.2. of USB_Video_Class_1.1.pdf . -- Antoine Cellerier dionoea Index: uvc_ctrl.c === --- uvc_ctrl.c (revision 159) +++ uvc_ctrl.c (working copy) @@ -172,6

[Linux-uvc-devel] [PATCH] Add auto exposure priority control

2008-01-03 Thread Antoine Cellerier
This patch adds the Auto-Exposure Priority Control as defined in 4.2.2.1.3. in USB_Video_Class_1.1.pdf . -- Antoine Cellerier dionoea Index: uvc_ctrl.c === --- uvc_ctrl.c (revision 159) +++ uvc_ctrl.c (working copy) @@ -126,6