aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2009-10-05 11:54:34 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-11-07 09:55:06 -0500
commit07bc46e6671b4533a5e56607ddec9de9079c1844 (patch)
tree651a9eac28855371c34b88de51d4976919f984d7 /drivers/media
parent8cf1fec877c102beeae1e13624b1f7d20abbf8f9 (diff)
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>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/pxa_camera.c4
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,
1432 icd->sense = &sense; 1432 icd->sense = &sense;
1433 1433
1434 cam_f.fmt.pix.pixelformat = cam_fmt->fourcc; 1434 cam_f.fmt.pix.pixelformat = cam_fmt->fourcc;
1435 ret = v4l2_subdev_call(sd, video, s_fmt, f); 1435 ret = v4l2_subdev_call(sd, video, s_fmt, &cam_f);
1436 cam_f.fmt.pix.pixelformat = pix->pixelformat;
1437 *pix = cam_f.fmt.pix;
1436 1438
1437 icd->sense = NULL; 1439 icd->sense = NULL;
1438 1440