patch-2.4.10 linux/drivers/usb/pwc-misc.c

Next file: linux/drivers/usb/pwc.h
Previous file: linux/drivers/usb/pwc-ioctl.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.9/linux/drivers/usb/pwc-misc.c linux/drivers/usb/pwc-misc.c
@@ -97,6 +97,8 @@
 	}
 	pdev->view_min.size = pdev->view_min.x * pdev->view_min.y;
 	pdev->view_max.size = pdev->view_max.x * pdev->view_max.y;
+	/* length of image, in YUV format */
+	pdev->len_per_image = (pdev->view_max.size * 3) / 2;
 }
 
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)