Skip to content

Commit

Permalink
V4L/DVB (8900): pvrusb2: Implement cropping pass through
Browse files Browse the repository at this point in the history
This builds upon the previous pvrusb2 change to more formally
implement full cropping support.  This enables access from the
driver's V4L interface, and enables access to full capabilities from
sysfs as well.  Note that this is only effective when in analog mode.
It also will only work when the underlying digitizer's driver (saa7115
or cx25840 depending on the hardware) also implements the appropriate
functions.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mike Isely authored and Mauro Carvalho Chehab committed Oct 12, 2008
1 parent 0b7c2c9 commit 432907f
Show file tree
Hide file tree
Showing 6 changed files with 383 additions and 67 deletions.
5 changes: 4 additions & 1 deletion drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,10 @@ struct pvr2_hdw {
struct v4l2_tuner tuner_signal_info;
int tuner_signal_stale;

/* Cropping capability info */
struct v4l2_cropcap cropcap_info;
int cropcap_stale;

/* Video standard handling */
v4l2_std_id std_mask_eeprom; // Hardware supported selections
v4l2_std_id std_mask_avail; // Which standards we may select from
Expand All @@ -320,7 +324,6 @@ struct pvr2_hdw {
struct pvr2_ctl_info std_info_cur;
struct v4l2_standard *std_defs;
const char **std_enum_names;
struct v4l2_cropcap cropcap;

// Generated string names, one per actual V4L2 standard
const char *std_mask_ptrs[32];
Expand Down
Loading

0 comments on commit 432907f

Please sign in to comment.