Skip to content

Commit

Permalink
V4L/DVB: tm6000: audio packet has always 180 bytes
Browse files Browse the repository at this point in the history
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mauro Carvalho Chehab committed Aug 2, 2010
1 parent a59bff3 commit 23ba946
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/staging/tm6000/tm6000-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ static int copy_streams(u8 *data, unsigned long len,
header = *(unsigned long *)ptr;
ptr += 4;
}

/* split the header fields */
c = (header >> 24) & 0xff;
size = ((header & 0x7e) << 1);
Expand Down Expand Up @@ -280,9 +281,11 @@ static int copy_streams(u8 *data, unsigned long len,
cmd = TM6000_URB_MSG_ERR;
dev->isoc_ctl.vfield = field;
break;
case TM6000_URB_MSG_AUDIO:
case TM6000_URB_MSG_VBI:
break;
case TM6000_URB_MSG_AUDIO:
case TM6000_URB_MSG_PTS:
cpysize = pktsize; /* Size is always 180 bytes */
break;
}
} else {
Expand Down

0 comments on commit 23ba946

Please sign in to comment.