diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-06-07 11:57:28 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-08-02 14:05:59 -0300 |
commit | 23ba94633db4311f06f57f0f53d6715feab6a018 (patch) | |
tree | 09a521e8c37fed056f9063143d712106664d88ef /drivers/staging | |
parent | a59bff3714a0f568f25816772ee939796cc7741d (diff) |
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.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/staging/tm6000/tm6000-video.c b/drivers/staging/tm6000/tm6000-video.c index 34e8ef5c227..6bf2b1387bd 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 { |