diff options
author | Frank Schaefer <fschaefer.oss@googlemail.com> | 2014-03-24 15:33:14 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-05-23 12:14:53 -0400 |
commit | 753aee7738ed2ee8c810524ee32b556ac7617f2e (patch) | |
tree | 06d6bfb97f0e07606afa4e79529b31d69609349d /drivers/media/usb/em28xx/em28xx.h | |
parent | 27a36df63b5befa3b142d4aef54f3a240c8bd977 (diff) |
[media] em28xx: move v4l2 frame resolutions and scale data from struct em28xx to struct v4l2
The em28xx scaler data are used only for analog video. Move them to
struct em28xx_v4l2.
Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/usb/em28xx/em28xx.h')
-rw-r--r-- | drivers/media/usb/em28xx/em28xx.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/drivers/media/usb/em28xx/em28xx.h b/drivers/media/usb/em28xx/em28xx.h index 71d88570395a..a1b76f796f55 100644 --- a/drivers/media/usb/em28xx/em28xx.h +++ b/drivers/media/usb/em28xx/em28xx.h | |||
@@ -515,6 +515,14 @@ struct em28xx_v4l2 { | |||
515 | struct vb2_queue vb_vbiq; | 515 | struct vb2_queue vb_vbiq; |
516 | struct mutex vb_queue_lock; | 516 | struct mutex vb_queue_lock; |
517 | struct mutex vb_vbi_queue_lock; | 517 | struct mutex vb_vbi_queue_lock; |
518 | |||
519 | /* Frame properties */ | ||
520 | int width; /* current frame width */ | ||
521 | int height; /* current frame height */ | ||
522 | unsigned hscale; /* horizontal scale factor (see datasheet) */ | ||
523 | unsigned vscale; /* vertical scale factor (see datasheet) */ | ||
524 | unsigned int vbi_width; | ||
525 | unsigned int vbi_height; /* lines per field */ | ||
518 | }; | 526 | }; |
519 | 527 | ||
520 | struct em28xx_audio { | 528 | struct em28xx_audio { |
@@ -632,11 +640,7 @@ struct em28xx { | |||
632 | unsigned int ctl_aoutput;/* selected audio output */ | 640 | unsigned int ctl_aoutput;/* selected audio output */ |
633 | int mute; | 641 | int mute; |
634 | int volume; | 642 | int volume; |
635 | /* frame properties */ | 643 | |
636 | int width; /* current frame width */ | ||
637 | int height; /* current frame height */ | ||
638 | unsigned hscale; /* horizontal scale factor (see datasheet) */ | ||
639 | unsigned vscale; /* vertical scale factor (see datasheet) */ | ||
640 | int interlaced; /* 1=interlace fileds, 0=just top fileds */ | 644 | int interlaced; /* 1=interlace fileds, 0=just top fileds */ |
641 | 645 | ||
642 | unsigned long hash; /* eeprom hash - for boards with generic ID */ | 646 | unsigned long hash; /* eeprom hash - for boards with generic ID */ |
@@ -647,8 +651,6 @@ struct em28xx { | |||
647 | int capture_type; | 651 | int capture_type; |
648 | unsigned char top_field:1; | 652 | unsigned char top_field:1; |
649 | int vbi_read; | 653 | int vbi_read; |
650 | unsigned int vbi_width; | ||
651 | unsigned int vbi_height; /* lines per field */ | ||
652 | 654 | ||
653 | struct work_struct request_module_wk; | 655 | struct work_struct request_module_wk; |
654 | 656 | ||