diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-06-30 16:24:28 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-08-02 13:06:02 -0400 |
commit | ccfb30288228aaaf40a849bffe434bc9eb46b23c (patch) | |
tree | 67662f13ac99c56eb7dbf942341d8f35458ee6e7 /drivers | |
parent | 758bb0b3e77d7876b76e48b4ac20f473be004421 (diff) |
V4L/DVB: tm6000: Partially revert some copybuf logic
Partially revert changeset 0208bef609242a2d50b95edc713a41566cae500b:
As pointed by Stefan Ringel <stefan.ringel@arcor.de>, many packets become
damaged by this change. That means that the "size" field of Video/VBI is not
presenting 180 bytes, as it should be expected.
Thanks-to: Stefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/tm6000/tm6000-video.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/tm6000/tm6000-video.c b/drivers/staging/tm6000/tm6000-video.c index fd36b36407c5..ce0a089a0771 100644 --- a/drivers/staging/tm6000/tm6000-video.c +++ b/drivers/staging/tm6000/tm6000-video.c | |||
@@ -314,7 +314,7 @@ static int copy_streams(u8 *data, unsigned long len, | |||
314 | break; | 314 | break; |
315 | } | 315 | } |
316 | } | 316 | } |
317 | if (cpysize < size) { | 317 | if (ptr + pktsize > endp) { |
318 | /* End of URB packet, but cmd processing is not | 318 | /* End of URB packet, but cmd processing is not |
319 | * complete. Preserve the state for a next packet | 319 | * complete. Preserve the state for a next packet |
320 | */ | 320 | */ |
@@ -322,7 +322,7 @@ static int copy_streams(u8 *data, unsigned long len, | |||
322 | dev->isoc_ctl.size = size - cpysize; | 322 | dev->isoc_ctl.size = size - cpysize; |
323 | dev->isoc_ctl.cmd = cmd; | 323 | dev->isoc_ctl.cmd = cmd; |
324 | dev->isoc_ctl.pktsize = pktsize - (endp - ptr); | 324 | dev->isoc_ctl.pktsize = pktsize - (endp - ptr); |
325 | ptr += cpysize; | 325 | ptr += endp - ptr; |
326 | } else { | 326 | } else { |
327 | dev->isoc_ctl.cmd = 0; | 327 | dev->isoc_ctl.cmd = 0; |
328 | ptr += pktsize; | 328 | ptr += pktsize; |