summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelen Fornazier <helen.koike@collabora.com>2019-03-07 01:42:37 +0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-03-19 21:04:54 +0300
commit85ab1aa1fac17bcd79d6d08f835957b46870d0d0 (patch)
treeb511dfe05c0647139f6551bcd88a1182f383990c
parentf14f6aa0b4423632ab76f3eed3a28159049451ef (diff)
downloadlinux-85ab1aa1fac17bcd79d6d08f835957b46870d0d0.tar.xz
media: vimc: deb: fix default sink bayer format
The format of the sink pad should be a bayer mbus format. This fixes a kernel NULL pointer dereference error that was caused when the stream starts because the configured format was not found in the pixelmap table. Reported-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Helen Koike <helen.koike@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r--drivers/media/platform/vimc/vimc-debayer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/vimc/vimc-debayer.c b/drivers/media/platform/vimc/vimc-debayer.c
index eaed4233ad1b..20826f209731 100644
--- a/drivers/media/platform/vimc/vimc-debayer.c
+++ b/drivers/media/platform/vimc/vimc-debayer.c
@@ -66,7 +66,7 @@ struct vimc_deb_device {
static const struct v4l2_mbus_framefmt sink_fmt_default = {
.width = 640,
.height = 480,
- .code = MEDIA_BUS_FMT_RGB888_1X24,
+ .code = MEDIA_BUS_FMT_SRGGB8_1X8,
.field = V4L2_FIELD_NONE,
.colorspace = V4L2_COLORSPACE_DEFAULT,
};