[media] davinci: vpif_capture: fix default pixel format for BT.656/BT.1120 video
authorNori, Sekhar <nsekhar@ti.com>
Fri, 26 May 2017 10:55:27 +0000 (07:55 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 6 Jun 2017 19:49:23 +0000 (16:49 -0300)
commit8946ab3a4cb46abe0113a267857fdb32b05a3f23
treefb3f6de01b493b30daa8bcb16663b1ee8c2077f5
parentb14ac545688d8cc4b2b707d71d106799ad476964
[media] davinci: vpif_capture: fix default pixel format for BT.656/BT.1120 video

For both BT.656 and BT.1120 video, the pixel format
used by VPIF is Y/CbCr 4:2:2 in semi-planar format
(Luma in one plane and Chroma in another). This
corresponds to NV16 pixel format.

This is documented in section 36.2.3 of OMAP-L138
Technical Reference Manual, SPRUH77A.

The VPIF driver incorrectly sets the default format
to V4L2_PIX_FMT_YUV422P. Fix it.

Reported-by: Alejandro Hernandez <ajhernandez@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Acked-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/davinci/vpif_capture.c