From: Jaroslav Kysela Date: Sat, 1 Dec 2018 16:37:17 +0000 (+0100) Subject: linuxdvb: add DMX_SET_SOURCE settings at the probe, fixes #5379 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5dcbd69827072ed97e8f2f95e62db0738e939f78;p=thirdparty%2Ftvheadend.git linuxdvb: add DMX_SET_SOURCE settings at the probe, fixes #5379 --- diff --git a/src/input/mpegts/linuxdvb/linuxdvb_frontend.c b/src/input/mpegts/linuxdvb/linuxdvb_frontend.c index f6fc20ce4..19aa2fcc7 100644 --- a/src/input/mpegts/linuxdvb/linuxdvb_frontend.c +++ b/src/input/mpegts/linuxdvb/linuxdvb_frontend.c @@ -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);