Commit 46f85978 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

[media] em28xx: fix typo in scale_to_size()

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: default avatarHans Verkuil <hans.verkuil@cisco.com>
Acked-by: default avatarFrank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 56fa1a6a
...@@ -996,7 +996,7 @@ static int vidioc_try_fmt_vid_cap(struct file *file, void *priv, ...@@ -996,7 +996,7 @@ static int vidioc_try_fmt_vid_cap(struct file *file, void *priv,
} }
size_to_scale(dev, width, height, &hscale, &vscale); 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.width = width;
f->fmt.pix.height = height; f->fmt.pix.height = height;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment