[Linux-kernel-mentees] [RFC 0/3] Implement a virtual DVB driver

Daniel W. S. Almeida dwlsalmeida at gmail.com
Wed Mar 18 06:00:15 UTC 2020


From: "Daniel W. S. Almeida" <dwlsalmeida at gmail.com>

This series is work in progress. It represents the current work done on a 
virtual DVB driver for the Linux media subsystem.

I am new to the subsystem and to DTV in general, please take that into account.

Currently I have written a simple fake tuner and I have been working on
getting PSI packets into a TS stream and then feeding the stream to the
hardware-independent demux layer. I have been basing my work on ISO 13818,
ETSI EN 300 468 and on a real MPEG Transport Stream excerpt.

I am aware that the first patch generates plenty of warnings due to floating
point to integer implicit conversions. I still have to rework that.

The last patch in the series is also WIP, it still misses a set_frontend()
implementation among other things. This will be sorted soon.

A few bits of code were taken from libdvbv5, mostly the structs for the
PSI tables.

I appreciate any comments to improve this.

Thank you.

Daniel W. S. Almeida (3):
  media: dvb_dummy_tuner: implement driver skeleton
  media: dvb_dummy_fe.c: lose TS lock on bad snr
  media: dvb_dummy_fe.c: write PSI information into DMX buffer

 drivers/media/dvb-frontends/dvb_dummy_fe.c | 1538 +++++++++++++++++++-
 drivers/media/tuners/Kconfig               |    9 +
 drivers/media/tuners/Makefile              |    1 +
 drivers/media/tuners/dvb_dummy_tuner.c     |  421 ++++++
 4 files changed, 1963 insertions(+), 6 deletions(-)
 create mode 100644 drivers/media/tuners/dvb_dummy_tuner.c

-- 
2.25.1



More information about the Linux-kernel-mentees mailing list