V4L/DVB (12239): em28xx: fix webcam scaling
authorMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 13 Jul 2009 23:15:02 +0000 (20:15 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 24 Jul 2009 17:03:24 +0000 (14:03 -0300)
commit5569996421fa1cfc1fc0d9e683ac1def46ea985d
tree552bf2fc87952018f5af8ae3653c535e599ffe90
parentb04fb6615285d18df34ffd6cdd51db7a8a78dda0
V4L/DVB (12239): em28xx: fix webcam scaling

While trying to fix an mt9v001 webcam, I noticed that HSCALE/VSCALE do
work with em28xx + webcam. The issue is that the scaling setup depends
on the number of visible rows/cols of the input image.

With mt9v011 (Silvercrest), the resolution is 640x480. So, the scaling
is different from a normal TV image (720x480 on NTSC). This were causing
a wrong scaling and a previous patch disabled scaling.

As each sensor have their different resolution setting, the xres/yres
should be adjusted accordingly with the input sensor.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/em28xx/em28xx-cards.c
drivers/media/video/em28xx/em28xx-core.c
drivers/media/video/em28xx/em28xx-video.c
drivers/media/video/em28xx/em28xx.h