diff options
author | Mike Isely <isely@pobox.com> | 2008-04-22 13:45:40 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-24 13:07:47 -0400 |
commit | e8f5bacfcf2ba9a98674f3cd51b63020920e16aa (patch) | |
tree | f46cd2df55e5087cd53f461f4469232d140e05bd /drivers/media/video/pvrusb2/pvrusb2-devattr.h | |
parent | 84147f3dd9187cd0c9810801be1282419a8ea00a (diff) |
V4L/DVB (7308): pvrusb2: Define digital control scheme device attributes
Unlike analog control, control of the digital side is not nearly as
uniform among different devices. So we have to specify the correct
digital control scheme as a new device attribute.
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-devattr.h')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-devattr.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-devattr.h b/drivers/media/video/pvrusb2/pvrusb2-devattr.h index b564121803b..4e4798d6139 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-devattr.h +++ b/drivers/media/video/pvrusb2/pvrusb2-devattr.h | |||
@@ -39,6 +39,10 @@ struct pvr2_string_table { | |||
39 | #define PVR2_ROUTING_SCHEME_HAUPPAUGE 0 | 39 | #define PVR2_ROUTING_SCHEME_HAUPPAUGE 0 |
40 | #define PVR2_ROUTING_SCHEME_GOTVIEW 1 | 40 | #define PVR2_ROUTING_SCHEME_GOTVIEW 1 |
41 | 41 | ||
42 | #define PVR2_DIGITAL_SCHEME_NONE 0 | ||
43 | #define PVR2_DIGITAL_SCHEME_HAUPPAUGE 1 | ||
44 | #define PVR2_DIGITAL_SCHEME_ONAIR 2 | ||
45 | |||
42 | /* This describes a particular hardware type (except for the USB device ID | 46 | /* This describes a particular hardware type (except for the USB device ID |
43 | which must live in a separate structure due to environmental | 47 | which must live in a separate structure due to environmental |
44 | constraints). See the top of pvrusb2-hdw.c for where this is | 48 | constraints). See the top of pvrusb2-hdw.c for where this is |
@@ -66,6 +70,13 @@ struct pvr2_device_desc { | |||
66 | drivers (search for things which touch this field). */ | 70 | drivers (search for things which touch this field). */ |
67 | unsigned int signal_routing_scheme; | 71 | unsigned int signal_routing_scheme; |
68 | 72 | ||
73 | /* Control scheme to use if there is a digital tuner. This | ||
74 | contains one of PVR2_DIGITAL_SCHEME_XXX. This is an arbitrary | ||
75 | integer scheme id; its meaning is contained entirely within the | ||
76 | driver and is interpreted by logic which must control the | ||
77 | streaming pathway (search for things which touch this field). */ | ||
78 | unsigned int digital_control_scheme; | ||
79 | |||
69 | /* V4L tuner type ID to use with this device (only used if the | 80 | /* V4L tuner type ID to use with this device (only used if the |
70 | driver could not discover the type any other way). */ | 81 | driver could not discover the type any other way). */ |
71 | int default_tuner_type; | 82 | int default_tuner_type; |
@@ -103,10 +114,11 @@ struct pvr2_device_desc { | |||
103 | commands. */ | 114 | commands. */ |
104 | char flag_has_hauppauge_custom_ir; | 115 | char flag_has_hauppauge_custom_ir; |
105 | 116 | ||
106 | /* These bits define which kinds of sources the device can handle. */ | 117 | /* These bits define which kinds of sources the device can handle. |
118 | Note: Digital tuner presence is inferred by the | ||
119 | digital_control_scheme enumeration. */ | ||
107 | char flag_has_fmradio; /* Has FM radio receiver */ | 120 | char flag_has_fmradio; /* Has FM radio receiver */ |
108 | char flag_has_analogtuner; /* Has analog tuner */ | 121 | char flag_has_analogtuner; /* Has analog tuner */ |
109 | char flag_has_digitaltuner; /* Has digital tuner */ | ||
110 | char flag_has_composite; /* Has composite input */ | 122 | char flag_has_composite; /* Has composite input */ |
111 | char flag_has_svideo; /* Has s-video input */ | 123 | char flag_has_svideo; /* Has s-video input */ |
112 | }; | 124 | }; |