]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob
80f2ae6daefd8053b23a42cf16e740d1cd1d172c
[thirdparty/kernel/stable-queue.git] /
1 From 70136081fc67ea77d849f86fa323e5773c8e40ea Mon Sep 17 00:00:00 2001
2 From: Theodore Kilgore <kilgota@auburn.edu>
3 Date: Fri, 25 Dec 2009 05:15:10 -0300
4 Subject: V4L/DVB (13991): gspca_mr973010a: Fix cif type 1 cameras not streaming on UHCI controllers
5
6 From: Theodore Kilgore <kilgota@auburn.edu>
7
8 commit 70136081fc67ea77d849f86fa323e5773c8e40ea upstream.
9
10 If you read the mail to Oliver Neukum on the linux-usb list, then you know
11 that I found a cure for the mysterious problem that the MR97310a CIF "type
12 1" cameras have been freezing up and refusing to stream if hooked up to a
13 machine with a UHCI controller.
14
15 Namely, the cure is that if the camera is an mr97310a CIF type 1 camera, you
16 have to send it 0xa0, 0x00. Somehow, this is a timing reset command, or
17 such. It un-blocks whatever was previously stopping the CIF type 1 cameras
18 from working on the UHCI-based machines.
19
20 Signed-off-by: Theodore Kilgore <kilgota@auburn.edu>
21 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
22 Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
23 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
24
25 ---
26 drivers/media/video/gspca/mr97310a.c | 6 ++++++
27 1 file changed, 6 insertions(+)
28
29 --- a/drivers/media/video/gspca/mr97310a.c
30 +++ b/drivers/media/video/gspca/mr97310a.c
31 @@ -530,6 +530,12 @@ static int start_cif_cam(struct gspca_de
32 {0x13, 0x00, {0x01}, 1},
33 {0, 0, {0}, 0}
34 };
35 + /* Without this command the cam won't work with USB-UHCI */
36 + gspca_dev->usb_buf[0] = 0x0a;
37 + gspca_dev->usb_buf[1] = 0x00;
38 + err_code = mr_write(gspca_dev, 2);
39 + if (err_code < 0)
40 + return err_code;
41 err_code = sensor_write_regs(gspca_dev, cif_sensor1_init_data,
42 ARRAY_SIZE(cif_sensor1_init_data));
43 }