]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
[media] em28xx: fix capture type setting in em28xx_urb_data_copy_vbi()
authorFrank Schaefer <fschaefer.oss@googlemail.com>
Sun, 25 Nov 2012 09:37:34 +0000 (06:37 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 22 Dec 2012 21:16:57 +0000 (19:16 -0200)
commit0455eebfbd6c286552f9d98bdc6614dfbdd63682
treeabdd1a477a50d934594f0de8c6da85f018547e7d
parent3610f58bb1d545fe3f3767ec8ca3251383e9c728
[media] em28xx: fix capture type setting in em28xx_urb_data_copy_vbi()

Set capture type to 1 (video start) when the video frame start header is
detected. This bug didn't cause any trouble, because this type of header is
never received in vbi mode.
Fix it, because we want to use this function with disabled vbi in the future.
Also start with capture type -1 to avoid processing of corrupted/incomplete
frame data which is usually received at streaming start (especially when
USB bulk transfers are used).

Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/em28xx/em28xx-video.c
drivers/media/usb/em28xx/em28xx.h