aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/video/em28xx/em28xx-video.c
diff options
context:
space:
mode:
authorSascha Sommer <saschasommer@freenet.de>2005-11-08 21:38:10 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-09 07:56:24 -0800
commit52c02fcd00cf6fb6f5b2c8beae3b283c63cf1210 (patch)
tree575ef8bbbc7cd82ac9a129563fd2445d46ed7c2e /drivers/media/video/em28xx/em28xx-video.c
parent07345f5d6a92bc1184ca8b05069ec1cd3514fe11 (diff)
[PATCH] v4l: 850: update em2800 scaler code and comments based on info from empiatech
- Update em2800 scaler code and comments based on info from empiatech Signed-off-by: Sascha Sommer <saschasommer@freenet.de> Signed-off-by: Markus Rechberger <mrechberger@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/media/video/em28xx/em28xx-video.c')
-rw-r--r--drivers/media/video/em28xx/em28xx-video.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/media/video/em28xx/em28xx-video.c b/drivers/media/video/em28xx/em28xx-video.c
index 9f79c39349f..a569be3e2f2 100644
--- a/drivers/media/video/em28xx/em28xx-video.c
+++ b/drivers/media/video/em28xx/em28xx-video.c
@@ -1308,14 +1308,18 @@ static int em2820_video_do_ioctl(struct inode *inode, struct file *filp,
if (width > maxw)
width = maxw;
- /* FIXME*/
if(dev->is_em2800){
- /* we only know how to scale to 50% */
+ /* the em2800 can only scale down to 50% */
if(height % (maxh / 2))
height=maxh;
if(width % (maxw / 2))
width=maxw;
- /* larger resoltion don't seem to work either */
+ /* according to empiatech support */
+ /* the MaxPacketSize is to small to support */
+ /* framesizes larger than 640x480 @ 30 fps */
+ /* or 640x576 @ 25 fps. As this would cut */
+ /* of a part of the image we prefer */
+ /* 360x576 or 360x480 for now */
if(width == maxw && height == maxh)
width /= 2;
}