This series is on the top of the series sent by Daniel: https://lore.kernel.org/linux-media/20201031150552.663598-1-dwlsalmeida@xxxxxxxxx/ It address several issues at the driver: - Fix error logic, specially handling troubles with memory alloc functions; - Fix issues at PMT, SDT and EIT tables, making EIT work fine (tested with Kaffeine); - Fix issues at the tone generator; - Pass MPEG-TS var structs as pointers; - Avoid re-initializing struct fields; - Improves driver documentation; - Do several other cleanups and fixes. As there are lots of fixes here, and the driver will only appear on Kernel 5.10, my plan is to merge those, together with Daniel's patches for Kernel 5.10. Regards, Mauro Mauro Carvalho Chehab (31): media: vidtv: reorganize includes media: vidtv: add error checks media: vidtv: don't use recursive functions media: vidtv: fix the name of the program media: vidtv: fix the tone generator logic media: vidtv: fix some notes at the tone generator media: vidtv: avoid data copy when initializing the multiplexer media: vidtv: avoid copying data for PES structs media: vidtv: do some cleanups at the driver media: vidtv: remove some unused functions media: vidtv: pre-initialize mux arrays media: vidtv: cleanup null packet initialization logic media: vidtv: improve EIT data media: vidtv: fix the network ID range media: vidtv: properly fill EIT service_id media: vidtv: add a PID entry for the NIT table media: vidtv: fix service type media: vidtv: fix service_id at SDT table media: vidtv: add date to the current event media: vidtv: simplify PSI write function media: vidtv: simplify the crc writing logic media: vidtv: cleanup PSI descriptor write function media: vidtv: cleanup PSI table header function media: vidtv: cleanup PAT write function media: vidtv: cleanup PMT write table function media: vidtv: simplify SDT write function media: vidtv: simplify NIT write function media: vidtv: simplify EIT write function media: vidtv.rst: update vidtv documentation media: vidtv.rst: add kernel-doc markups media: vidtv: cleanup a few coding style issues .../driver-api/media/drivers/vidtv.rst | 112 +- .../media/test-drivers/vidtv/vidtv_bridge.c | 118 +- .../media/test-drivers/vidtv/vidtv_bridge.h | 4 +- .../media/test-drivers/vidtv/vidtv_channel.c | 220 ++- .../media/test-drivers/vidtv/vidtv_channel.h | 8 +- .../media/test-drivers/vidtv/vidtv_common.h | 1 - .../media/test-drivers/vidtv/vidtv_demod.c | 2 +- .../media/test-drivers/vidtv/vidtv_demod.h | 11 +- .../media/test-drivers/vidtv/vidtv_encoder.h | 6 +- drivers/media/test-drivers/vidtv/vidtv_mux.c | 249 ++-- drivers/media/test-drivers/vidtv/vidtv_mux.h | 10 +- drivers/media/test-drivers/vidtv/vidtv_pes.c | 179 ++- drivers/media/test-drivers/vidtv/vidtv_pes.h | 8 +- drivers/media/test-drivers/vidtv/vidtv_psi.c | 1185 +++++++++-------- drivers/media/test-drivers/vidtv/vidtv_psi.h | 62 +- .../media/test-drivers/vidtv/vidtv_s302m.c | 114 +- .../media/test-drivers/vidtv/vidtv_s302m.h | 8 +- drivers/media/test-drivers/vidtv/vidtv_ts.c | 5 +- drivers/media/test-drivers/vidtv/vidtv_ts.h | 5 +- .../media/test-drivers/vidtv/vidtv_tuner.c | 5 +- .../media/test-drivers/vidtv/vidtv_tuner.h | 1 + 21 files changed, 1325 insertions(+), 988 deletions(-) -- 2.28.0