[media] em28xx: fix typo in scale_to_size()
authorHans Verkuil <hverkuil@xs4all.nl>
Sat, 30 Mar 2013 08:31:42 +0000 (05:31 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 31 Mar 2013 14:10:26 +0000 (11:10 -0300)
em28xx: fix typo in scale_to_size().
The second hscale should be vscale. This bug caused xawtv to fail because it
cannot find a workable image size.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/em28xx/em28xx-video.c

index ef1959bbd23f7958253e37c225ef2a915370f9d7..792ead1025d794a1388a1d2770fe125f689984f2 100644 (file)
@@ -996,7 +996,7 @@ static int vidioc_try_fmt_vid_cap(struct file *file, void *priv,
        }
 
        size_to_scale(dev, width, height, &hscale, &vscale);
-       scale_to_size(dev, hscale, hscale, &width, &height);
+       scale_to_size(dev, hscale, vscale, &width, &height);
 
        f->fmt.pix.width = width;
        f->fmt.pix.height = height;