]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/media/platform/vivid/vivid-vid-cap.c
[media] vivid: fix test pattern movement for V4L2_FIELD_ALTERNATE
authorHans Verkuil <hans.verkuil@cisco.com>
Sat, 7 Mar 2015 15:38:42 +0000 (12:38 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 2 Apr 2015 23:30:57 +0000 (20:30 -0300)
commit43047f6b7467c2c9e3ef0b8113469c40b0b78cc3
tree347aebd39caa0dbb47ba16448a41e86e619b362a
parentc501abcfbfd75da44f35992d0da39af92860fb01
[media] vivid: fix test pattern movement for V4L2_FIELD_ALTERNATE

The successive TOP/BOTTOM fields did not move as they should: only
every other field actually changed position.

The cause was that the tpg needs to know if it is dealing with a
FIELD_ALTERNATE case since that requires slightly different handling.

So tell the TPG whether or not the field setting is for the ALTERNATE
case or not.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/vivid/vivid-kthread-cap.c
drivers/media/platform/vivid/vivid-tpg.c
drivers/media/platform/vivid/vivid-tpg.h
drivers/media/platform/vivid/vivid-vid-cap.c