]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB: em28xx: rework buffer pointer tracking for offset to start of video
authorDevin Heitmueller <dheitmueller@kernellabs.com>
Fri, 22 Jan 2010 05:34:32 +0000 (02:34 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 18 May 2010 03:50:14 +0000 (00:50 -0300)
commit1db90831e6533164a8a0d52c67ba9132f212b342
tree8d73d74d6bbd0f50fae8fe32738909b54953d1dc
parent811bde729ce8e469f1ee90aaa1b7544c5e761370
V4L/DVB: em28xx: rework buffer pointer tracking for offset to start of video

Rework the logic for tracking the amount of data copied to the VBI buffer, to
address problem found where the video lines are several bytes shifted to the
right (and the leading pixels in the first line rendered are garbage).  This
would occur because the copy function would advance the pointer when detecting
headers, but the caller would not adjust the length actually copied.

This work was sponsored by EyeMagnet Limited.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/em28xx/em28xx-video.c