dect
/
linux-2.6
Archived
13
0
Fork 0

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

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Jean-François Moine 2010-11-11 06:20:42 -03:00 committed by Mauro Carvalho Chehab
parent 14653e64e9
commit d65174c06f
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -549,10 +549,8 @@ 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 */
}
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