@@ -507,7 +507,7 @@ static int ov9281_set_fmt(struct v4l2_subdev *sd,
507
507
fmt -> format .width = mode -> width ;
508
508
fmt -> format .height = mode -> height ;
509
509
fmt -> format .field = V4L2_FIELD_NONE ;
510
- fmt -> format .colorspace = V4L2_COLORSPACE_SRGB ;
510
+ fmt -> format .colorspace = V4L2_COLORSPACE_RAW ;
511
511
fmt -> format .ycbcr_enc =
512
512
V4L2_MAP_YCBCR_ENC_DEFAULT (fmt -> format .colorspace );
513
513
fmt -> format .quantization =
@@ -557,7 +557,7 @@ static int ov9281_get_fmt(struct v4l2_subdev *sd,
557
557
fmt -> format .height = mode -> height ;
558
558
fmt -> format .code = ov9281 -> code ;
559
559
fmt -> format .field = V4L2_FIELD_NONE ;
560
- fmt -> format .colorspace = V4L2_COLORSPACE_SRGB ;
560
+ fmt -> format .colorspace = V4L2_COLORSPACE_RAW ;
561
561
fmt -> format .ycbcr_enc =
562
562
V4L2_MAP_YCBCR_ENC_DEFAULT (fmt -> format .colorspace );
563
563
fmt -> format .quantization =
@@ -908,7 +908,7 @@ static int ov9281_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh)
908
908
try_fmt -> height = def_mode -> height ;
909
909
try_fmt -> code = MEDIA_BUS_FMT_Y10_1X10 ;
910
910
try_fmt -> field = V4L2_FIELD_NONE ;
911
- try_fmt -> colorspace = V4L2_COLORSPACE_SRGB ;
911
+ try_fmt -> colorspace = V4L2_COLORSPACE_RAW ;
912
912
try_fmt -> ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT (try_fmt -> colorspace );
913
913
try_fmt -> quantization =
914
914
V4L2_MAP_QUANTIZATION_DEFAULT (true, try_fmt -> colorspace ,
0 commit comments