]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit8a76e5383fb5f58868fdd3a2fe1f4b95988f10a8
treee79b736e3b863f4f2764743eb7307954595ce5b8
parent887eafd29bce6e6e0b2df91d1d0da3331490fd5d
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