]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
v4l: xilinx-vpss-csc: Add check for max width and height
authorVishal Sagar <vishal.sagar@xilinx.com>
Fri, 21 Sep 2018 10:23:52 +0000 (15:53 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 27 Sep 2018 08:01:08 +0000 (10:01 +0200)
commitdddf22521b106939fbd40be0fce360b176f421f6
tree09584c75fd9301c2c5116eacb167f1f2629ff8cf
parent7caa9fc9f32f25b3b55918db40a26bebbd883043
v4l: xilinx-vpss-csc: Add check for max width and height

Patch adds support to get maximum width and height from dt property.
If the parameters are not present then the IP sets the max size of
8192x4320. It then uses this value to clamp width and height instead
of fixed default value while setting format.

It also corrects the minimum width and height parameters.

Signed-off-by: Vishal Sagar <vishal.sagar@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/media/platform/xilinx/xilinx-vpss-csc.c