Dear all,

Anyone who have a tm6000 compatible analog device, please do try out this patch.

Its working for me on a tm5600 using mplayer. It can be compile
against the latest hg tree.


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)
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to