HACK: CHROMIUM: media: videobuf2: Copy data_offset from v4l2_buffer in VB2_MEMORY_DMABUF mode

This change make videobufs framework to copy |data_offset| passed from a
client to vb2_buffer. By this change, when a client allocate DMA-bufs for a
multiplanar format and enqueues them as CAPTURE buffers, the client can use
|data_offset| to tell offsets to the driver.

This change should be reverted once the upstream create a new way of
passing offsets.

BUG=chromium:901264
BUG=b:120456557
BUG=b:143515730, b:143672449
TEST=worked with virtio-vdec driver

Change-Id: I8cbaf26c52f2486910ab368620ed4a0cdc14d65b
Signed-off-by: Keiichi Watanabe <keiichiw@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/2060326
1 file changed