diff options
author | Helen Fornazier <helen.koike@collabora.com> | 2019-03-06 17:42:37 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-03-19 14:04:54 -0400 |
commit | 85ab1aa1fac17bcd79d6d08f835957b46870d0d0 (patch) | |
tree | b511dfe05c0647139f6551bcd88a1182f383990c /drivers/media/platform/vimc | |
parent | f14f6aa0b4423632ab76f3eed3a28159049451ef (diff) |
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>
Diffstat (limited to 'drivers/media/platform/vimc')
-rw-r--r-- | drivers/media/platform/vimc/vimc-debayer.c | 2 |
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 { | |||
66 | static const struct v4l2_mbus_framefmt sink_fmt_default = { | 66 | static const struct v4l2_mbus_framefmt sink_fmt_default = { |
67 | .width = 640, | 67 | .width = 640, |
68 | .height = 480, | 68 | .height = 480, |
69 | .code = MEDIA_BUS_FMT_RGB888_1X24, | 69 | .code = MEDIA_BUS_FMT_SRGGB8_1X8, |
70 | .field = V4L2_FIELD_NONE, | 70 | .field = V4L2_FIELD_NONE, |
71 | .colorspace = V4L2_COLORSPACE_DEFAULT, | 71 | .colorspace = V4L2_COLORSPACE_DEFAULT, |
72 | }; | 72 | }; |