]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
media: v4l2-core: fix touch support in v4l_g_fmt
authorVandana BN <bnvandana@gmail.com>
Tue, 22 Oct 2019 07:51:40 +0000 (04:51 -0300)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 29 Jan 2020 04:45:21 +0000 (23:45 -0500)
commitd4727d8d63be146d57288374a7f1b26dd2ffc3a4
tree504688754efe7dda622034fc374d9857b427fbde
parent7597a41b98d642132783abd8916dceec1b23e6c2
media: v4l2-core: fix touch support in v4l_g_fmt

BugLink: https://bugs.launchpad.net/bugs/1859712
[ Upstream commit 545b618cfb5cadacd00c25066b9a36540e5ca9e9 ]

v4l_s_fmt, for VFL_TYPE_TOUCH, sets unneeded members of
the v4l2_pix_format structure to default values.This was
missing in v4l_g_fmt, which would lead to failures in
v4l2-compliance tests.

Signed-off-by: Vandana BN <bnvandana@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/media/v4l2-core/v4l2-ioctl.c