aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/benq.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/gspca/benq.c')
-rw-r--r--drivers/media/video/gspca/benq.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/media/video/gspca/benq.c b/drivers/media/video/gspca/benq.c
index 636627b57dc9..9769f17915c0 100644
--- a/drivers/media/video/gspca/benq.c
+++ b/drivers/media/video/gspca/benq.c
@@ -76,7 +76,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
76 gspca_dev->cam.cam_mode = vga_mode; 76 gspca_dev->cam.cam_mode = vga_mode;
77 gspca_dev->cam.nmodes = ARRAY_SIZE(vga_mode); 77 gspca_dev->cam.nmodes = ARRAY_SIZE(vga_mode);
78 gspca_dev->cam.no_urb_create = 1; 78 gspca_dev->cam.no_urb_create = 1;
79 gspca_dev->cam.reverse_alts = 1;
80 return 0; 79 return 0;
81} 80}
82 81
@@ -135,13 +134,17 @@ static int sd_start(struct gspca_dev *gspca_dev)
135 134
136static void sd_stopN(struct gspca_dev *gspca_dev) 135static void sd_stopN(struct gspca_dev *gspca_dev)
137{ 136{
137 struct usb_interface *intf;
138
138 reg_w(gspca_dev, 0x003c, 0x0003); 139 reg_w(gspca_dev, 0x003c, 0x0003);
139 reg_w(gspca_dev, 0x003c, 0x0004); 140 reg_w(gspca_dev, 0x003c, 0x0004);
140 reg_w(gspca_dev, 0x003c, 0x0005); 141 reg_w(gspca_dev, 0x003c, 0x0005);
141 reg_w(gspca_dev, 0x003c, 0x0006); 142 reg_w(gspca_dev, 0x003c, 0x0006);
142 reg_w(gspca_dev, 0x003c, 0x0007); 143 reg_w(gspca_dev, 0x003c, 0x0007);
144
145 intf = usb_ifnum_to_if(gspca_dev->dev, gspca_dev->iface);
143 usb_set_interface(gspca_dev->dev, gspca_dev->iface, 146 usb_set_interface(gspca_dev->dev, gspca_dev->iface,
144 gspca_dev->nbalt - 1); 147 intf->num_altsetting - 1);
145} 148}
146 149
147static void sd_pkt_scan(struct gspca_dev *gspca_dev, 150static void sd_pkt_scan(struct gspca_dev *gspca_dev,