Skip to content
/ linux Public

Commit 1b593da

Browse files
davidplowmanSasha Levin
authored andcommitted
media: i2c: ov5647: Sensor should report RAW color space
[ Upstream commit f007586 ] As this sensor captures RAW bayer frames, the colorspace should be V4L2_COLORSPACE_RAW instead of SRGB. Fixes: a8df5af ("media: ov5647: Add SGGBR10_1X10 modes") Cc: stable@vger.kernel.org Signed-off-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Signed-off-by: Jai Luthra <jai.luthra@ideasonboard.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent ff90942 commit 1b593da

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/media/i2c/ov5647.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ static const struct ov5647_mode ov5647_modes[] = {
508508
{
509509
.format = {
510510
.code = MEDIA_BUS_FMT_SBGGR10_1X10,
511-
.colorspace = V4L2_COLORSPACE_SRGB,
511+
.colorspace = V4L2_COLORSPACE_RAW,
512512
.field = V4L2_FIELD_NONE,
513513
.width = 2592,
514514
.height = 1944
@@ -529,7 +529,7 @@ static const struct ov5647_mode ov5647_modes[] = {
529529
{
530530
.format = {
531531
.code = MEDIA_BUS_FMT_SBGGR10_1X10,
532-
.colorspace = V4L2_COLORSPACE_SRGB,
532+
.colorspace = V4L2_COLORSPACE_RAW,
533533
.field = V4L2_FIELD_NONE,
534534
.width = 1920,
535535
.height = 1080
@@ -550,7 +550,7 @@ static const struct ov5647_mode ov5647_modes[] = {
550550
{
551551
.format = {
552552
.code = MEDIA_BUS_FMT_SBGGR10_1X10,
553-
.colorspace = V4L2_COLORSPACE_SRGB,
553+
.colorspace = V4L2_COLORSPACE_RAW,
554554
.field = V4L2_FIELD_NONE,
555555
.width = 1296,
556556
.height = 972
@@ -571,7 +571,7 @@ static const struct ov5647_mode ov5647_modes[] = {
571571
{
572572
.format = {
573573
.code = MEDIA_BUS_FMT_SBGGR10_1X10,
574-
.colorspace = V4L2_COLORSPACE_SRGB,
574+
.colorspace = V4L2_COLORSPACE_RAW,
575575
.field = V4L2_FIELD_NONE,
576576
.width = 640,
577577
.height = 480

0 commit comments

Comments
 (0)