]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (13431): cx18: Adjust an MDL's final buffer size to force encoder transfer...
authorAndy Walls <awalls@radix.net>
Wed, 11 Nov 2009 02:28:30 +0000 (23:28 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 5 Dec 2009 20:41:52 +0000 (18:41 -0200)
commit32f3026e394c53f3e3e068ead632675f16b4f340
treeb701e53e5db83b79f608eb6f515195d0cd403679
parent14eb87e15776186d93048df4761eeca9de130064
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