[media] marvell-ccic: fix RGB444 format
authorHans Verkuil <hverkuil@xs4all.nl>
Fri, 24 Apr 2015 09:52:47 +0000 (06:52 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 12 May 2015 07:04:26 +0000 (04:04 -0300)
commitccf509f845576b8809702aa693867839bf77beb0
tree2964a17c1d731a76c0e3bf71b5a4e8140701abaf
parentb3ab190f1c731e76da357f6640ceebacfdaccae1
[media] marvell-ccic: fix RGB444 format

The RGB444 format swapped the red and blue components, fix this.

Rather than making a new BGR444 format (as I proposed initially), Jon prefers
to just fix this and return the colors in the right order. I think that makes
sense in this case.

Since the RGB444 pixel format is deprecated due to the ambiguous specification
of the alpha component we use the XRGB444 pixel format instead (specified as having
no alpha channel).

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/marvell-ccic/mcam-core.c