media: ngene: add proper polling to the dvbdev_ci file ops
authorDaniel Scheller <d.scheller@gmx.net>
Sun, 25 Feb 2018 17:06:56 +0000 (12:06 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 6 Mar 2018 16:19:58 +0000 (11:19 -0500)
commit6294513dbe61ba0ab1d9201cd3b283fe1cfc7617
tree0d4aee8353245be1c343417e217bb5ff0a3b935e
parent96c7bc8c7e9ddbc3887e6f9dc3079d5ab896a3a3
media: ngene: add proper polling to the dvbdev_ci file ops

Implement the poll callback for the dvbdev_ci file ops. The ts_poll()
function queries the DVB ring buffers for available data and space, and
reports this as appropriate. Also, set the dvb_device readers, writers
and users to proper values (one reader, one writer, two users).

This fixes the raw CI TS transport in conjunction with TVheadend's
DDCI functionality.

Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/pci/ngene/ngene-dvb.c