]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
linuxdvb: add DMX_SET_SOURCE settings at the probe, fixes #5379
authorJaroslav Kysela <perex@perex.cz>
Sat, 1 Dec 2018 16:37:17 +0000 (17:37 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sat, 1 Dec 2018 16:37:17 +0000 (17:37 +0100)
src/input/mpegts/linuxdvb/linuxdvb_frontend.c

index f6fc20ce47d7d1f23e4a8ea8a563b40438461e03..19aa2fcc739aa9de9a9fa41bd4fe5b03290839fa 100644 (file)
@@ -2096,6 +2096,7 @@ linuxdvb_frontend_create
   linuxdvb_frontend_t *lfe;
   htsmsg_t *scconf;
   ssize_t r;
+  int fd;
 
   /* Internal config ID */
   snprintf(id, sizeof(id), "%s #%d", dvb_type2str(type), number);
@@ -2220,6 +2221,13 @@ linuxdvb_frontend_create
     lfe->lfe_satconf = linuxdvb_satconf_create(lfe, scconf);
   }
 
+  /* Special enigma2 settings - DMX_SET_SOURCE */
+  fd = tvh_open(lfe->lfe_dmx_path, O_RDWR, 0);
+  if (fd >= 0) {
+    ioctl(fd, _IOW('o', 49, int), &lfe->lfe_number);
+    close(fd);
+  }
+
   /* Double check enabled */
   linuxdvb_frontend_enabled_updated((mpegts_input_t*)lfe);