mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
V4L/DVB: DVB: Export dvb_ringbuffer_flush() again
Add EXPORT_SYMBOL(dvb_ringbuffer_flush) again, replace my_dvb_ringbuffer_flush() in ngene driver. Signed-off-by: Oliver Endriss <o.endriss@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
948a119547
commit
126cd4bc5f
@ -89,6 +89,7 @@ void dvb_ringbuffer_flush(struct dvb_ringbuffer *rbuf)
|
|||||||
rbuf->pread = rbuf->pwrite;
|
rbuf->pread = rbuf->pwrite;
|
||||||
rbuf->error = 0;
|
rbuf->error = 0;
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL(dvb_ringbuffer_flush);
|
||||||
|
|
||||||
void dvb_ringbuffer_reset(struct dvb_ringbuffer *rbuf)
|
void dvb_ringbuffer_reset(struct dvb_ringbuffer *rbuf)
|
||||||
{
|
{
|
||||||
|
@ -76,18 +76,6 @@ DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr);
|
|||||||
#define ngcpyfrom(dst, adr, count) memcpy_fromio((dst), (char *) \
|
#define ngcpyfrom(dst, adr, count) memcpy_fromio((dst), (char *) \
|
||||||
(dev->iomem + (adr)), (count))
|
(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 **************************************************/
|
/* nGene interrupt handler **************************************************/
|
||||||
/****************************************************************************/
|
/****************************************************************************/
|
||||||
@ -1518,7 +1506,7 @@ static void set_transfer(struct ngene_channel *chan, int state)
|
|||||||
|
|
||||||
/* printk(KERN_INFO DEVICE_NAME ": lock=%08x\n",
|
/* printk(KERN_INFO DEVICE_NAME ": lock=%08x\n",
|
||||||
ngreadl(0x9310)); */
|
ngreadl(0x9310)); */
|
||||||
my_dvb_ringbuffer_flush(&dev->tsout_rbuf);
|
dvb_ringbuffer_flush(&dev->tsout_rbuf);
|
||||||
control = 0x80;
|
control = 0x80;
|
||||||
if (chan->mode & (NGENE_IO_TSIN | NGENE_IO_TSOUT)) {
|
if (chan->mode & (NGENE_IO_TSIN | NGENE_IO_TSOUT)) {
|
||||||
chan->Capture1Length = 512 * 188;
|
chan->Capture1Length = 512 * 188;
|
||||||
@ -1549,7 +1537,7 @@ static void set_transfer(struct ngene_channel *chan, int state)
|
|||||||
if (!state) {
|
if (!state) {
|
||||||
spin_lock_irq(&chan->state_lock);
|
spin_lock_irq(&chan->state_lock);
|
||||||
chan->pBufferExchange = 0;
|
chan->pBufferExchange = 0;
|
||||||
my_dvb_ringbuffer_flush(&dev->tsout_rbuf);
|
dvb_ringbuffer_flush(&dev->tsout_rbuf);
|
||||||
spin_unlock_irq(&chan->state_lock);
|
spin_unlock_irq(&chan->state_lock);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user