Skip to contentSkip to conversation

gspca pac7302: remove redundant stream off command

PATCH New Németh Márton 1 participant 1 message Nov 7, 2009 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gspca pac7302: remove redundant stream off command

From: Márton Németh <[email protected]>

The stream off command is sent to the device twice, one is enough.

The patch was tested together with Labtec Webcam 2200 (USB ID 093a:2626).

---

linux/drivers/media/video/gspca/pac7302.c +1 -1
diff -r 40705fec2fb2 linux/drivers/media/video/gspca/pac7302.c
@@ -627,8 +627,8 @@
 
 static void sd_stopN(struct gspca_dev *gspca_dev)
 {
+	/* stop stream */
 	reg_w(gspca_dev, 0xff, 0x01);
-	reg_w(gspca_dev, 0x78, 0x00);
 	reg_w(gspca_dev, 0x78, 0x00);
 }