diff options
author | Mike Isely <isely@pobox.com> | 2006-12-27 20:28:54 -0600 |
---|---|---|
committer | Mike Isely <isely@pobox.com> | 2006-12-27 20:28:54 -0600 |
commit | 77e20d6a82bf9fddc65869883b6a5b4c54e75ec2 (patch) | |
tree | 843824c7845bcb48dc2b00345ef45626754574e7 /linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h | |
parent | 99f9ef930137ebd1f212ab52256394694fecfcdc (diff) | |
download | mediapointer-dvb-s2-77e20d6a82bf9fddc65869883b6a5b4c54e75ec2.tar.gz mediapointer-dvb-s2-77e20d6a82bf9fddc65869883b6a5b4c54e75ec2.tar.bz2 |
pvrusb2: Newer frequency range checking
From: Mike Isely <isely@pobox.com>
Implement new method for doing integer range checking, so that we can
more intelligently range-check radio and tv ranges at once.
Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h')
-rw-r--r-- | linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h index d366cff16..ad73c3812 100644 --- a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h +++ b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h @@ -65,6 +65,7 @@ struct pvr2_decoder; typedef int (*pvr2_ctlf_is_dirty)(struct pvr2_ctrl *); typedef void (*pvr2_ctlf_clear_dirty)(struct pvr2_ctrl *); +typedef int (*pvr2_ctlf_check_value)(struct pvr2_ctrl *,int); typedef int (*pvr2_ctlf_get_value)(struct pvr2_ctrl *,int *); typedef int (*pvr2_ctlf_set_value)(struct pvr2_ctrl *,int msk,int val); typedef int (*pvr2_ctlf_val_to_sym)(struct pvr2_ctrl *,int msk,int val, @@ -88,6 +89,7 @@ struct pvr2_ctl_info { pvr2_ctlf_get_value get_min_value; /* Get minimum allowed value */ pvr2_ctlf_get_value get_max_value; /* Get maximum allowed value */ pvr2_ctlf_set_value set_value; /* Set its value */ + pvr2_ctlf_check_value check_value; /* Check that value is valid */ pvr2_ctlf_val_to_sym val_to_sym; /* Custom convert value->symbol */ pvr2_ctlf_sym_to_val sym_to_val; /* Custom convert symbol->value */ pvr2_ctlf_is_dirty is_dirty; /* Return true if dirty */ |