]> git.baikalelectronics.ru Git - kernel.git/commit
media: mx2_camera: Fix mbus format handling
authorJavier Martin <javier.martin@vista-silicon.com>
Wed, 11 Jul 2012 15:34:54 +0000 (17:34 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Jul 2012 19:48:24 +0000 (12:48 -0700)
commitba6f8b0a792007e1b2afe0308cccb57ab6400063
treee79b736e3b863f4f2764743eb7307954595ce5b8
parent6ae4871d83ea68b4cb9dc6be23cfcfa8bd59ddae
media: mx2_camera: Fix mbus format handling

Do not use MX2_CAMERA_SWAP16 and MX2_CAMERA_PACK_DIR_MSB flags. The driver
must negotiate with the attached sensor whether the mbus format is UYUV or
YUYV and set CSICR1 configuration accordingly.

This is needed for the video function on mach-imx27_visstrim_m10.c to
perform properly, since an earlier version of this patch has been proven
wrong and has been reverted and a commit, depending on it: "[media]
i.MX27: visstrim_m10: Remove use of MX2_CAMERA_SWAP16" is in the mainline.

Signed-off-by: Javier Martin <javier.martin@vista-silicon.com>
Reviewed-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
[ g.liakhovetski@gmx.de: move a macro definition to a more logical place ]
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
[ Applying directly because Mauro is on vacation - Linus ]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/media/video/mx2_camera.c