Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d0d63841 authored by Maheshwar Ajja's avatar Maheshwar Ajja
Browse files

[media] videobuf2-v4l2.c: send data_offset field to vb2 framework



Clients may use different data offset values for each v4l2 buffer.
So send data_offset value along with other parameters to vb2
framework for drivers to use the client set data_offset value.

CRs-Fixed: 2064048
Change-Id: I5469deec44c11bde5700b2271d923d50ae525d62
Signed-off-by: default avatarMaheshwar Ajja <majja@codeaurora.org>
parent e13b3810
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -330,6 +330,8 @@ static int __fill_vb2_buffer(struct vb2_buffer *vb,
					b->m.planes[plane].m.userptr;
				planes[plane].length =
					b->m.planes[plane].length;
				planes[plane].data_offset =
					b->m.planes[plane].data_offset;
			}
		}
		if (b->memory == VB2_MEMORY_DMABUF) {
@@ -338,6 +340,8 @@ static int __fill_vb2_buffer(struct vb2_buffer *vb,
					b->m.planes[plane].m.fd;
				planes[plane].length =
					b->m.planes[plane].length;
				planes[plane].data_offset =
					b->m.planes[plane].data_offset;
			}
		}