Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285155
b: refs/heads/master
c: 4048da2
h: refs/heads/master
i:
  285153: 4eaf17c
  285151: ca73dc9
v: v3
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed Nov 7, 2011
1 parent 14448ab commit 4b20b82
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 05cd37def5e697e158470d826cb75c5607c04bd1
refs/heads/master: 4048da2fa3c8c5088901d2adc4f7b5b5ccc05e79
9 changes: 7 additions & 2 deletions trunk/drivers/media/dvb/dvb-usb/anysee.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,12 @@ static int anysee_ctrl_msg(struct dvb_usb_device *d, u8 *sbuf, u8 slen,
if (mutex_lock_interruptible(&anysee_usb_mutex) < 0)
return -EAGAIN;

deb_xfer(">>> ");
debug_dump(buf, slen, deb_xfer);

/* We need receive one message more after dvb_usb_generic_rw due
to weird transaction flow, which is 1 x send + 2 x receive. */
ret = dvb_usb_generic_rw(d, buf, sizeof(buf), buf, sizeof(buf), 0);

if (!ret) {
/* receive 2nd answer */
ret = usb_bulk_msg(d->udev, usb_rcvbulkpipe(d->udev,
Expand All @@ -80,7 +82,10 @@ static int anysee_ctrl_msg(struct dvb_usb_device *d, u8 *sbuf, u8 slen,
err("%s: recv bulk message failed: %d", __func__, ret);
else {
deb_xfer("<<< ");
debug_dump(buf, act_len, deb_xfer);
debug_dump(buf, rlen, deb_xfer);

if (buf[63] != 0x4f)
deb_info("%s: cmd failed\n", __func__);
}
}

Expand Down

0 comments on commit 4b20b82

Please sign in to comment.