Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173929
b: refs/heads/master
c: ff75e99
h: refs/heads/master
i:
  173927: 074d404
v: v3
  • Loading branch information
Marton Nemeth authored and Mauro Carvalho Chehab committed Dec 5, 2009
1 parent 1acafc5 commit b9a7137
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 518c8df77c21b7d1690dd8b96eb0e54c4ec1c9c1
refs/heads/master: ff75e99c62bcef8ccd6fb70151ad2b87aa52a165
17 changes: 9 additions & 8 deletions trunk/drivers/media/video/gspca/pac7311.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,8 @@ static const __u8 start_7302[] = {
0, 0 /* end of sequence */
};

/* page 3 - the value 0xaa says skip the index - see reg_w_page() */
#define SKIP 0xaa
/* page 3 - the value SKIP says skip the index - see reg_w_page() */
static const __u8 page3_7302[] = {
0x90, 0x40, 0x03, 0x50, 0xc2, 0x01, 0x14, 0x16,
0x14, 0x12, 0x00, 0x00, 0x00, 0x02, 0x33, 0x00,
Expand Down Expand Up @@ -383,13 +384,13 @@ static const __u8 start_7311[] = {
0, 0 /* end of sequence */
};

/* page 4 - the value 0xaa says skip the index - see reg_w_page() */
/* page 4 - the value SKIP says skip the index - see reg_w_page() */
static const __u8 page4_7311[] = {
0xaa, 0xaa, 0x04, 0x54, 0x07, 0x2b, 0x09, 0x0f,
0x09, 0x00, 0xaa, 0xaa, 0x07, 0x00, 0x00, 0x62,
0x08, 0xaa, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x03, 0xa0, 0x01, 0xf4, 0xaa,
0xaa, 0x00, 0x08, 0xaa, 0x03, 0xaa, 0x00, 0x68,
SKIP, SKIP, 0x04, 0x54, 0x07, 0x2b, 0x09, 0x0f,
0x09, 0x00, SKIP, SKIP, 0x07, 0x00, 0x00, 0x62,
0x08, SKIP, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x03, 0xa0, 0x01, 0xf4, SKIP,
SKIP, 0x00, 0x08, SKIP, 0x03, SKIP, 0x00, 0x68,
0xca, 0x10, 0x06, 0x78, 0x00, 0x00, 0x00, 0x00,
0x23, 0x28, 0x04, 0x11, 0x00, 0x00
};
Expand Down Expand Up @@ -438,7 +439,7 @@ static void reg_w_page(struct gspca_dev *gspca_dev,
int index;

for (index = 0; index < len; index++) {
if (page[index] == 0xaa) /* skip this index */
if (page[index] == SKIP) /* skip this index */
continue;
gspca_dev->usb_buf[0] = page[index];
usb_control_msg(gspca_dev->dev,
Expand Down

0 comments on commit b9a7137

Please sign in to comment.