Skip to content

Commit

Permalink
[media] it913x: fix correct endpoint size when pid filter on
Browse files Browse the repository at this point in the history
I kept the count as the hardware default with dvb-usb-v2, with 5, users
can still run in to trouble with Video PIDs.
I have traced it to an incorrect endpoint size when the PID filter
is enabled. It also affected USB 2.0 with the filter on.

Reported-by: Antti Palosaari <crope@iki.fi>
Tested-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Malcolm Priestley authored and Mauro Carvalho Chehab committed Dec 23, 2012
1 parent e5f670b commit 341068f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/media/usb/dvb-usb-v2/it913x.c
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,8 @@ static int it913x_frontend_attach(struct dvb_usb_adapter *adap)
struct it913x_state *st = d->priv;
int ret = 0;
u8 adap_addr = I2C_BASE_ADDR + (adap->id << 5);
u16 ep_size = adap->stream.buf_size / 4;
u16 ep_size = (adap->pid_filtering) ? TS_BUFFER_SIZE_PID / 4 :
TS_BUFFER_SIZE_MAX / 4;
u8 pkt_size = 0x80;

if (d->udev->speed != USB_SPEED_HIGH)
Expand Down

0 comments on commit 341068f

Please sign in to comment.