提交 423c79e3 编写于 作者: S Stefan Ringel 提交者: Mauro Carvalho Chehab

[media] tm6000: fix uninitialized field, change prink to dprintk

fix uninitialized field, change prink to dprintk
Signed-off-by: NStefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 2a7b6a40
...@@ -39,7 +39,7 @@ struct usb_isoc_ctl { ...@@ -39,7 +39,7 @@ struct usb_isoc_ctl {
int pos, size, pktsize; int pos, size, pktsize;
/* Last field: ODD or EVEN? */ /* Last field: ODD or EVEN? */
int vfield; int vfield, field;
/* Stores incomplete commands */ /* Stores incomplete commands */
u32 tmp_buf; u32 tmp_buf;
......
...@@ -334,6 +334,7 @@ static int copy_streams(u8 *data, unsigned long len, ...@@ -334,6 +334,7 @@ static int copy_streams(u8 *data, unsigned long len,
size = dev->isoc_ctl.size; size = dev->isoc_ctl.size;
pos = dev->isoc_ctl.pos; pos = dev->isoc_ctl.pos;
pktsize = dev->isoc_ctl.pktsize; pktsize = dev->isoc_ctl.pktsize;
field = dev->isoc_ctl.field;
} }
cpysize = (endp - ptr > size) ? size : endp - ptr; cpysize = (endp - ptr > size) ? size : endp - ptr;
if (cpysize) { if (cpysize) {
...@@ -359,7 +360,8 @@ static int copy_streams(u8 *data, unsigned long len, ...@@ -359,7 +360,8 @@ static int copy_streams(u8 *data, unsigned long len,
/* Need some code to copy pts */ /* Need some code to copy pts */
u32 pts; u32 pts;
pts = *(u32 *)ptr; pts = *(u32 *)ptr;
printk(KERN_INFO "%s: field %d, PTS %x", dev->name, field, pts); dprintk(dev, V4L2_DEBUG_ISOC, "field %d, PTS %x",
field, pts);
break; break;
} }
} }
...@@ -371,6 +373,7 @@ static int copy_streams(u8 *data, unsigned long len, ...@@ -371,6 +373,7 @@ static int copy_streams(u8 *data, unsigned long len,
dev->isoc_ctl.pos = pos + cpysize; dev->isoc_ctl.pos = pos + cpysize;
dev->isoc_ctl.size = size - cpysize; dev->isoc_ctl.size = size - cpysize;
dev->isoc_ctl.cmd = cmd; dev->isoc_ctl.cmd = cmd;
dev->isoc_ctl.field = field;
dev->isoc_ctl.pktsize = pktsize - (endp - ptr); dev->isoc_ctl.pktsize = pktsize - (endp - ptr);
ptr += endp - ptr; ptr += endp - ptr;
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册