V4L/DVB (13431): cx18: Adjust an MDL's final buffer size to force encoder transfer...
commit1047a83844a4d894a068d94aca2d3efe54ac7a9c
authorAndy Walls <awalls@radix.net>
Wed, 11 Nov 2009 02:28:30 +0000 (10 23:28 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 5 Dec 2009 20:41:52 +0000 (5 18:41 -0200)
treeb701e53e5db83b79f608eb6f515195d0cd403679
parent22dce188ef3e1e058ceabe3b3072640d7568f764
V4L/DVB (13431): cx18: Adjust an MDL's final buffer size to force encoder transfer size

The encoder was not honoring the MDL size sent in DE_SET_MDL mailbox commands.
This change adjusts the size of the last buffer in an MDL, as reported to the
firmware, so that the encoder will send the exact amount of bytes we specify
per MDL transfer.  This eliminates tearing in YUV playback when using
non-default YUV buffer sizes.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx18/cx18-queue.c