Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2f349daa authored by Stefan Ringel's avatar Stefan Ringel Committed by Mauro Carvalho Chehab
Browse files

[media] tm6000: add pts logging

parent 1f385717
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -355,11 +355,15 @@ 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
			 * complete. Preserve the state for a next packet