[media] tm6000: add pts logging

Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Stefan Ringel 2011-05-09 16:54:02 -03:00 committed by Mauro Carvalho Chehab
parent 1f385717c9
commit 2f349daa01
1 changed files with 5 additions and 1 deletions

View 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