Commit 0bc9c894 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] em28xx: Fix height setting on non-progressive captures

This was introduced on commit c2a6b54a:
"em28xx: fix: don't do image interlacing on webcams"

The proposed patch by Ezequiel is wrong. The right fix here is to just
don't bother here if either the image is progressive or not.
Reported-by: default avatarEzequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 229fd7d2
...@@ -785,12 +785,8 @@ int em28xx_resolution_set(struct em28xx *dev) ...@@ -785,12 +785,8 @@ int em28xx_resolution_set(struct em28xx *dev)
else else
dev->vbi_height = 18; dev->vbi_height = 18;
if (!dev->progressive)
height >>= norm_maxh(dev);
em28xx_set_outfmt(dev); em28xx_set_outfmt(dev);
em28xx_accumulator_set(dev, 1, (width - 4) >> 2, 1, (height - 4) >> 2); em28xx_accumulator_set(dev, 1, (width - 4) >> 2, 1, (height - 4) >> 2);
/* If we don't set the start position to 2 in VBI mode, we end up /* If we don't set the start position to 2 in VBI mode, we end up
......
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