Commit 6b1d2c3a authored by Bartłomiej Grzesik's avatar Bartłomiej Grzesik Committed by Slawomir Rosek
Browse files

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: default avatarBartł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: default avatarAlexandre Courbot <acourbot@chromium.org>
Tested-by: default avatarPatryk Busse <pbu@semihalf.com>
Commit-Queue: Bartłomiej Grzesik <bgrzesik@google.com>
Signed-off-by: default avatarSlawomir Rosek <srosek@google.com>
parent 3af89c43
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment