aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/test-drivers/vimc/vimc-debayer.c
diff options
context:
space:
mode:
authorNiklas Söderlund <[email protected]>2020-04-17 17:09:29 +0200
committerMauro Carvalho Chehab <[email protected]>2020-04-29 12:02:30 +0200
commit9a42a5ff3daccc37ae4dbcfb6ce5c5d95419740b (patch)
treebeebc31fa5bbad98b908c63c4a5e51b7f053185c /drivers/media/test-drivers/vimc/vimc-debayer.c
parentb7ba9f34800aee62e1ffcd4386a421116e09f4fe (diff)
media: vimc: cap: Report a colorspace
The colorspace reported by a video nodes should not be V4L2_COLORSPACE_DEFAULT. Instead a default colorspace should be picked by the driver if V4L2_COLORSPACE_DEFAULT is given by userspace to {G,S,TRY}_FMT. The colorspace V4L2_COLORSPACE_SRGB is arbitrary chosen as the vimc default format to report as it's used for most webcams. Signed-off-by: Niklas Söderlund <[email protected]> Acked-by: Helen Koike <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/media/test-drivers/vimc/vimc-debayer.c')
-rw-r--r--drivers/media/test-drivers/vimc/vimc-debayer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/test-drivers/vimc/vimc-debayer.c b/drivers/media/test-drivers/vimc/vimc-debayer.c
index d10aee9f84c4..c4765ebaeec2 100644
--- a/drivers/media/test-drivers/vimc/vimc-debayer.c
+++ b/drivers/media/test-drivers/vimc/vimc-debayer.c
@@ -48,7 +48,7 @@ static const struct v4l2_mbus_framefmt sink_fmt_default = {
.height = 480,
.code = MEDIA_BUS_FMT_SRGGB8_1X8,
.field = V4L2_FIELD_NONE,
- .colorspace = V4L2_COLORSPACE_DEFAULT,
+ .colorspace = V4L2_COLORSPACE_SRGB,
};
static const struct vimc_deb_pix_map vimc_deb_pix_map_list[] = {