media: tegra: camera: add control for alignment
The driver needs to know alignment constraints in order to
update bytesperline and sizeimage correctly based on the
hardware requirements. Thus the values can be used to configure
VI to make streaming data written into memory buffers as expected
based on the selected pixel format. Add v4l2 controls to
make the alignment variables configurable for applications:
height_alignment (int) : min=1 max=2160 step=1 default=1 value=1
size_alignment (intmenu): min=0 max=2 default=0 value=0
0: 1 (0x1)
1: 65536 (0x10000)
2: 131072 (0x20000)
In addition, the height in struct v4l2_pix_format shall never
include the padding lines thus fix the code to keep it as is.
Bug
200256176
Change-Id: I9ef4c823141334a0a4088f8e1bac190b41f31775
Signed-off-by: Ken Chang <kenc@nvidia.com>
Reviewed-on: http://git-master/r/
1262132
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>