diff options
author | Hans de Goede <hdegoede@redhat.com> | 2012-05-10 11:10:56 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-05-14 08:45:00 -0400 |
commit | 42f85d0a9612b559dc3110cc0d468050ac22cf77 (patch) | |
tree | 84b1e61691b016e4a5963cd0fe91c4ebaf597a9c | |
parent | 43f52bf2e0eded5908052fd403ca45c5cecc78c7 (diff) |
[media] gspca_pac7311: Set register page at start of init
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>
-rw-r--r-- | drivers/media/video/gspca/pac7311.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/gspca/pac7311.c b/drivers/media/video/gspca/pac7311.c index a07c0893a546..910d881d3694 100644 --- a/drivers/media/video/gspca/pac7311.c +++ b/drivers/media/video/gspca/pac7311.c | |||
@@ -108,6 +108,7 @@ static const struct v4l2_pix_format vga_mode[] = { | |||
108 | #define END_OF_SEQUENCE 0 | 108 | #define END_OF_SEQUENCE 0 |
109 | 109 | ||
110 | static const __u8 init_7311[] = { | 110 | static const __u8 init_7311[] = { |
111 | 0xff, 0x01, | ||
111 | 0x78, 0x40, /* Bit_0=start stream, Bit_6=LED */ | 112 | 0x78, 0x40, /* Bit_0=start stream, Bit_6=LED */ |
112 | 0x78, 0x40, /* Bit_0=start stream, Bit_6=LED */ | 113 | 0x78, 0x40, /* Bit_0=start stream, Bit_6=LED */ |
113 | 0x78, 0x44, /* Bit_0=start stream, Bit_6=LED */ | 114 | 0x78, 0x44, /* Bit_0=start stream, Bit_6=LED */ |