]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit4b881c05071bc9afe26e24f10b0f085a032e1b41
tree9130fae3b20f1ee24766c92f369433ef1ee6ec46
parent4ccc43a105f16517b9a3652928d38a5bfcaf01ea
[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