diff options
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c b/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c index 63cf6251a..1e9d8ddc6 100644 --- a/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c +++ b/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c @@ -520,7 +520,6 @@ ttusb_dec_stop_iso_xfer(struct ttusb_dec * dec) { int i; - u8 b0[] = { 0x00 }; dprintk("%s\n", __FUNCTION__); @@ -531,16 +530,17 @@ ttusb_dec_stop_iso_xfer(struct ttusb_dec * dec) if (!dec->iso_stream_count) { + u8 b0[] = { 0x00 }; + for (i = 0; i < ISO_BUF_COUNT; i++) usb_unlink_urb(dec->iso_urb[i]); + ttusb_dec_send_command(dec, 0x81, sizeof (b0), b0, NULL, NULL); + } up(&dec->iso_sem); - if (!dec->iso_stream_count) - ttusb_dec_send_command(dec, 0x81, sizeof (b0), b0, NULL, NULL); - } static int |