diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2009-10-05 12:54:34 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-11-07 12:55:06 -0200 |
commit | 07bc46e6671b4533a5e56607ddec9de9079c1844 (patch) | |
tree | 651a9eac28855371c34b88de51d4976919f984d7 /drivers/media | |
parent | 8cf1fec877c102beeae1e13624b1f7d20abbf8f9 (diff) | |
download | op-kernel-dev-07bc46e6671b4533a5e56607ddec9de9079c1844.zip op-kernel-dev-07bc46e6671b4533a5e56607ddec9de9079c1844.tar.gz |
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.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 6952e96..aa831d5 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; |