diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-11-11 12:15:34 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:02:08 -0500 |
commit | 7d497f8afa80128bb99a425a6d7a766a863128a5 (patch) | |
tree | d264804a02bf1cd13ccfd3ef4c03de7c7a1b2191 /drivers/media/video/em28xx/em28xx.h | |
parent | cb77d010221e66c63f4a71546fed73be9b12b9a3 (diff) |
V4L/DVB (6587): Cleanup at tv norm selection
With the conversion to the vidio_ioctl2, tvnorms array is not required anymore.
Also, removed some code from V4L1 time (VIDEO_MODE_foo), specied at the
non-used video_decoder.h.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/em28xx/em28xx.h')
-rw-r--r-- | drivers/media/video/em28xx/em28xx.h | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/drivers/media/video/em28xx/em28xx.h b/drivers/media/video/em28xx/em28xx.h index f355075d50de..8d045867dac7 100644 --- a/drivers/media/video/em28xx/em28xx.h +++ b/drivers/media/video/em28xx/em28xx.h | |||
@@ -167,7 +167,6 @@ enum em28xx_decoder { | |||
167 | struct em28xx_board { | 167 | struct em28xx_board { |
168 | char *name; | 168 | char *name; |
169 | int vchannels; | 169 | int vchannels; |
170 | int norm; | ||
171 | int tuner_type; | 170 | int tuner_type; |
172 | 171 | ||
173 | /* i2c flags */ | 172 | /* i2c flags */ |
@@ -203,14 +202,6 @@ enum em28xx_dev_state { | |||
203 | DEV_MISCONFIGURED = 0x04, | 202 | DEV_MISCONFIGURED = 0x04, |
204 | }; | 203 | }; |
205 | 204 | ||
206 | /* tvnorms */ | ||
207 | struct em28xx_tvnorm { | ||
208 | char *name; | ||
209 | v4l2_std_id id; | ||
210 | /* mode for saa7113h */ | ||
211 | int mode; | ||
212 | }; | ||
213 | |||
214 | /* main device struct */ | 205 | /* main device struct */ |
215 | struct em28xx { | 206 | struct em28xx { |
216 | /* generic device properties */ | 207 | /* generic device properties */ |
@@ -239,7 +230,7 @@ struct em28xx { | |||
239 | /* video for linux */ | 230 | /* video for linux */ |
240 | int users; /* user count for exclusive use */ | 231 | int users; /* user count for exclusive use */ |
241 | struct video_device *vdev; /* video for linux device struct */ | 232 | struct video_device *vdev; /* video for linux device struct */ |
242 | struct em28xx_tvnorm *tvnorm; /* selected tv norm */ | 233 | v4l2_std_id norm; /* selected tv norm */ |
243 | int ctl_freq; /* selected frequency */ | 234 | int ctl_freq; /* selected frequency */ |
244 | unsigned int ctl_input; /* selected input */ | 235 | unsigned int ctl_input; /* selected input */ |
245 | unsigned int ctl_ainput; /* slected audio input */ | 236 | unsigned int ctl_ainput; /* slected audio input */ |
@@ -522,18 +513,21 @@ inline static int em28xx_gamma_set(struct em28xx *dev, s32 val) | |||
522 | /*FIXME: maxw should be dependent of alt mode */ | 513 | /*FIXME: maxw should be dependent of alt mode */ |
523 | inline static unsigned int norm_maxw(struct em28xx *dev) | 514 | inline static unsigned int norm_maxw(struct em28xx *dev) |
524 | { | 515 | { |
525 | switch(dev->model){ | 516 | switch (dev->model) { |
526 | case (EM2820_BOARD_MSI_VOX_USB_2): return(640); | 517 | case EM2820_BOARD_MSI_VOX_USB_2: |
527 | default: return(720); | 518 | return 640; |
519 | default: | ||
520 | return 720; | ||
528 | } | 521 | } |
529 | } | 522 | } |
530 | 523 | ||
531 | inline static unsigned int norm_maxh(struct em28xx *dev) | 524 | inline static unsigned int norm_maxh(struct em28xx *dev) |
532 | { | 525 | { |
533 | switch(dev->model){ | 526 | switch (dev->model) { |
534 | case (EM2820_BOARD_MSI_VOX_USB_2): return(480); | 527 | case EM2820_BOARD_MSI_VOX_USB_2: |
535 | default: return (dev->tvnorm->id & V4L2_STD_625_50) ? 576 : 480; | 528 | return 480; |
529 | default: | ||
530 | return (dev->norm & V4L2_STD_625_50) ? 576 : 480; | ||
536 | } | 531 | } |
537 | } | 532 | } |
538 | |||
539 | #endif | 533 | #endif |