The offset was added to v4l2_buffer,
but vb2 does not support offset.
So vb2 is modified to support offset calculation.
Change-Id: Iee6e4b1146043eae00450556ba4686ba412aec0d
Signed-off-by: Seungchul Kim <sc377.kim@samsung.com>
{
struct vb2_dma_sg_buf *buf = vb->planes[plane_no].mem_priv;
- return buf->iova;
+ return buf->iova + vb->planes[plane_no].data_offset;
}
const struct vb2_mem_ops vb2_dma_sg_memops = {
b->m.planes[plane].m.fd;
planes[plane].length =
b->m.planes[plane].length;
+ planes[plane].data_offset =
+ b->m.planes[plane].data_offset;
}
}