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)
commit5fee334039550bdd5efed9e69af7860a66a9de37
tree8d73d74d6bbd0f50fae8fe32738909b54953d1dc
parent1744feab9a2241f2adf03be5ef8ecbd279f5944b
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