From: Mauro Carvalho Chehab Date: Mon, 7 Jun 2010 14:57:28 +0000 (-0300) Subject: V4L/DVB: tm6000: audio packet has always 180 bytes X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=23ba94633db4311f06f57f0f53d6715feab6a018;p=linux-beck.git V4L/DVB: tm6000: audio packet has always 180 bytes Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/staging/tm6000/tm6000-video.c b/drivers/staging/tm6000/tm6000-video.c index 34e8ef5c2277..6bf2b1387bd0 100644 --- a/drivers/staging/tm6000/tm6000-video.c +++ b/drivers/staging/tm6000/tm6000-video.c @@ -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); @@ -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 {