summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-06-07 18:57:28 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-08-02 21:05:59 +0400
commit23ba94633db4311f06f57f0f53d6715feab6a018 (patch)
tree09a521e8c37fed056f9063143d712106664d88ef /drivers/staging
parenta59bff3714a0f568f25816772ee939796cc7741d (diff)
downloadlinux-23ba94633db4311f06f57f0f53d6715feab6a018.tar.xz
V4L/DVB: tm6000: audio packet has always 180 bytes
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/tm6000/tm6000-video.c5
1 files changed, 4 insertions, 1 deletions
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 {