diff options
author | Theodore Kilgore <kilgota@auburn.edu> | 2009-12-25 03:15:10 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-15 12:05:55 -0400 |
commit | 8635bb47c2a2f4d26ee42376b18e73c853570c41 (patch) | |
tree | 590d3f806f4ffcad79d6898408bcd163ad7235aa | |
parent | 0b7196b95e817ca95d15842269167324734c1c0e (diff) |
V4L/DVB (13991): gspca_mr973010a: Fix cif type 1 cameras not streaming on UHCI controllers
commit 70136081fc67ea77d849f86fa323e5773c8e40ea upstream.
If you read the mail to Oliver Neukum on the linux-usb list, then you know
that I found a cure for the mysterious problem that the MR97310a CIF "type
1" cameras have been freezing up and refusing to stream if hooked up to a
machine with a UHCI controller.
Namely, the cure is that if the camera is an mr97310a CIF type 1 camera, you
have to send it 0xa0, 0x00. Somehow, this is a timing reset command, or
such. It un-blocks whatever was previously stopping the CIF type 1 cameras
from working on the UHCI-based machines.
Signed-off-by: Theodore Kilgore <kilgota@auburn.edu>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/media/video/gspca/mr97310a.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/video/gspca/mr97310a.c b/drivers/media/video/gspca/mr97310a.c index 9154870e07d2..0493e4043c0e 100644 --- a/drivers/media/video/gspca/mr97310a.c +++ b/drivers/media/video/gspca/mr97310a.c | |||
@@ -697,6 +697,12 @@ static int start_cif_cam(struct gspca_dev *gspca_dev) | |||
697 | {0x13, 0x00, {0x01}, 1}, | 697 | {0x13, 0x00, {0x01}, 1}, |
698 | {0, 0, {0}, 0} | 698 | {0, 0, {0}, 0} |
699 | }; | 699 | }; |
700 | /* Without this command the cam won't work with USB-UHCI */ | ||
701 | gspca_dev->usb_buf[0] = 0x0a; | ||
702 | gspca_dev->usb_buf[1] = 0x00; | ||
703 | err_code = mr_write(gspca_dev, 2); | ||
704 | if (err_code < 0) | ||
705 | return err_code; | ||
700 | err_code = sensor_write_regs(gspca_dev, cif_sensor1_init_data, | 706 | err_code = sensor_write_regs(gspca_dev, cif_sensor1_init_data, |
701 | ARRAY_SIZE(cif_sensor1_init_data)); | 707 | ARRAY_SIZE(cif_sensor1_init_data)); |
702 | } | 708 | } |