]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Tunercfg override
authorWereCatf <werecatf@gmail.com>
Tue, 5 May 2015 07:53:08 +0000 (10:53 +0300)
committerJaroslav Kysela <perex@perex.cz>
Tue, 5 May 2015 21:16:35 +0000 (23:16 +0200)
docs/html/config_tvadapters.html
src/input/mpegts/satip/satip.c
src/input/mpegts/satip/satip_private.h

index 52826a35698258f3f4c0ddb8e10a773cc572656c..f8dd79e138ba2b62dc8b8423dbd87b5d9550c742 100644 (file)
@@ -186,7 +186,12 @@ setting this to 100.</dd>
 <p>
   <dt><b>Send full PLAY cmd</b></dt>
   <dd>Send the full RTSP PLAY command after full RTSP SETUP command. Some
-      device firmwares requires this to get MPEG-TS stream.</dd>
+      device firmwares require this to get MPEG-TS stream.</dd>
+<p>
+  <dt><b>Override tuner count</b></dt>
+  <dd>Force tvheadend to see a specific number of tuners. Some devices, notably 
+      AVM's FRITZ!Box Cable 6490, report wrong number of tuners and this setting
+      allows you to override that. Any value below 1 or above 32 is ignored.</dd>
 <p>
   <dt><b>Force teardown delay</b><dt>
   <dd>Force the delay between RTSP TEARDOWN and RTSP SETUP command (value
index 4306b26c485358ce27b58049ff38992854ea383a..91c2dec344cbf3b1b84ba3051e0cd891f1c495f6 100644 (file)
@@ -202,6 +202,13 @@ const idclass_t satip_device_class =
       .opts     = PO_ADVANCED,
       .off      = offsetof(satip_device_t, sd_pilot_on),
     },
+    {
+      .type     = PT_INT,
+      .id       = "tunercfgoverride",
+      .name     = "Override tuner count",
+      .opts     = PO_ADVANCED,
+      .off      = offsetof(satip_device_t, sd_tunercfg_override),
+    },
     {
       .type     = PT_STR,
       .id       = "bindaddr",
@@ -493,6 +500,7 @@ satip_device_create( satip_device_info_t *info )
       m = atoi(argv[i] + 6);
       v2 = 2;
     }
+    if (sd->sd_tunercfg_override > 0 && sd->sd_tunercfg_override < 33) m = sd->sd_tunercfg_override;
     if (type == DVB_TYPE_NONE) {
       tvhlog(LOG_ERR, "satip", "%s: bad tuner type [%s]",
              satip_device_nicename(sd, buf2, sizeof(buf2)), argv[i]);
index c6044d5223dac12fb8db2599370a53a3772408db..104adec8ced4c5a04465110e0d1702072b563b2e 100644 (file)
@@ -84,6 +84,7 @@ struct satip_device
   int                        sd_pids_deladd;
   int                        sd_sig_scale;
   int                        sd_pids0;
+  int                        sd_tunercfg_override;
   int                        sd_fritz_quirk;
   int                        sd_pilot_on;
   int                        sd_no_univ_lnb;