summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2008-10-17 10:28:40 +0200
committerJean-Francois Moine <moinejf@free.fr>2008-10-17 10:28:40 +0200
commit231040087dff5af7cba45e62b8e82d5c5835f348 (patch)
treed53cdd01d36439efcf4c0977c0a59e5f70cc10f3 /linux/drivers/media/video
parentde8a0e76bac1a3cc9422b9913bb2669bf7b4f2dc (diff)
downloadmediapointer-dvb-s2-231040087dff5af7cba45e62b8e82d5c5835f348.tar.gz
mediapointer-dvb-s2-231040087dff5af7cba45e62b8e82d5c5835f348.tar.bz2
gspca: Add a stop sequence in t613.
From: Jean-Francois Moine <moinejf@free.fr> Priority: normal Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r--linux/drivers/media/video/gspca/t613.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/linux/drivers/media/video/gspca/t613.c b/linux/drivers/media/video/gspca/t613.c
index 3065a1fd5..d2d6ad9d1 100644
--- a/linux/drivers/media/video/gspca/t613.c
+++ b/linux/drivers/media/video/gspca/t613.c
@@ -880,6 +880,19 @@ static int sd_start(struct gspca_dev *gspca_dev)
return 0;
}
+static void sd_stopN(struct gspca_dev *gspca_dev)
+{
+ struct sd *sd = (struct sd *) gspca_dev;
+
+ reg_w_buf(gspca_dev, sensor_data[sd->sensor].stream,
+ sizeof sensor_data[sd->sensor].stream);
+ msleep(20);
+ reg_w_buf(gspca_dev, sensor_data[sd->sensor].stream,
+ sizeof sensor_data[sd->sensor].stream);
+ msleep(20);
+ reg_w(gspca_dev, 0x0309);
+}
+
static void sd_pkt_scan(struct gspca_dev *gspca_dev,
struct gspca_frame *frame, /* target */
__u8 *data, /* isoc packet */
@@ -1129,6 +1142,7 @@ static const struct sd_desc sd_desc = {
.config = sd_config,
.init = sd_init,
.start = sd_start,
+ .stopN = sd_stopN,
.pkt_scan = sd_pkt_scan,
.querymenu = sd_querymenu,
};