Commit 23ba9463 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

V4L/DVB: tm6000: audio packet has always 180 bytes

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent a59bff37
...@@ -239,6 +239,7 @@ static int copy_streams(u8 *data, unsigned long len, ...@@ -239,6 +239,7 @@ static int copy_streams(u8 *data, unsigned long len,
header = *(unsigned long *)ptr; header = *(unsigned long *)ptr;
ptr += 4; ptr += 4;
} }
/* split the header fields */ /* split the header fields */
c = (header >> 24) & 0xff; c = (header >> 24) & 0xff;
size = ((header & 0x7e) << 1); size = ((header & 0x7e) << 1);
...@@ -280,9 +281,11 @@ static int copy_streams(u8 *data, unsigned long len, ...@@ -280,9 +281,11 @@ static int copy_streams(u8 *data, unsigned long len,
cmd = TM6000_URB_MSG_ERR; cmd = TM6000_URB_MSG_ERR;
dev->isoc_ctl.vfield = field; dev->isoc_ctl.vfield = field;
break; break;
case TM6000_URB_MSG_AUDIO:
case TM6000_URB_MSG_VBI: case TM6000_URB_MSG_VBI:
break;
case TM6000_URB_MSG_AUDIO:
case TM6000_URB_MSG_PTS: case TM6000_URB_MSG_PTS:
cpysize = pktsize; /* Size is always 180 bytes */
break; break;
} }
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment