Skip to content

Commit 9660b7d

Browse files
davidplowmanpelwell
authored andcommitted
media: i2c: ov9281: Sensor should report RAW color space
Tested on Raspberry Pi running libcamera. Signed-off-by: David Plowman <[email protected]>
1 parent 19e5c0e commit 9660b7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/media/i2c/ov9281.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ static int ov9281_set_fmt(struct v4l2_subdev *sd,
507507
fmt->format.width = mode->width;
508508
fmt->format.height = mode->height;
509509
fmt->format.field = V4L2_FIELD_NONE;
510-
fmt->format.colorspace = V4L2_COLORSPACE_SRGB;
510+
fmt->format.colorspace = V4L2_COLORSPACE_RAW;
511511
fmt->format.ycbcr_enc =
512512
V4L2_MAP_YCBCR_ENC_DEFAULT(fmt->format.colorspace);
513513
fmt->format.quantization =
@@ -557,7 +557,7 @@ static int ov9281_get_fmt(struct v4l2_subdev *sd,
557557
fmt->format.height = mode->height;
558558
fmt->format.code = ov9281->code;
559559
fmt->format.field = V4L2_FIELD_NONE;
560-
fmt->format.colorspace = V4L2_COLORSPACE_SRGB;
560+
fmt->format.colorspace = V4L2_COLORSPACE_RAW;
561561
fmt->format.ycbcr_enc =
562562
V4L2_MAP_YCBCR_ENC_DEFAULT(fmt->format.colorspace);
563563
fmt->format.quantization =
@@ -908,7 +908,7 @@ static int ov9281_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh)
908908
try_fmt->height = def_mode->height;
909909
try_fmt->code = MEDIA_BUS_FMT_Y10_1X10;
910910
try_fmt->field = V4L2_FIELD_NONE;
911-
try_fmt->colorspace = V4L2_COLORSPACE_SRGB;
911+
try_fmt->colorspace = V4L2_COLORSPACE_RAW;
912912
try_fmt->ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(try_fmt->colorspace);
913913
try_fmt->quantization =
914914
V4L2_MAP_QUANTIZATION_DEFAULT(true, try_fmt->colorspace,

0 commit comments

Comments
 (0)