In pwc_video_open() the camera is sent a poweron command only if the
global power_save is set. It is possible to have a camera in the powered
off state but also have power_save be zero, for example if the module
has been reinstalled with power_save=0 after powering off the camera.
In any case, a belt-and-braces approach would be to always send the
poweron command.
Diff attached.
--
Michael C Wescott <[EMAIL PROTECTED]>
--- pwc-if.c.orig 2006-01-07 09:58:30.000000000 -0500
+++ pwc-if.c 2006-02-26 16:43:20.630881692 -0500
@@ -1098,11 +1098,10 @@
}
/* Turn on camera */
- if (power_save) {
- i = pwc_camera_power(pdev, 1);
- if (i < 0)
- PWC_DEBUG_OPEN("Failed to restore power to the camera! (%d)\n", i);
- }
+ i = pwc_camera_power(pdev, 1);
+ if (i < 0)
+ PWC_DEBUG_OPEN("Failed to restore power to the camera! (%d)\n", i);
+
/* Set LED on/off time */
if (pwc_set_leds(pdev, led_on, led_off) < 0)
PWC_DEBUG_OPEN("Failed to set LED on/off time.\n");
_______________________________________________
pwc mailing list
[email protected]
http://lists.saillard.org/mailman/listinfo/pwc