]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
media: omap_vout: fix various v4l2-compliance failures
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 30 Jul 2019 06:38:16 +0000 (03:38 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 13 Aug 2019 14:35:05 +0000 (11:35 -0300)
commit839b9d2c59b3b3e74cb58b457615ff61154d8a41
tree3b6ac201a69ba720948e2693942ac514cc69e608
parentae27c563a6185d47a904c2d71b72580266cb9d86
media: omap_vout: fix various v4l2-compliance failures

This patch fixes the following v4l2-compliance failures:

- FIELD_ANY could be returned, which is not allowed.
- JPEG colorspace was set instead of SRGB.
- No control events.
- Empty bus_info in QUERYCAP.
- Overlay format handling wasn't zeroing bitmap/clips and
  didn't return the chromakey correctly.
- G_FBUF didn't fill in many of the v4l2_framebuffer values.
  Now also return the base address of the corresponding
  framebuffer that this overlays.
- Missing ENUM/G/S_OUTPUT ioctls.
- ROTATE/VFLIP controls were added when the HW didn't support them.

With these changes 'v4l2-compliance' passes all non-streaming tests.

Tested on a Pandaboard and a Beagle XM board.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/omap/omap_vout.c
drivers/media/platform/omap/omap_voutlib.c