diff options
author | Jean-François Moine <moinejf@free.fr> | 2010-07-27 04:34:49 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-08-08 22:42:53 -0400 |
commit | 3d217c8656842c77d6f33329a034102157363c8d (patch) | |
tree | c18d2850197aa512acc68847f58583cb08ce192b | |
parent | bb44f5682b7b7829cf010d6dad9c75f58d1f767b (diff) |
V4L/DVB: gspca - vc032x: Force main register write at probe time (poxxxx)
On laptops, the webcam sometimes disconnects when writing the first main
register (b300). This patch prevents the creation of a new /dev/video<n>
on streaming start.
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/video/gspca/vc032x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/gspca/vc032x.c b/drivers/media/video/gspca/vc032x.c index 48a8af3078a3..b16fd47e8ced 100644 --- a/drivers/media/video/gspca/vc032x.c +++ b/drivers/media/video/gspca/vc032x.c | |||
@@ -3520,8 +3520,8 @@ static int sd_init(struct gspca_dev *gspca_dev) | |||
3520 | if (gspca_dev->usb_buf[0] != 0) { | 3520 | if (gspca_dev->usb_buf[0] != 0) { |
3521 | reg_w(gspca_dev, 0xa0, 0x26, 0xb300); | 3521 | reg_w(gspca_dev, 0xa0, 0x26, 0xb300); |
3522 | reg_w(gspca_dev, 0xa0, 0x04, 0xb300); | 3522 | reg_w(gspca_dev, 0xa0, 0x04, 0xb300); |
3523 | reg_w(gspca_dev, 0xa0, 0x00, 0xb300); | ||
3524 | } | 3523 | } |
3524 | reg_w(gspca_dev, 0xa0, 0x00, 0xb300); | ||
3525 | } | 3525 | } |
3526 | } | 3526 | } |
3527 | return gspca_dev->usb_err; | 3527 | return gspca_dev->usb_err; |