X-Git-Url: https://git.ao2.it/gspca_kinect.git/blobdiff_plain/9e125d30a241de93889d470b1aca684c39ab9e26..3a445ab5c3e5844cf8ae5f1b369dc4a439c14b58:/kinect.c?ds=inline diff --git a/kinect.c b/kinect.c index 174caa8..6c16413 100644 --- a/kinect.c +++ b/kinect.c @@ -5,7 +5,10 @@ * * Based on the OpenKinect project and libfreenect * http://openkinect.org/wiki/Init_Analysis - * + * + * Special thanks to Steven Toth and kernellabs.com for sponsoring a Kinect + * sensor device which I tested the driver on. + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or @@ -233,8 +236,11 @@ static int sd_config(struct gspca_dev *gspca_dev, cam->cam_mode = video_camera_mode; cam->nmodes = ARRAY_SIZE(video_camera_mode); - //cam->npkt = 15; - //gspca_dev->pkt_size = 960 * 2; +#if 0 + /* Setting those values is not needed for color camera */ + cam->npkt = 15; + gspca_dev->pkt_size = 960 * 2; +#endif return 0; } @@ -321,13 +327,14 @@ static int sd_start(struct gspca_dev *gspca_dev) static void sd_stopN(struct gspca_dev *gspca_dev) { - write_register(gspca_dev, 0x05, 0x00); // reset video stream + /* reset video stream */ + write_register(gspca_dev, 0x05, 0x00); } static void sd_pkt_scan(struct gspca_dev *gspca_dev, u8 *__data, int len) { struct sd *sd = (struct sd *) gspca_dev; - + struct pkt_hdr *hdr = (void*)__data; uint8_t *data = __data + sizeof(*hdr); int datalen = len - sizeof(*hdr); @@ -355,7 +362,7 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev, u8 *__data, int len) gspca_frame_add(gspca_dev, LAST_PACKET, data, datalen); else - warn("Not recognized..."); + warn("Packet type not recognized..."); } /* sub-driver description */