Skip to content

Commit

Permalink
[media] exynos4-is: Fix reported colorspace at FIMC-IS-ISP subdev
Browse files Browse the repository at this point in the history
The FIMC-IS-ISP handles only Bayer formats thus V4L2_COLORSPACE_SRGB
should be used. This change applies to the code first added in v3.10.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Sylwester Nawrocki authored and Mauro Carvalho Chehab committed Jun 8, 2013
1 parent b4155d7 commit ac2a4a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/platform/exynos4-is/fimc-isp.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ static int fimc_isp_subdev_get_fmt(struct v4l2_subdev *sd,
return 0;
}

mf->colorspace = V4L2_COLORSPACE_JPEG;
mf->colorspace = V4L2_COLORSPACE_SRGB;

mutex_lock(&isp->subdev_lock);
__is_get_frame_size(is, &cur_fmt);
Expand Down Expand Up @@ -194,7 +194,7 @@ static int fimc_isp_subdev_set_fmt(struct v4l2_subdev *sd,
v4l2_dbg(1, debug, sd, "%s: pad%d: code: 0x%x, %dx%d\n",
__func__, fmt->pad, mf->code, mf->width, mf->height);

mf->colorspace = V4L2_COLORSPACE_JPEG;
mf->colorspace = V4L2_COLORSPACE_SRGB;

mutex_lock(&isp->subdev_lock);
__isp_subdev_try_format(isp, fmt);
Expand Down

0 comments on commit ac2a4a8

Please sign in to comment.