aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/spca1528.c
diff options
context:
space:
mode:
authorJean-François Moine <moinejf@free.fr>2011-09-23 03:19:03 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-09-23 22:30:24 -0400
commit0dd826962716ff6984a14038d1604be816d759c3 (patch)
tree67cdb5076446cc3b0a82926a677991fc4cda9230 /drivers/media/video/gspca/spca1528.c
parent9ba4a4ba3c170e618f75213fb03fe2deda754195 (diff)
[media] gspca - spca1528: Add some comments and update copyright
Signed-off-by: Jean-François Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/spca1528.c')
-rw-r--r--drivers/media/video/gspca/spca1528.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/gspca/spca1528.c b/drivers/media/video/gspca/spca1528.c
index 565c2f1bdfea..f7c70a2c0778 100644
--- a/drivers/media/video/gspca/spca1528.c
+++ b/drivers/media/video/gspca/spca1528.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * spca1528 subdriver 2 * spca1528 subdriver
3 * 3 *
4 * Copyright (C) 2010 Jean-Francois Moine (http://moinejf.free.fr) 4 * Copyright (C) 2010-2011 Jean-Francois Moine (http://moinejf.free.fr)
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify 6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by 7 * it under the terms of the GNU General Public License as published by
@@ -351,7 +351,7 @@ static int sd_isoc_init(struct gspca_dev *gspca_dev)
351 mode = gspca_dev->cam.cam_mode[gspca_dev->curr_mode].priv; 351 mode = gspca_dev->cam.cam_mode[gspca_dev->curr_mode].priv;
352 reg_wb(gspca_dev, 0x25, 0x0000, 0x0004, mode); 352 reg_wb(gspca_dev, 0x25, 0x0000, 0x0004, mode);
353 reg_r(gspca_dev, 0x25, 0x0004, 1); 353 reg_r(gspca_dev, 0x25, 0x0004, 1);
354 reg_wb(gspca_dev, 0x27, 0x0000, 0x0000, 0x06); 354 reg_wb(gspca_dev, 0x27, 0x0000, 0x0000, 0x06); /* 420 */
355 reg_r(gspca_dev, 0x27, 0x0000, 1); 355 reg_r(gspca_dev, 0x27, 0x0000, 1);
356 return gspca_dev->usb_err; 356 return gspca_dev->usb_err;
357} 357}
@@ -381,7 +381,7 @@ static int sd_start(struct gspca_dev *gspca_dev)
381 381
382 /* start the capture */ 382 /* start the capture */
383 wait_status_0(gspca_dev); 383 wait_status_0(gspca_dev);
384 reg_w(gspca_dev, 0x31, 0x0000, 0x0004); 384 reg_w(gspca_dev, 0x31, 0x0000, 0x0004); /* start request */
385 wait_status_1(gspca_dev); 385 wait_status_1(gspca_dev);
386 wait_status_0(gspca_dev); 386 wait_status_0(gspca_dev);
387 msleep(200); 387 msleep(200);
@@ -394,7 +394,7 @@ static void sd_stopN(struct gspca_dev *gspca_dev)
394{ 394{
395 /* stop the capture */ 395 /* stop the capture */
396 wait_status_0(gspca_dev); 396 wait_status_0(gspca_dev);
397 reg_w(gspca_dev, 0x31, 0x0000, 0x0000); 397 reg_w(gspca_dev, 0x31, 0x0000, 0x0000); /* stop request */
398 wait_status_1(gspca_dev); 398 wait_status_1(gspca_dev);
399 wait_status_0(gspca_dev); 399 wait_status_0(gspca_dev);
400} 400}