@@ -157,7 +157,7 @@
/* Cleans up buffer - Usefull for testing for frame/URB loss */
outp = videobuf_to_vmalloc(&(*buf)->vb);
- memset(outp, 0, (*buf)->vb.size);
+// memset(outp, 0, (*buf)->vb.size);
#endif
return;
@@ -291,7 +291,8 @@
start_line=line;
last_field=field;
}
- last_line=line;
+ if (cmd == TM6000_URB_MSG_VIDEO)
+ last_line=line;
pktsize = TM6000_URB_MSG_LEN;
} else {
@@ -502,7 +503,7 @@
unsigned long copied;
get_next_buf(dma_q, &buf);
- if (!buf)
+ if (buf)
outp = videobuf_to_vmalloc(&buf->vb);
if (!outp)