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

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

[media] gspca - ov519: Don't do USB exchanges after disconnection

parent 14653e64
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3937,6 +3937,8 @@ static void sd_stop0(struct gspca_dev *gspca_dev)
{
	struct sd *sd = (struct sd *) gspca_dev;

	if (!sd->gspca_dev.present)
		return;
	if (sd->bridge == BRIDGE_W9968CF)
		w9968cf_stop0(sd);

+2 −4
Original line number Diff line number Diff line
@@ -549,11 +549,9 @@ static int w9968cf_mode_init_regs(struct sd *sd)

static void w9968cf_stop0(struct sd *sd)
{
	if (sd->gspca_dev.present) {
	reg_w(sd, 0x39, 0x0000); /* disable JPEG encoder */
	reg_w(sd, 0x16, 0x0000); /* stop video capture */
}
}

/* The w9968cf docs say that a 0 sized packet means EOF (and also SOF
   for the next frame). This seems to simply not be true when operating