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 | 62433e312076d4ff4f2df357b2a6fac29974344a (patch) | |
tree | a4eb42c0ffd1b517d8dbf4b68b37603b91ad51a9 /drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h | |
parent | e8f5bacfcf2ba9a98674f3cd51b63020920e16aa (diff) |
V4L/DVB (7309): pvrusb2: Enhance core logic to also control digital streaming
This is a major pvrusb2 change. The driver core has an algorithm that
is used to cleanly sequence the changes needed to enable / disable
video streaming. The algorithm had originally been written for analog
streaming, but when in digital mode the pipeline is considerably
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h b/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h index 4971335c46d3..af06e6c4b8d5 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h +++ b/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h | |||
@@ -163,6 +163,11 @@ struct pvr2_decoder_ctrl { | |||
163 | #define FW1_STATE_RELOAD 3 | 163 | #define FW1_STATE_RELOAD 3 |
164 | #define FW1_STATE_OK 4 | 164 | #define FW1_STATE_OK 4 |
165 | 165 | ||
166 | /* What state the device is in if it is a hybrid */ | ||
167 | #define PVR2_PATHWAY_UNKNOWN 0 | ||
168 | #define PVR2_PATHWAY_ANALOG 1 | ||
169 | #define PVR2_PATHWAY_DIGITAL 2 | ||
170 | |||
166 | typedef int (*pvr2_i2c_func)(struct pvr2_hdw *,u8,u8 *,u16,u8 *, u16); | 171 | typedef int (*pvr2_i2c_func)(struct pvr2_hdw *,u8,u8 *,u16,u8 *, u16); |
167 | #define PVR2_I2C_FUNC_CNT 128 | 172 | #define PVR2_I2C_FUNC_CNT 128 |
168 | 173 | ||
@@ -229,6 +234,7 @@ struct pvr2_hdw { | |||
229 | 234 | ||
230 | /* Bits of state that describe what is going on with various parts | 235 | /* Bits of state that describe what is going on with various parts |
231 | of the driver. */ | 236 | of the driver. */ |
237 | int state_pathway_ok; /* Pathway config is ok */ | ||
232 | int state_encoder_ok; /* Encoder is operational */ | 238 | int state_encoder_ok; /* Encoder is operational */ |
233 | int state_encoder_run; /* Encoder is running */ | 239 | int state_encoder_run; /* Encoder is running */ |
234 | int state_encoder_config; /* Encoder is configured */ | 240 | int state_encoder_config; /* Encoder is configured */ |
@@ -267,6 +273,7 @@ struct pvr2_hdw { | |||
267 | int flag_disconnected; /* flag_ok == 0 due to disconnect */ | 273 | int flag_disconnected; /* flag_ok == 0 due to disconnect */ |
268 | int flag_init_ok; /* true if structure is fully initialized */ | 274 | int flag_init_ok; /* true if structure is fully initialized */ |
269 | int fw1_state; /* current situation with fw1 */ | 275 | int fw1_state; /* current situation with fw1 */ |
276 | int pathway_state; /* one of PVR2_PATHWAY_xxx */ | ||
270 | int flag_decoder_missed;/* We've noticed missing decoder */ | 277 | int flag_decoder_missed;/* We've noticed missing decoder */ |
271 | int flag_tripped; /* Indicates overall failure to start */ | 278 | int flag_tripped; /* Indicates overall failure to start */ |
272 | 279 | ||