[media] gspca_pac7311: Set register page at start of init
authorHans de Goede <hdegoede@redhat.com>
Thu, 10 May 2012 15:10:56 +0000 (12:10 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 14 May 2012 12:45:00 +0000 (09:45 -0300)
Our init sequence was not setting the register page to point to bank 1
before setting what should be the control reg. This causes the camera to
sometimes have its LED on after init. First selecting register bank 1,
rather then assuming the current register bank is bank 1, fixes this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/pac7311.c

index a07c089..910d881 100644 (file)
@@ -108,6 +108,7 @@ static const struct v4l2_pix_format vga_mode[] = {
 #define END_OF_SEQUENCE                0
 
 static const __u8 init_7311[] = {
+       0xff, 0x01,
        0x78, 0x40,     /* Bit_0=start stream, Bit_6=LED */
        0x78, 0x40,     /* Bit_0=start stream, Bit_6=LED */
        0x78, 0x44,     /* Bit_0=start stream, Bit_6=LED */