From 23ba94633db4311f06f57f0f53d6715feab6a018 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Mon, 7 Jun 2010 11:57:28 -0300 Subject: [PATCH] V4L/DVB: tm6000: audio packet has always 180 bytes Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/tm6000/tm6000-video.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 { -- 2.30.2