]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit8e4ddb5c57864d681e16573d019eccff7108146d
tree2964a17c1d731a76c0e3bf71b5a4e8140701abaf
parent17ba4efd4b95b4fb5a526534b6771434d1d4ba82
[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