Use the name video_camera instead of color_camera.
authorAntonio Ospite <ospite@studenti.unina.it>
Sun, 19 Dec 2010 12:11:39 +0000 (13:11 +0100)
committerAntonio Ospite <ospite@studenti.unina.it>
Sun, 19 Dec 2010 12:11:39 +0000 (13:11 +0100)
This is in preparation for IR mode support.

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
kinect.c

index c91bf33..b5077ca 100644 (file)
--- a/kinect.c
+++ b/kinect.c
@@ -72,7 +72,7 @@ static const struct ctrl sd_ctrls[] = {
 
 #define FPS_HIGH       0x0100
 
-static const struct v4l2_pix_format color_camera_mode[] = {
+static const struct v4l2_pix_format video_camera_mode[] = {
        {640, 480, V4L2_PIX_FMT_SGRBG8, V4L2_FIELD_NONE,
         .bytesperline = 640,
         .sizeimage = 640 * 480,
@@ -211,8 +211,8 @@ static int sd_config(struct gspca_dev *gspca_dev,
 
        cam = &gspca_dev->cam;
 
-       cam->cam_mode = color_camera_mode;
-       cam->nmodes = ARRAY_SIZE(color_camera_mode);
+       cam->cam_mode = video_camera_mode;
+       cam->nmodes = ARRAY_SIZE(video_camera_mode);
 
        //cam->npkt = 15;
        //gspca_dev->pkt_size = 960 * 2;