Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181644
b: refs/heads/master
c: 126cd4b
h: refs/heads/master
v: v3
  • Loading branch information
Oliver Endriss authored and Mauro Carvalho Chehab committed Feb 26, 2010
1 parent 532a10b commit ca3972a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 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: 948a119547cf5043b40c2151d6f6913fbcf65e38
refs/heads/master: 126cd4bc5fa9cdbedb89bbe7e568140c94900ca7
1 change: 1 addition & 0 deletions trunk/drivers/media/dvb/dvb-core/dvb_ringbuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ void dvb_ringbuffer_flush(struct dvb_ringbuffer *rbuf)
rbuf->pread = rbuf->pwrite;
rbuf->error = 0;
}
EXPORT_SYMBOL(dvb_ringbuffer_flush);

void dvb_ringbuffer_reset(struct dvb_ringbuffer *rbuf)
{
Expand Down
16 changes: 2 additions & 14 deletions trunk/drivers/media/dvb/ngene/ngene-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,6 @@ DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr);
#define ngcpyfrom(dst, adr, count) memcpy_fromio((dst), (char *) \
(dev->iomem + (adr)), (count))

/****************************************************************************/
/* Functions with missing kernel exports ************************************/
/****************************************************************************/

/* yeah, let's throw out all exports which are not used in kernel ... */

void my_dvb_ringbuffer_flush(struct dvb_ringbuffer *rbuf)
{
rbuf->pread = rbuf->pwrite;
rbuf->error = 0;
}

/****************************************************************************/
/* nGene interrupt handler **************************************************/
/****************************************************************************/
Expand Down Expand Up @@ -1518,7 +1506,7 @@ static void set_transfer(struct ngene_channel *chan, int state)

/* printk(KERN_INFO DEVICE_NAME ": lock=%08x\n",
ngreadl(0x9310)); */
my_dvb_ringbuffer_flush(&dev->tsout_rbuf);
dvb_ringbuffer_flush(&dev->tsout_rbuf);
control = 0x80;
if (chan->mode & (NGENE_IO_TSIN | NGENE_IO_TSOUT)) {
chan->Capture1Length = 512 * 188;
Expand Down Expand Up @@ -1549,7 +1537,7 @@ static void set_transfer(struct ngene_channel *chan, int state)
if (!state) {
spin_lock_irq(&chan->state_lock);
chan->pBufferExchange = 0;
my_dvb_ringbuffer_flush(&dev->tsout_rbuf);
dvb_ringbuffer_flush(&dev->tsout_rbuf);
spin_unlock_irq(&chan->state_lock);
}
}
Expand Down

0 comments on commit ca3972a

Please sign in to comment.