Commit 7ebb9410 authored by Tatsuyuki Ishi's avatar Tatsuyuki Ishi Committed by Chromeos LUCI
Browse files

CHROMIUM: drivers: media: virtio: Only supply timestamp for input queues.

The virtio-video spec states:
  timestamp: ... For VIRTIO_VIDEO_QUEUE_TYPE_OUTPUT, the driver MUST set
  it to 0.

For compliance purposes, only set this value for input queues. The struct
is zero-initialized on allocation, so timestamp will be 0 otherwise.

BUG=b:239897269
TEST=v4l2r decoding tests from crosvm book and FFmpeg encoding tests
     (https://crrev.com/c/3836232

) passes.
TEST=tast arc.VideoDecodeAccel*_vm
TEST=tast arc.VideoEncodeAccel*_vm

Change-Id: Id19a352dfe036273699440ee9d053fd79700baef
Signed-off-by: default avatarTatsuyuki Ishi <ishitatsuyuki@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/3852533


Reviewed-by: default avatarAlexandre Courbot <acourbot@chromium.org>
parent de8c4e47
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment