diff mbox

tm6000: Patch that will fixed analog video (tested on tm5600)

Message ID u2u6e8e83e21004212214i8c186922he28162cbed66d292@mail.gmail.com (mailing list archive)
State Superseded
Headers show

Commit Message

Bee Hock Goh April 22, 2010, 5:14 a.m. UTC
None
diff mbox

Patch

diff -r a539e5b68945 linux/drivers/staging/tm6000/tm6000-video.c
--- a/linux/drivers/staging/tm6000/tm6000-video.c	Sat Mar 27 23:09:47 2010 -0300
+++ b/linux/drivers/staging/tm6000/tm6000-video.c	Thu Apr 22 13:08:19 2010 +0800
@@ -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)