diff options
author | vdb128@picaros.org <vdb128@picaros.org> | 2008-08-30 17:26:39 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-12 07:36:57 -0400 |
commit | e784bfb93c155ba4b354452c69ac02a29d336d97 (patch) | |
tree | da8d1a7ec7803cef22510c505307fd222f05d912 /drivers/media/video/pvrusb2/pvrusb2-i2c-chips-v4l2.c | |
parent | fe15f13679bf52bb5c8acb8b4847e6d73ba62c17 (diff) |
V4L/DVB (8896): pvrusb2: Implement crop support
Implement pvrusb2 driver plumbing to support cropping. Submitted by a
pvrusb2 user.
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-i2c-chips-v4l2.c')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-i2c-chips-v4l2.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-i2c-chips-v4l2.c b/drivers/media/video/pvrusb2/pvrusb2-i2c-chips-v4l2.c index ccdb429fc7af..94a47718e88e 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-i2c-chips-v4l2.c +++ b/drivers/media/video/pvrusb2/pvrusb2-i2c-chips-v4l2.c | |||
@@ -37,8 +37,9 @@ | |||
37 | #define OP_VOLUME 3 | 37 | #define OP_VOLUME 3 |
38 | #define OP_FREQ 4 | 38 | #define OP_FREQ 4 |
39 | #define OP_AUDIORATE 5 | 39 | #define OP_AUDIORATE 5 |
40 | #define OP_SIZE 6 | 40 | #define OP_CROP 6 |
41 | #define OP_LOG 7 | 41 | #define OP_SIZE 7 |
42 | #define OP_LOG 8 | ||
42 | 43 | ||
43 | static const struct pvr2_i2c_op * const ops[] = { | 44 | static const struct pvr2_i2c_op * const ops[] = { |
44 | [OP_STANDARD] = &pvr2_i2c_op_v4l2_standard, | 45 | [OP_STANDARD] = &pvr2_i2c_op_v4l2_standard, |
@@ -46,6 +47,7 @@ static const struct pvr2_i2c_op * const ops[] = { | |||
46 | [OP_BCSH] = &pvr2_i2c_op_v4l2_bcsh, | 47 | [OP_BCSH] = &pvr2_i2c_op_v4l2_bcsh, |
47 | [OP_VOLUME] = &pvr2_i2c_op_v4l2_volume, | 48 | [OP_VOLUME] = &pvr2_i2c_op_v4l2_volume, |
48 | [OP_FREQ] = &pvr2_i2c_op_v4l2_frequency, | 49 | [OP_FREQ] = &pvr2_i2c_op_v4l2_frequency, |
50 | [OP_CROP] = &pvr2_i2c_op_v4l2_crop, | ||
49 | [OP_SIZE] = &pvr2_i2c_op_v4l2_size, | 51 | [OP_SIZE] = &pvr2_i2c_op_v4l2_size, |
50 | [OP_LOG] = &pvr2_i2c_op_v4l2_log, | 52 | [OP_LOG] = &pvr2_i2c_op_v4l2_log, |
51 | }; | 53 | }; |
@@ -59,6 +61,7 @@ void pvr2_i2c_probe(struct pvr2_hdw *hdw,struct pvr2_i2c_client *cp) | |||
59 | (1 << OP_BCSH) | | 61 | (1 << OP_BCSH) | |
60 | (1 << OP_VOLUME) | | 62 | (1 << OP_VOLUME) | |
61 | (1 << OP_FREQ) | | 63 | (1 << OP_FREQ) | |
64 | (1 << OP_CROP) | | ||
62 | (1 << OP_SIZE) | | 65 | (1 << OP_SIZE) | |
63 | (1 << OP_LOG)); | 66 | (1 << OP_LOG)); |
64 | cp->status_poll = pvr2_v4l2_cmd_status_poll; | 67 | cp->status_poll = pvr2_v4l2_cmd_status_poll; |