summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
authorAlex Woods <devnull@localhost>2003-06-03 18:13:51 +0000
committerAlex Woods <devnull@localhost>2003-06-03 18:13:51 +0000
commitc63cacdc5511a98ffb6495b40eb389811c00535d (patch)
tree4a1c7396519f07a04894fb6b8291c27efd16d66f /linux/drivers/media
parent00699a4029ce618643bb164cde178e6deccfbccb (diff)
downloadmediapointer-dvb-s2-c63cacdc5511a98ffb6495b40eb389811c00535d.tar.gz
mediapointer-dvb-s2-c63cacdc5511a98ffb6495b40eb389811c00535d.tar.bz2
Stop usb semaphore clobbering itself
Diffstat (limited to 'linux/drivers/media')
-rw-r--r--linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c8
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 1e9d8ddc6..63cf6251a 100644
--- a/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c
+++ b/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c
@@ -520,6 +520,7 @@ ttusb_dec_stop_iso_xfer(struct ttusb_dec * dec)
{
int i;
+ u8 b0[] = { 0x00 };
dprintk("%s\n", __FUNCTION__);
@@ -530,17 +531,16 @@ 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