media: venus: venc: fix bytesused v4l2_plane field
authorStanimir Varbanov <stanimir.varbanov@linaro.org>
Tue, 10 Oct 2017 07:52:36 +0000 (09:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Nov 2017 08:40:58 +0000 (08:40 +0000)
commit88a703f31bdf4b609e838495c733aa6c3f270c33
treede4cf7f020870d7f697d9004e73d76fc61819de4
parent242ceaf6dc6159e71078fb6d53ecf62d2627da9f
media: venus: venc: fix bytesused v4l2_plane field

commit 5232c37ce244db04fd50d160b92e40d2df46a2e9 upstream.

This fixes wrongly filled bytesused field of v4l2_plane structure
by include data_offset in the plane, Also fill data_offset and
bytesused for capture type of buffers only.

Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/platform/qcom/venus/venc.c