]> git.baikalelectronics.ru Git - kernel.git/commit
media: rcar-vin: Do not enumerate unsupported pixel formats
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Mon, 14 Oct 2019 00:07:50 +0000 (21:07 -0300)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 5 Nov 2019 11:51:15 +0000 (08:51 -0300)
commit71250ab169f8a45aea92489b0f062fdd39def238
tree4c1a641fd917648e97dc753be6054d50a655e7b4
parent165d929bf72646e33fa0946b9818e64a91ee2fbd
media: rcar-vin: Do not enumerate unsupported pixel formats

If a pixel format is not supported by the hardware NULL is returned by
rvin_format_from_pixel() for that fourcc. Verify that the pixel format
is supported using this or skip it when enumerating.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/rcar-vin/rcar-v4l2.c