.opts = PO_ADVANCED,
.off = offsetof(satip_device_t, sd_disable_workarounds),
},
+ {
+ .type = PT_BOOL,
+ .id = "sigtunerno",
+ .name = N_("Check tuner-number in signal-status messages"),
+ .desc = N_("This is a workaround for some tuners that mess up "
+ "the numbers of tuners. Turn this off when you are not "
+ "seeing signal strength on all tuners but only on some."),
+ .opts = PO_ADVANCED,
+ .off = offsetof(satip_device_t, sd_sig_tunerno),
+ },
{
.type = PT_STR,
.id = "addr",
sd->sd_pids_deladd = 1;
sd->sd_fe = 1;
sd->sd_sig_scale = 240;
+ sd->sd_sig_tunerno = 1;
sd->sd_dbus_allow = 1;
if (!tvh_hardware_create0((tvh_hardware_t*)sd, &satip_device_class,
mpegts_mux_instance_t *mmi,
uint8_t *rtcp, size_t len )
{
+ const satip_device_t *device = lfe->sf_device;
signal_state_t status;
uint16_t l, sl;
char *s;
__ver12:
if (n < 4)
goto fail;
- if (atoi(argv[0]) != lfe->sf_number)
+ if (atoi(argv[0]) != lfe->sf_number && device->sd_sig_tunerno)
goto fail;
mmi->tii_stats.signal =
- atoi(argv[1]) * 0xffff / lfe->sf_device->sd_sig_scale;
+ atoi(argv[1]) * 0xffff / device->sd_sig_scale;
mmi->tii_stats.signal_scale =
SIGNAL_STATUS_SCALE_RELATIVE;
if (atoi(argv[2]) > 0)
n = http_tokenize(s, argv, ARRAY_SIZE(argv), ',');
if (n < 4)
goto fail;
- if (atoi(argv[0]) != lfe->sf_number)
+ if (atoi(argv[0]) != lfe->sf_number && device->sd_sig_tunerno)
goto fail;
mmi->tii_stats.signal =
- atoi(argv[1]) * 0xffff / lfe->sf_device->sd_sig_scale;
+ atoi(argv[1]) * 0xffff / device->sd_sig_scale;
mmi->tii_stats.signal_scale =
SIGNAL_STATUS_SCALE_RELATIVE;
if (atoi(argv[2]) > 0)
n = http_tokenize(s + 14, argv, 4, ',');
if (n < 4)
goto fail;
- if (atoi(argv[0]) != lfe->sf_number)
+ if (atoi(argv[0]) != lfe->sf_number && device->sd_sig_tunerno)
goto fail;
mmi->tii_stats.signal =
- atoi(argv[1]) * 0xffff / lfe->sf_device->sd_sig_scale;
+ atoi(argv[1]) * 0xffff / device->sd_sig_scale;
mmi->tii_stats.signal_scale =
SIGNAL_STATUS_SCALE_RELATIVE;
if (atoi(argv[2]) > 0)