aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/gspca.h
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2012-05-06 08:28:17 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-05-14 08:22:50 -0400
commit62bba5dd8181bed282967f1054ed5749b2c499f9 (patch)
treeba82dfdf5fb88e257a80b3392ddc0652f577f557 /drivers/media/video/gspca/gspca.h
parentceede9fa8939e40ad0ddb4ad1355f45c6f1d3478 (diff)
[media] gspca: Allow subdrivers to use the control framework
Make the necessary changes to allow subdrivers to use the control framework. This does not add control event support, that comes later. It add a init_control cam_op that is called after init in probe that allows the subdriver to set up the controls. HdG: Call v4l2_ctrl_handler_setup from resume instead of gspca_set_default_mode, as we just want to resend the current ctrl values to the device. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/gspca.h')
-rw-r--r--drivers/media/video/gspca/gspca.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/gspca/gspca.h b/drivers/media/video/gspca/gspca.h
index 589009f4496f..81404160ca43 100644
--- a/drivers/media/video/gspca/gspca.h
+++ b/drivers/media/video/gspca/gspca.h
@@ -115,6 +115,7 @@ struct sd_desc {
115/* mandatory operations */ 115/* mandatory operations */
116 cam_cf_op config; /* called on probe */ 116 cam_cf_op config; /* called on probe */
117 cam_op init; /* called on probe and resume */ 117 cam_op init; /* called on probe and resume */
118 cam_op init_controls; /* called on probe */
118 cam_op start; /* called on stream on after URBs creation */ 119 cam_op start; /* called on stream on after URBs creation */
119 cam_pkt_op pkt_scan; 120 cam_pkt_op pkt_scan;
120/* optional operations */ 121/* optional operations */