[media] media: davinci: vpbe: fix layer availability for NV12 format
authorLad, Prabhakar <prabhakar.csengg@gmail.com>
Tue, 7 May 2013 04:07:25 +0000 (01:07 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 21 May 2013 10:57:12 +0000 (07:57 -0300)
commitbdea0d222a21f864a811cf6666532334e622f7c6
tree84ee9fb9826253c12c7c1939c32394b1cc06e120
parent0391dc17bd5d7d6b1706d0be6472c4b352b57c05
[media] media: davinci: vpbe: fix layer availability for NV12 format

For NV12 format, even if display data is single image,
both VIDWIN0 and VIDWIN1 parameters must be used. The start
address of Y data plane and C data plane is configured in
VIDEOWIN0ADH/L and VIDEOWIN1ADH/L respectively.
cuurently only one layer was requested, which is suffice
for yuv422, but for yuv420(NV12) two layers are required and
fix the same by requesting for other layer if pix fmt is NV12
during set_fmt.

Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/davinci/vpbe_display.c