]> git.baikalelectronics.ru Git - kernel.git/commit
media: vimc: cap: Report a colorspace
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Fri, 17 Apr 2020 15:09:29 +0000 (17:09 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 29 Apr 2020 10:02:30 +0000 (12:02 +0200)
commita8fc87f49d5231e48b0c802809ffc1fd3a58ddef
treebeebc31fa5bbad98b908c63c4a5e51b7f053185c
parentaebcbffe717246276f41c036e9c24481c6eb9dc1
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 <niklas.soderlund+renesas@ragnatech.se>
Acked-by: Helen Koike <helen.koike@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/test-drivers/vimc/vimc-capture.c
drivers/media/test-drivers/vimc/vimc-debayer.c
drivers/media/test-drivers/vimc/vimc-scaler.c
drivers/media/test-drivers/vimc/vimc-sensor.c