]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
v4l: xilinx-vpss-scaler: Add check for max width and height
authorVishal Sagar <vishal.sagar@xilinx.com>
Fri, 21 Sep 2018 10:23:54 +0000 (15:53 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 27 Sep 2018 08:02:18 +0000 (10:02 +0200)
commit29668371cac77db6f73c037284d74c7d291a30d9
tree0affeb6b74280250cb512c997e40bfca90c1c060
parentda0560270f910cf9ad32ad52e6a0d3cee0bdd8e3
v4l: xilinx-vpss-scaler: 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-scaler.c