The patch number 13244 was added via h...@rhel5-devel.localdomain
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        Linux Media Mailing List <linux-me...@vger.kernel.org>

------

From: Theodore Kilgore  <kilg...@banach.math.auburn.edu>
gspca_mr97310a: Fix / update some comments


gspca_mr97310a: Fix / update some comments

Priority: normal

Signed-off-by: Theodore Kilgore <kilg...@banach.math.auburn.edu>
Signed-off-by: Hans de Goede <hdego...@redhat.com>


---

 linux/drivers/media/video/gspca/mr97310a.c |   28 ++++++++++++---------
 1 file changed, 16 insertions(+), 12 deletions(-)

diff -r 5dbdfc20a931 -r ef36dd899ed1 linux/drivers/media/video/gspca/mr97310a.c
--- a/linux/drivers/media/video/gspca/mr97310a.c        Thu Oct 29 11:45:24 
2009 +0100
+++ b/linux/drivers/media/video/gspca/mr97310a.c        Fri Oct 30 08:29:56 
2009 +0100
@@ -18,7 +18,9 @@
  * Several previously unsupported cameras are owned and have been tested by
  * Hans de Goede <hdgo...@redhat.com> and
  * Thomas Kaiser <tho...@kaiser-linux.li> and
- * Theodore Kilgore <kilg...@auburn.edu>
+ * Theodore Kilgore <kilg...@auburn.edu> and
+ * Edmond Rodriguez <erodrig...@yahoo.com> and
+ * Aurelien Jacobs <au...@gnuage.org>
  *
  * The MR97311A support in gspca/mars.c has been helpful in understanding some
  * of the registers in these cameras.
@@ -105,8 +107,8 @@
 
 /* V4L2 controls supported by the driver */
 static struct ctrl sd_ctrls[] = {
-/* Seprate brightness control description for Argus QuickClix as it has
-   different limits from to other mr97310a camera's */
+/* Separate brightness control description for Argus QuickClix as it has
+   different limits from the other mr97310a cameras */
        {
 #define NORM_BRIGHTNESS_IDX 0
                {
@@ -428,7 +430,7 @@
        return mr_write(gspca_dev, 2);
 }
 
-/* this function is called at probe time */
+/* This function is called at probe time */
 static int sd_config(struct gspca_dev *gspca_dev,
                     const struct usb_device_id *id)
 {
@@ -441,11 +443,11 @@
        cam->nmodes = ARRAY_SIZE(vga_mode);
        sd->do_lcd_stop = 0;
 
-       /* Now, logical layout of the driver must fall sacrifice to the
-        * realities of the hardware supported. We have to sort out several
-        * cameras which share the USB ID but are in fact different inside.
-        * We need to start the initialization process for the cameras in
-        * order to classify them. Some of the supported cameras require the
+       /* Several of the supported CIF cameras share the same USB ID but
+        * require different initializations and different control settings.
+        * The same is true of the VGA cameras. Therefore, we are forced
+        * to start the initialization process in order to determine which
+        * camera is present. Some of the supported cameras require the
         * memory pointer to be set to 0 as the very first item of business
         * or else they will not stream. So we do that immediately.
         */
@@ -464,9 +466,10 @@
                if (err_code < 0)
                        return err_code;
                /*
-                * The various CIF cameras share the same USB ID but use
-                * different init routines and different controls. We need to
-                * detect which one is connected!
+                * All but one of the known CIF cameras share the same USB ID,
+                * but two different init routines are in use, and the control
+                * settings are different, too. We need to detect which camera
+                * of the two known varieties is connected!
                 *
                 * A list of known CIF cameras follows. They all report either
                 * 0002 for type 0 or 0003 for type 1.
@@ -481,6 +484,7 @@
                 * Vivitar Mini         1               T. Kilgore
                 * Elta-Media 8212dc    1               T. Kaiser
                 * Philips dig. keych.  1               T. Kilgore
+                * Trust s...@m 100     1               A. Jacobs
                 */
                switch (gspca_dev->usb_buf[1]) {
                case 2:


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/ef36dd899ed1f89012391fb7fb2d3b708bfcb1ec

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to