[media] rcar-vin: fix bug in pixelformat selection
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Wed, 24 May 2017 00:15:40 +0000 (21:15 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 6 Jun 2017 19:45:49 +0000 (16:45 -0300)
commite09c3481d91652de135295ac3bd6505fb2b32613
tree227de2522020b7f65bbdc22528242af72c9e19b8
parent8afb72eda5f3f6f032a3b95b9ea59db2e1e2fcfc
[media] rcar-vin: fix bug in pixelformat selection

If the requested pixelformat is not supported fallback to the default
format, do not revert the entire format.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/rcar-vin/rcar-v4l2.c