Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 199933
b: refs/heads/master
c: 5a2a184
h: refs/heads/master
i:
  199931: 7e7d3de
v: v3
  • Loading branch information
Oliver Endriss authored and Mauro Carvalho Chehab committed Jun 1, 2010
1 parent 811b516 commit e796b7f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 17 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4387418129895fd9aa2e2f6368ea69e9c4ddd0f2
refs/heads/master: 5a2a1848a7d744a437f96b79a655c13b8090e74d
9 changes: 4 additions & 5 deletions trunk/drivers/media/dvb/ngene/ngene-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ MODULE_PARM_DESC(debug, "Print debugging information.");

DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr);

#define COMMAND_TIMEOUT_WORKAROUND

#define dprintk if (debug) printk

#define ngwriteb(dat, adr) writeb((dat), (char *)(dev->iomem + (adr)))
Expand Down Expand Up @@ -1252,14 +1250,17 @@ static int ngene_load_firm(struct ngene *dev)
version = 15;
size = 23466;
fw_name = "ngene_15.fw";
dev->cmd_timeout_workaround = true;
break;
case 16:
size = 23498;
fw_name = "ngene_16.fw";
dev->cmd_timeout_workaround = true;
break;
case 17:
size = 24446;
fw_name = "ngene_17.fw";
dev->cmd_timeout_workaround = true;
break;
}

Expand Down Expand Up @@ -1410,10 +1411,8 @@ static void release_channel(struct ngene_channel *chan)
struct ngene_info *ni = dev->card_info;
int io = ni->io_type[chan->number];

#ifdef COMMAND_TIMEOUT_WORKAROUND
if (chan->running)
if (chan->dev->cmd_timeout_workaround && chan->running)
set_transfer(chan, 0);
#endif

tasklet_kill(&chan->demux_tasklet);

Expand Down
14 changes: 3 additions & 11 deletions trunk/drivers/media/dvb/ngene/ngene-dvb.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@

#include "ngene.h"

#define COMMAND_TIMEOUT_WORKAROUND


/****************************************************************************/
/* COMMAND API interface ****************************************************/
Expand All @@ -69,9 +67,7 @@ void *tsin_exchange(void *priv, void *buf, u32 len, u32 clock, u32 flags)
struct ngene_channel *chan = priv;


#ifdef COMMAND_TIMEOUT_WORKAROUND
if (chan->users > 0)
#endif
dvb_dmx_swfilter(&chan->demux, buf, len);
return NULL;
}
Expand Down Expand Up @@ -106,11 +102,8 @@ int ngene_start_feed(struct dvb_demux_feed *dvbdmxfeed)
struct ngene_channel *chan = dvbdmx->priv;

if (chan->users == 0) {
#ifdef COMMAND_TIMEOUT_WORKAROUND
if (!chan->running)
#endif
if (!chan->dev->cmd_timeout_workaround || !chan->running)
set_transfer(chan, 1);
/* msleep(10); */
}

return ++chan->users;
Expand All @@ -124,9 +117,8 @@ int ngene_stop_feed(struct dvb_demux_feed *dvbdmxfeed)
if (--chan->users)
return chan->users;

#ifndef COMMAND_TIMEOUT_WORKAROUND
set_transfer(chan, 0);
#endif
if (!chan->dev->cmd_timeout_workaround)
set_transfer(chan, 0);

return 0;
}
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/media/dvb/ngene/ngene.h
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,7 @@ struct ngene {
u32 fw_interface_version;
u32 icounts;
bool msi_enabled;
bool cmd_timeout_workaround;

u8 *CmdDoneByte;
int BootFirmware;
Expand Down

0 comments on commit e796b7f

Please sign in to comment.