mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 09:44:18 +08:00
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>
This commit is contained in:
parent
8cf1fec877
commit
07bc46e667
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user