summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c35
1 files changed, 17 insertions, 18 deletions
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 179933c76..a7d7fcb8c 100644
--- a/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
+++ b/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
@@ -30,22 +30,22 @@
#include "compat.h"
/*
- TTUSB_HWSECTIONS:
- the DSP supports filtering in hardware, however, since the "muxstream"
- is a bit braindead (no matching channel masks or no matching filter mask),
- we won't support this - yet. it doesn't event support negative filters,
- so the best way is maybe to keep TTUSB_HWSECTIONS undef'd and just
- parse TS data. USB bandwith will be a problem when having large
- datastreams, especially for dvb-net, but hey, that's not my problem.
+ TTUSB_HWSECTIONS:
+ the DSP supports filtering in hardware, however, since the "muxstream"
+ is a bit braindead (no matching channel masks or no matching filter mask),
+ we won't support this - yet. it doesn't event support negative filters,
+ so the best way is maybe to keep TTUSB_HWSECTIONS undef'd and just
+ parse TS data. USB bandwith will be a problem when having large
+ datastreams, especially for dvb-net, but hey, that's not my problem.
- TTUSB_DISEQC, TTUSB_TONE:
- let the STC do the diseqc/tone stuff. this isn't supported at least with
- my TTUSB, so let it undef'd unless you want to implement another
- frontend. never tested.
+ TTUSB_DISEQC, TTUSB_TONE:
+ let the STC do the diseqc/tone stuff. this isn't supported at least with
+ my TTUSB, so let it undef'd unless you want to implement another
+ frontend. never tested.
- DEBUG:
- define it to > 3 for really hardcore debugging. you probably don't want
- this unless the device doesn't load at all.
+ DEBUG:
+ define it to > 3 for really hardcore debugging. you probably don't want
+ this unless the device doesn't load at all.
*/
static int debug = 1;
@@ -91,6 +91,7 @@ struct ttusb {
struct urb *iso_urb [ISO_BUF_COUNT];
+ int running_feed_count;
int last_channel;
int last_filter;
@@ -863,8 +864,6 @@ struct ttusb_channel * ttusb_channel_allocate(struct ttusb *ttusb)
}
-static int running_feed_count = 0;
-
static
int ttusb_start_feed(struct dvb_demux_feed *dvbdmxfeed)
{
@@ -919,7 +918,7 @@ int ttusb_start_feed(struct dvb_demux_feed *dvbdmxfeed)
ttusb_set_channel (ttusb, channel->id, channel->type, channel->pid);
- if (0 == running_feed_count++)
+ if (0 == ttusb->running_feed_count++)
ttusb_start_iso_xfer (ttusb);
return 0;
@@ -932,7 +931,7 @@ static int ttusb_stop_feed(struct dvb_demux_feed *dvbdmxfeed)
ttusb_del_channel(channel->ttusb, channel->id);
- if (--running_feed_count == 0)
+ if (--ttusb->running_feed_count == 0)
ttusb_stop_iso_xfer (ttusb);
channel->active = 0;