mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
media: omap3isp: use V4L2_COLORSPACE_SRGB instead of _JPEG
JPEG colorspace should generally not be used unless it is actually dealing with JPG data. This fixes v4l2-compliance errors: fail: v4l2-test-formats.cpp(416): pixelformat != V4L2_PIX_FMT_JPEG && pixelformat != V4L2_PIX_FMT_MJPEG && colorspace == V4L2_COLORSPACE_JPEG fail: v4l2-test-formats.cpp(521): testColorspace(!node->is_io_mc, pix.pixelformat, pix.colorspace, pix.ycbcr_enc, pix.quantization) test VIDIOC_TRY_FMT: FAIL Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
This commit is contained in:
parent
5e72c0c94e
commit
2c422fd1a4
|
|
@ -1796,7 +1796,7 @@ static void preview_try_format(struct isp_prev_device *prev,
|
|||
fmt->width = crop->width;
|
||||
fmt->height = crop->height;
|
||||
|
||||
fmt->colorspace = V4L2_COLORSPACE_JPEG;
|
||||
fmt->colorspace = V4L2_COLORSPACE_SRGB;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1405,7 +1405,7 @@ static void resizer_try_format(struct isp_res_device *res,
|
|||
break;
|
||||
}
|
||||
|
||||
fmt->colorspace = V4L2_COLORSPACE_JPEG;
|
||||
fmt->colorspace = V4L2_COLORSPACE_SRGB;
|
||||
fmt->field = V4L2_FIELD_NONE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user