OSDN Git Service

media: rcar-vin: Limit NV12 availability to supported VIN channels only
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Fri, 6 Dec 2019 16:39:32 +0000 (17:39 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 24 Feb 2020 14:21:20 +0000 (15:21 +0100)
commite18976eecabd252ca406ae2325e983f8eaa348cd
tree3bcd1c33a3a8f5ccbfc37a79c73338e7028dd0a2
parent9ac560d48d3caab7c6e8cd259520598631535271
media: rcar-vin: Limit NV12 availability to supported VIN channels only

When adding support for NV12 it was overlooked that the pixel format is
only supported on some VIN channels. Fix this by adding a check to only
accept NV12 on the supported channels 0, 1, 4, 5, 8, 9, 12 and 13.

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