aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/gspca/t613.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/media/video/gspca/t613.c b/drivers/media/video/gspca/t613.c
index b2823700bd93..eac245d7a756 100644
--- a/drivers/media/video/gspca/t613.c
+++ b/drivers/media/video/gspca/t613.c
@@ -876,6 +876,19 @@ static int sd_start(struct gspca_dev *gspca_dev)
876 return 0; 876 return 0;
877} 877}
878 878
879static void sd_stopN(struct gspca_dev *gspca_dev)
880{
881 struct sd *sd = (struct sd *) gspca_dev;
882
883 reg_w_buf(gspca_dev, sensor_data[sd->sensor].stream,
884 sizeof sensor_data[sd->sensor].stream);
885 msleep(20);
886 reg_w_buf(gspca_dev, sensor_data[sd->sensor].stream,
887 sizeof sensor_data[sd->sensor].stream);
888 msleep(20);
889 reg_w(gspca_dev, 0x0309);
890}
891
879static void sd_pkt_scan(struct gspca_dev *gspca_dev, 892static void sd_pkt_scan(struct gspca_dev *gspca_dev,
880 struct gspca_frame *frame, /* target */ 893 struct gspca_frame *frame, /* target */
881 __u8 *data, /* isoc packet */ 894 __u8 *data, /* isoc packet */
@@ -1125,6 +1138,7 @@ static const struct sd_desc sd_desc = {
1125 .config = sd_config, 1138 .config = sd_config,
1126 .init = sd_init, 1139 .init = sd_init,
1127 .start = sd_start, 1140 .start = sd_start,
1141 .stopN = sd_stopN,
1128 .pkt_scan = sd_pkt_scan, 1142 .pkt_scan = sd_pkt_scan,
1129 .querymenu = sd_querymenu, 1143 .querymenu = sd_querymenu,
1130}; 1144};