Commit 3af89c43 authored by Bartłomiej Grzesik's avatar Bartłomiej Grzesik Committed by Slawomir Rosek
Browse files

CHROMIUM: media: virtio: handle minimum frame rate equal to 0



Before this patch v4l2-compliance was failing when hypervisor reported
allowed minimum frame rate equal to zero for encoder device.

This patch fixes this issue, but returning a fraction with numerator
set to 1 and denumator set to U32_MAX in case of minimum frame rate
equal to zero.

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: Ic805e46468a3fbfd4426d16e96cee531dd26bad1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/3429242


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