CHROMIUM: media: virtio: fix compliance issues for G/S_PARM
VIDIOC_G_PARM and VIDIOC_S_PARM ioctls are used for setting and getting stream frame rate for encoder device. Till this point the VIDIOC_G_PARM was not supported for output queue. And in both, VIDIOC_G_PARM and VIDIOC_S_PARM handlers V4L2_TYPE_IS_OUTPUT was used to distinguish queue types, which could lead to incorrect behaviour when non multiplanar type was given. This patch fixes v4l2-compliance fails by adding support for VIDIOC_G_PARM on output queue and disallowing these ioctls for non multiplanar types. Signed-off-by:Bartłomiej Grzesik <bag@semihalf.com> BUG=b:160440787 TEST=v4l2-compliance -d /dev/video1 TEST=tast run eve arc.Video* Change-Id: If36197f182444d42bdf103fafafab52d727a4117 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/3429243 Reviewed-by:
Alexandre Courbot <acourbot@chromium.org> Tested-by:
Patryk Busse <pbu@semihalf.com> Commit-Queue: Bartłomiej Grzesik <bgrzesik@google.com> Signed-off-by:
Slawomir Rosek <srosek@google.com>
Loading
Please sign in to comment