Skip to content

Commit

Permalink
[media] gspca - spca1528: Don't force the USB transfer alternate setting
Browse files Browse the repository at this point in the history
As the choice of the alternate setting has been enhanced in the gspca main,
forcing its number here is no more useful.

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Jean-François Moine authored and Mauro Carvalho Chehab committed Sep 24, 2011
1 parent 3e12950 commit 6507b42
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/media/video/gspca/spca1528.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
sd->color = COLOR_DEF;
sd->sharpness = SHARPNESS_DEF;

gspca_dev->nbalt = 4; /* use alternate setting 3 */

return 0;
}

Expand Down Expand Up @@ -353,6 +351,10 @@ static int sd_isoc_init(struct gspca_dev *gspca_dev)
reg_r(gspca_dev, 0x25, 0x0004, 1);
reg_wb(gspca_dev, 0x27, 0x0000, 0x0000, 0x06); /* 420 */
reg_r(gspca_dev, 0x27, 0x0000, 1);

/* not useful..
gspca_dev->alt = 4; * use alternate setting 3 */

return gspca_dev->usb_err;
}

Expand Down

0 comments on commit 6507b42

Please sign in to comment.