]> 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)
commit29737f42ac107c4dc69725d946fbdaa92671e2df
tree2964a17c1d731a76c0e3bf71b5a4e8140701abaf
parent3cfb8aa8afaf8cc4b30fae9ac88f21ed58ff66ec
[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