Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Tunercfg override
  • Loading branch information
WereCatf authored and perexg committed May 5, 2015
1 parent bab49c6 commit 6dd7fb9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/html/config_tvadapters.html
Expand Up @@ -186,7 +186,12 @@ <h3>The adapters and tuners are listed / edited in a tree</h3>
<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
Expand Down
8 changes: 8 additions & 0 deletions src/input/mpegts/satip/satip.c
Expand Up @@ -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",
Expand Down Expand Up @@ -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]);
Expand Down
1 change: 1 addition & 0 deletions src/input/mpegts/satip/satip_private.h
Expand Up @@ -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;
Expand Down

0 comments on commit 6dd7fb9

Please sign in to comment.