Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 201947
b: refs/heads/master
c: d0669c8
h: refs/heads/master
i:
  201945: db34acd
  201943: 7da6c23
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Aug 2, 2010
1 parent ff5108d commit f6ae245
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 23ba94633db4311f06f57f0f53d6715feab6a018
refs/heads/master: d0669c872ff68cac5ab312569e716c12171440a9
6 changes: 3 additions & 3 deletions trunk/drivers/staging/tm6000/tm6000-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ static int copy_streams(u8 *data, unsigned long len,
break;
case TM6000_URB_MSG_AUDIO:
case TM6000_URB_MSG_PTS:
cpysize = pktsize; /* Size is always 180 bytes */
size = pktsize; /* Size is always 180 bytes */
break;
}
} else {
Expand Down Expand Up @@ -315,15 +315,15 @@ static int copy_streams(u8 *data, unsigned long len,
break;
}
}
if (ptr + pktsize > endp) {
if (cpysize < size) {
/* End of URB packet, but cmd processing is not
* complete. Preserve the state for a next packet
*/
dev->isoc_ctl.pos = pos + cpysize;
dev->isoc_ctl.size = size - cpysize;
dev->isoc_ctl.cmd = cmd;
dev->isoc_ctl.pktsize = pktsize - (endp - ptr);
ptr += endp - ptr;
ptr += cpysize;
} else {
dev->isoc_ctl.cmd = 0;
ptr += pktsize;
Expand Down

0 comments on commit f6ae245

Please sign in to comment.