From: Antonio Ospite Date: Sun, 19 Dec 2010 12:11:39 +0000 (+0100) Subject: Use the name video_camera instead of color_camera. X-Git-Url: https://git.ao2.it/gspca_kinect.git/commitdiff_plain/1157c00add57c96b179896fc1b8051a1ad8970a1 Use the name video_camera instead of color_camera. This is in preparation for IR mode support. Signed-off-by: Antonio Ospite --- diff --git a/kinect.c b/kinect.c index c91bf33..b5077ca 100644 --- 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;