]> git.karo-electronics.de Git - linux-beck.git/commitdiff
em28xx: em2800 chips support max width of 640
authorMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 27 Nov 2009 15:49:48 +0000 (13:49 -0200)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 5 Dec 2009 20:42:16 +0000 (18:42 -0200)
Due to hardware limitation, em2800 chips can't work at resolutions
higher than 640x576, since the URB packet size is not enough.

The effect is that the image looses packages and shows a distortion
along the vertical axes.

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

index bca5cbb7931c0943da68c79467009be0bf736a1f..166d4a6e6eaa46c0793ef6f2aaaefd5b023c8161 100644 (file)
@@ -796,7 +796,7 @@ static inline unsigned int norm_maxw(struct em28xx *dev)
        if (dev->board.is_webcam)
                return dev->sensor_xres;
 
-       if (dev->board.max_range_640_480)
+       if (dev->board.max_range_640_480 || dev->board.is_em2800)
                return 640;
 
        return 720;