Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174127
b: refs/heads/master
c: 4d0fc03
h: refs/heads/master
i:
  174125: 11de37f
  174123: 26cf452
  174119: a5bb4f9
  174111: 49e8390
v: v3
  • Loading branch information
Márton Németh authored and Mauro Carvalho Chehab committed Dec 5, 2009
1 parent ed4d28a commit a403657
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 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: f8b0bca1a7ea8479490bcc06835ccbf590ba2c4e
refs/heads/master: 4d0fc03a76d96fff0cf6c815702ae04896b74cde
31 changes: 21 additions & 10 deletions trunk/drivers/media/video/gspca/pac7311.c
Original file line number Diff line number Diff line change
Expand Up @@ -569,16 +569,27 @@ static int sd_start(struct gspca_dev *gspca_dev)

static void sd_stopN(struct gspca_dev *gspca_dev)
{
reg_w(gspca_dev, 0xff, 0x04);
reg_w(gspca_dev, 0x27, 0x80);
reg_w(gspca_dev, 0x28, 0xca);
reg_w(gspca_dev, 0x29, 0x53);
reg_w(gspca_dev, 0x2a, 0x0e);
reg_w(gspca_dev, 0xff, 0x01);
reg_w(gspca_dev, 0x3e, 0x20);
reg_w(gspca_dev, 0x78, 0x44); /* Bit_0=start stream, Bit_6=LED */
reg_w(gspca_dev, 0x78, 0x44); /* Bit_0=start stream, Bit_6=LED */
reg_w(gspca_dev, 0x78, 0x44); /* Bit_0=start stream, Bit_6=LED */
int ret;

ret = reg_w(gspca_dev, 0xff, 0x04);
if (0 <= ret)
ret = reg_w(gspca_dev, 0x27, 0x80);
if (0 <= ret)
ret = reg_w(gspca_dev, 0x28, 0xca);
if (0 <= ret)
ret = reg_w(gspca_dev, 0x29, 0x53);
if (0 <= ret)
ret = reg_w(gspca_dev, 0x2a, 0x0e);
if (0 <= ret)
ret = reg_w(gspca_dev, 0xff, 0x01);
if (0 <= ret)
ret = reg_w(gspca_dev, 0x3e, 0x20);
if (0 <= ret)
ret = reg_w(gspca_dev, 0x78, 0x44); /* Bit_0=start stream, Bit_6=LED */
if (0 <= ret)
ret = reg_w(gspca_dev, 0x78, 0x44); /* Bit_0=start stream, Bit_6=LED */
if (0 <= ret)
ret = reg_w(gspca_dev, 0x78, 0x44); /* Bit_0=start stream, Bit_6=LED */
}

/* called on streamoff with alt 0 and on disconnect for 7311 */
Expand Down

0 comments on commit a403657

Please sign in to comment.