the patch below should fix the Oops caused by sd_start() called too early, but
I am not sure about why sd_start() was called from sd_init() for Hercules
webcams in the first place, maybe the snippet marked with:
/* (from ms-win trace) */
in sd_start() must be moved to sd_init() too.
Let me know if the change below alone is enough and the webcam keeps working,
a test with suspend and resume would good to have too.
---
Hi Yaroslav,
the patch below should fix the Oops caused by sd_start() called too early, but
I am not sure about why sd_start() was called from sd_init() for Hercules
webcams in the first place, maybe the snippet marked with:
/* (from ms-win trace) */
in sd_start() must be moved to sd_init() too.
Let me know if the change below alone is enough and the webcam keeps working,
a test with suspend and resume would good to have too.
Thanks,
Antonio
drivers/ media/usb/ gspca/ov534. c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/ media/usb/ gspca/ov534. c b/drivers/ media/usb/ gspca/ov534. c media/usb/ gspca/ov534. c media/usb/ gspca/ov534. c set_led( gspca_dev, 1); w_array( gspca_dev, sensor_ init[sd- >sensor] .val, init[sd- >sensor] .len); gspca_dev) ; gspca_dev) ; rate(gspca_ dev); */
index 2e28c81..03a33c4 100644
--- a/drivers/
+++ b/drivers/
@@ -1305,8 +1305,7 @@ static int sd_init(struct gspca_dev *gspca_dev)
ov534_
sccb_
sensor_
- if (sd->sensor == SENSOR_OV767x)
- sd_start(
+
sd_stopN(
/* set_frame_
--
1.8.4.rc1