From 8154ccf1c8d99d9e835669b5b33ade2eff8ee6ac Mon Sep 17 00:00:00 2001 From: Alex Woods Date: Sun, 18 Jan 2004 00:28:35 +0000 Subject: Fix for failing urb submission under 2.6 kernels --- linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c b/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c index d0f596f92..3b0387440 100644 --- a/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c +++ b/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c @@ -867,6 +867,9 @@ static int ttusb_start_iso_xfer(struct ttusb *ttusb) urb->complete = ttusb_iso_irq; urb->pipe = ttusb->isoc_in_pipe; urb->transfer_flags = URB_ISO_ASAP; +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0) + urb->interval = 1; +#endif urb->number_of_packets = FRAMES_PER_ISO_BUF; urb->transfer_buffer_length = ISO_FRAME_SIZE * FRAMES_PER_ISO_BUF; -- cgit v1.2.3