diff options
author | Mike Isely <isely@pobox.com> | 2007-01-19 22:09:47 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-02-21 10:34:38 -0500 |
commit | 18103c57b0168ebc0401702d483fe131f0aecc7a (patch) | |
tree | 1d57e73217254121f0c023009c510a4936332d64 /drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h | |
parent | af78a48b69231e129db0e1db24053da22f8eed6d (diff) |
V4L/DVB (5081): Pvrusb2: VIDIOC_G_TUNER cleanup
Clean up use of VIDIOC_G_TUNER; we now correctly gather info from all
the I2C client modules. Also abide by V4L2_TUNER_CAP_LOW
appropriately.
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-hdw-internal.h')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h b/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h index b9df52c882a..bc911ff7530 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h +++ b/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h | |||
@@ -137,17 +137,10 @@ struct pvr2_ctrl { | |||
137 | }; | 137 | }; |
138 | 138 | ||
139 | 139 | ||
140 | struct pvr2_audio_stat { | ||
141 | void *ctxt; | ||
142 | void (*detach)(void *); | ||
143 | int (*status)(void *); | ||
144 | }; | ||
145 | |||
146 | struct pvr2_decoder_ctrl { | 140 | struct pvr2_decoder_ctrl { |
147 | void *ctxt; | 141 | void *ctxt; |
148 | void (*detach)(void *); | 142 | void (*detach)(void *); |
149 | void (*enable)(void *,int); | 143 | void (*enable)(void *,int); |
150 | int (*tuned)(void *); | ||
151 | void (*force_reset)(void *); | 144 | void (*force_reset)(void *); |
152 | }; | 145 | }; |
153 | 146 | ||
@@ -266,6 +259,10 @@ struct pvr2_hdw { | |||
266 | unsigned int freqSelector; /* 0=radio 1=television */ | 259 | unsigned int freqSelector; /* 0=radio 1=television */ |
267 | int freqDirty; | 260 | int freqDirty; |
268 | 261 | ||
262 | /* Current tuner info - this information is polled from the I2C bus */ | ||
263 | struct v4l2_tuner tuner_signal_info; | ||
264 | int tuner_signal_stale; | ||
265 | |||
269 | /* Video standard handling */ | 266 | /* Video standard handling */ |
270 | v4l2_std_id std_mask_eeprom; // Hardware supported selections | 267 | v4l2_std_id std_mask_eeprom; // Hardware supported selections |
271 | v4l2_std_id std_mask_avail; // Which standards we may select from | 268 | v4l2_std_id std_mask_avail; // Which standards we may select from |
@@ -297,11 +294,6 @@ struct pvr2_hdw { | |||
297 | 294 | ||
298 | enum pvr2_config config; | 295 | enum pvr2_config config; |
299 | 296 | ||
300 | /* Information about what audio signal we're hearing */ | ||
301 | int flag_stereo; | ||
302 | int flag_bilingual; | ||
303 | struct pvr2_audio_stat *audio_stat; | ||
304 | |||
305 | /* Control state needed for cx2341x module */ | 297 | /* Control state needed for cx2341x module */ |
306 | struct cx2341x_mpeg_params enc_cur_state; | 298 | struct cx2341x_mpeg_params enc_cur_state; |
307 | struct cx2341x_mpeg_params enc_ctl_state; | 299 | struct cx2341x_mpeg_params enc_ctl_state; |