[media] media: ti-vpe: vpe: allow use of user specified stride
authorBenoit Parrot <bparrot@ti.com>
Mon, 13 Feb 2017 13:06:58 +0000 (11:06 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 3 Mar 2017 17:43:32 +0000 (14:43 -0300)
commit3dc2046ca78b3cac6c8c9098a4e3024cd91abdb4
tree9130fae3b20f1ee24766c92f369433ef1ee6ec46
parentda4414eaed15f9f800b37e2e5c04da35dc863dd4
[media] media: ti-vpe: vpe: allow use of user specified stride

Bytesperline/stride was always overwritten by VPE to the most
adequate value based on needed alignment.

However in order to make use of arbitrary size DMA buffer it
is better to use the user space provide stride instead.

The driver will still calculate an appropriate stride but will
use the provided one when it is larger than the calculated one.

Signed-off-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/ti-vpe/vpe.c