aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/s5p-fimc/fimc-reg.c
diff options
context:
space:
mode:
authorSylwester Nawrocki <s.nawrocki@samsung.com>2011-06-10 14:36:48 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-09-06 14:53:39 -0400
commit30c9939d79d6edf64092148842835893d156b672 (patch)
treeda9685402035914a0ff578cd5ac9f75b01730650 /drivers/media/video/s5p-fimc/fimc-reg.c
parent2319c539e39b9e74f0477887bb8ff45816cb38d9 (diff)
[media] s5p-fimc: Remove v4l2_device from video capture and m2m driver
Currently there is a v4l2_device instance being registered per each (capture and memory-to-memory) video node created per FIMC H/W instance. This patch is a prerequisite for using the top level v4l2_device instantiated by the media device driver. To retain current debug trace semantic (so it's possible to distinguish between the capture and m2m FIMC) the video_device is used in place of v4l2_device where appropriate. 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>
Diffstat (limited to 'drivers/media/video/s5p-fimc/fimc-reg.c')
-rw-r--r--drivers/media/video/s5p-fimc/fimc-reg.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/media/video/s5p-fimc/fimc-reg.c b/drivers/media/video/s5p-fimc/fimc-reg.c
index 938dadf250f7..c6882636ea94 100644
--- a/drivers/media/video/s5p-fimc/fimc-reg.c
+++ b/drivers/media/video/s5p-fimc/fimc-reg.c
@@ -596,7 +596,7 @@ int fimc_hw_set_camera_source(struct fimc_dev *fimc,
596 } 596 }
597 597
598 if (i == ARRAY_SIZE(pix_desc)) { 598 if (i == ARRAY_SIZE(pix_desc)) {
599 v4l2_err(&fimc->vid_cap.v4l2_dev, 599 v4l2_err(fimc->vid_cap.vfd,
600 "Camera color format not supported: %d\n", 600 "Camera color format not supported: %d\n",
601 fimc->vid_cap.fmt.code); 601 fimc->vid_cap.fmt.code);
602 return -EINVAL; 602 return -EINVAL;
@@ -661,8 +661,9 @@ int fimc_hw_set_camera_type(struct fimc_dev *fimc,
661 if (vid_cap->fmt.code == V4L2_MBUS_FMT_VYUY8_2X8) { 661 if (vid_cap->fmt.code == V4L2_MBUS_FMT_VYUY8_2X8) {
662 tmp = S5P_CSIIMGFMT_YCBCR422_8BIT; 662 tmp = S5P_CSIIMGFMT_YCBCR422_8BIT;
663 } else { 663 } else {
664 err("camera image format not supported: %d", 664 v4l2_err(fimc->vid_cap.vfd,
665 vid_cap->fmt.code); 665 "Not supported camera pixel format: %d",
666 vid_cap->fmt.code);
666 return -EINVAL; 667 return -EINVAL;
667 } 668 }
668 tmp |= (cam->csi_data_align == 32) << 8; 669 tmp |= (cam->csi_data_align == 32) << 8;