diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2009-10-05 17:54:34 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-11-07 15:55:06 +0100 |
commit | 07bc46e6671b4533a5e56607ddec9de9079c1844 (patch) | |
tree | 651a9eac28855371c34b88de51d4976919f984d7 | |
parent | V4L/DVB (13129): sh_mobile_ceu_camera: fix cropping for scaling clients (diff) | |
download | linux-07bc46e6671b4533a5e56607ddec9de9079c1844.tar.xz linux-07bc46e6671b4533a5e56607ddec9de9079c1844.zip |
V4L/DVB (13131): pxa_camera: fix camera pixel format configuration
A missed conversion prevents correct pixel format negotiation with client
drivers.
Reported-by: Antonio Ospite <ospite@studenti.unina.it>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/video/pxa_camera.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/video/pxa_camera.c b/drivers/media/video/pxa_camera.c index 6952e9602d5d..aa831d53cf28 100644 --- a/drivers/media/video/pxa_camera.c +++ b/drivers/media/video/pxa_camera.c @@ -1432,7 +1432,9 @@ static int pxa_camera_set_fmt(struct soc_camera_device *icd, icd->sense = &sense; cam_f.fmt.pix.pixelformat = cam_fmt->fourcc; - ret = v4l2_subdev_call(sd, video, s_fmt, f); + ret = v4l2_subdev_call(sd, video, s_fmt, &cam_f); + cam_f.fmt.pix.pixelformat = pix->pixelformat; + *pix = cam_f.fmt.pix; icd->sense = NULL; |