Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Universal disable workarounds - option
  • Loading branch information
WereCatf authored and perexg committed May 5, 2015
1 parent 12f4d78 commit d909d2d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/input/mpegts/satip/satip.c
Expand Up @@ -225,10 +225,10 @@ const idclass_t satip_device_class =
},
{
.type = PT_BOOL,
.id = "disablefritz",
.name = "Disable FRITZ!-specific workarounds",
.id = "disableworkarounds",
.name = "Disable device-/firmware-specific workarounds",
.opts = PO_ADVANCED,
.off = offsetof(satip_device_t, sd_no_fritz_workarounds),
.off = offsetof(satip_device_t, sd_disable_workarounds),
},
{
.type = PT_STR,
Expand Down Expand Up @@ -385,6 +385,8 @@ satip_device_calc_uuid( tvh_uuid_t *uuid, const char *satip_uuid )
static void
satip_device_hack( satip_device_t *sd )
{
if(sd->sd_disable_workarounds)
return;
if (sd->sd_info.deviceid[0] &&
strcmp(sd->sd_info.server, "Linux/1.0 UPnP/1.1 IDL4K/1.0") == 0) {
/* AXE Linux distribution - Inverto firmware */
Expand All @@ -406,14 +408,12 @@ satip_device_hack( satip_device_t *sd )
sd->sd_pids_len = 2048;
sd->sd_no_univ_lnb = 1;
} else if (strstr(sd->sd_info.manufacturer, "AVM Berlin") &&
strstr(sd->sd_info.modelname, "FRITZ!") &&
sd->sd_no_fritz_workarounds != 1) {
strstr(sd->sd_info.modelname, "FRITZ!")) {
sd->sd_fullmux_ok = 0;
sd->sd_pids_deladd = 0;
sd->sd_pids0 = 1;
sd->sd_pids21 = 1;
}

}

static satip_device_t *
Expand Down
2 changes: 1 addition & 1 deletion src/input/mpegts/satip/satip_private.h
Expand Up @@ -89,7 +89,7 @@ struct satip_device
int sd_pilot_on;
int sd_no_univ_lnb;
int sd_dbus_allow;
int sd_no_fritz_workarounds;
int sd_disable_workarounds;
pthread_mutex_t sd_tune_mutex;
};

Expand Down

0 comments on commit d909d2d

Please sign in to comment.