diff options
Diffstat (limited to 'meta-multimedia/recipes-multimedia/dvb-apps/files/0006-CA_SET_PID.patch')
-rw-r--r-- | meta-multimedia/recipes-multimedia/dvb-apps/files/0006-CA_SET_PID.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meta-multimedia/recipes-multimedia/dvb-apps/files/0006-CA_SET_PID.patch b/meta-multimedia/recipes-multimedia/dvb-apps/files/0006-CA_SET_PID.patch new file mode 100644 index 000000000..e100c659e --- /dev/null +++ b/meta-multimedia/recipes-multimedia/dvb-apps/files/0006-CA_SET_PID.patch | |||
@@ -0,0 +1,24 @@ | |||
1 | Index: dvb-apps/util/dst-utils/dst_test.c | ||
2 | =================================================================== | ||
3 | --- dvb-apps.orig/util/dst-utils/dst_test.c | ||
4 | +++ dvb-apps/util/dst-utils/dst_test.c | ||
5 | @@ -35,7 +35,18 @@ | ||
6 | #include <libdvben50221/en50221_app_tags.h> | ||
7 | |||
8 | #define CA_NODE "/dev/dvb/adapter0/ca0" | ||
9 | - | ||
10 | +/* | ||
11 | + Quick hack around the removal of ca_pid_t and CA_GET_PID in recent kernels | ||
12 | + https://github.com/torvalds/linux/commit/833ff5e7feda1a042b83e82208cef3d212ca0ef1 | ||
13 | +*/ | ||
14 | +#ifndef CA_SET_PID | ||
15 | +typedef struct ca_pid { | ||
16 | + unsigned int pid; | ||
17 | + int index; /* -1 == disable*/ | ||
18 | +} ca_pid_t; | ||
19 | +/* We should not be able to get it so a number that is unlikely to happen */ | ||
20 | +#define CA_SET_PID 42424242 | ||
21 | +#endif | ||
22 | static int dst_comms(int cafd, uint32_t tag, uint32_t function, struct ca_msg *msg) | ||
23 | { | ||
24 | if (tag) { | ||