V4L/DVB: tm6000: audio packet has always 180 bytes
authorMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 7 Jun 2010 14:57:28 +0000 (11:57 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 2 Aug 2010 17:05:59 +0000 (14:05 -0300)
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/tm6000/tm6000-video.c

index 34e8ef5c2277efdb0b249df03215fdf5173940a1..6bf2b1387bd006a2f52d56e6708c7312037e6717 100644 (file)
@@ -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 {