[media] tm6000: add pts logging
authorStefan Ringel <stefan.ringel@arcor.de>
Mon, 9 May 2011 19:54:02 +0000 (16:54 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 20 May 2011 23:08:32 +0000 (20:08 -0300)
Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/tm6000/tm6000-video.c

index 2d83204883ad7062ed7fee477fb8bf7f368bc3c2..48023965656ce60c725c4dcff18db629e2f0e269 100644 (file)
@@ -355,10 +355,14 @@ static int copy_streams(u8 *data, unsigned long len,
                        case TM6000_URB_MSG_VBI:
                                /* Need some code to copy vbi buffer */
                                break;
-                       case TM6000_URB_MSG_PTS:
+                       case TM6000_URB_MSG_PTS: {
                                /* Need some code to copy pts */
+                               u32 pts;
+                               pts = *(u32 *)ptr;
+                               printk(KERN_INFO "%s: field %d, PTS %x", dev->name, field, pts);
                                break;
                        }
+                       }
                }
                if (ptr + pktsize > endp) {
                        /* End of URB packet, but cmd processing is not