Skip to content

Instantly share code, notes, and snippets.

@okatkov
Created November 24, 2019 20:10
Show Gist options
  • Select an option

  • Save okatkov/277b6480ea90bcf5e72038a8db352814 to your computer and use it in GitHub Desktop.

Select an option

Save okatkov/277b6480ea90bcf5e72038a8db352814 to your computer and use it in GitHub Desktop.
Hack to make linuxtv-dvb-apps work with Kernel >= 4.14
diff -r 3d43b280298c util/dst-utils/dst_test.c
--- a/util/dst-utils/dst_test.c Fri Mar 21 20:26:36 2014 +0100
+++ b/util/dst-utils/dst_test.c Sun Jan 07 22:41:44 2018 +0100
@@ -36,6 +36,15 @@
#define CA_NODE "/dev/dvb/adapter0/ca0"
+//https://github.com/braice/MuMuDVB/commit/596f7dbebd2590f7e77cf755af46952f340ddb97
+#ifndef CA_SET_PID
+typedef struct ca_pid {
+ unsigned int pid;
+ int index; /* -1 == disable*/
+ } ca_pid_t;
+//We should not be able to get it so a number that is unlikely to happen
+#define CA_SET_PID 42424242
+#endif
+
static int dst_comms(int cafd, uint32_t tag, uint32_t function, struct ca_msg *msg)
{
if (tag) {
diff -r 3d43b280298c util/scan/Makefile
--- a/util/scan/Makefile Fri Mar 21 20:26:36 2014 +0100
+++ b/util/scan/Makefile Sun Jan 07 22:41:44 2018 +0100
@@ -25,6 +25,6 @@
$(objects): atsc_psip_section.c atsc_psip_section.h
atsc_psip_section.c atsc_psip_section.h:
- perl section_generate.pl atsc_psip_section.pl
+ perl section_generate.pl ./atsc_psip_section.pl
include ../../Make.rules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment