Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3d217c86 authored by Jean-François Moine's avatar Jean-François Moine Committed by Mauro Carvalho Chehab
Browse files

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: default avatarJean-François Moine <moinejf@free.fr>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent bb44f568
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3520,8 +3520,8 @@ static int sd_init(struct gspca_dev *gspca_dev)
			if (gspca_dev->usb_buf[0] != 0) {
				reg_w(gspca_dev, 0xa0, 0x26, 0xb300);
				reg_w(gspca_dev, 0xa0, 0x04, 0xb300);
				reg_w(gspca_dev, 0xa0, 0x00, 0xb300);
			}
			reg_w(gspca_dev, 0xa0, 0x00, 0xb300);
		}
	}
	return gspca_dev->usb_err;