Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Restructuring
  • Loading branch information
WereCatf authored and perexg committed May 5, 2015
1 parent 6a9cdc8 commit 12f4d78
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
24 changes: 15 additions & 9 deletions src/input/mpegts/satip/satip.c
Expand Up @@ -223,6 +223,13 @@ const idclass_t satip_device_class =
.opts = PO_ADVANCED,
.off = offsetof(satip_device_t, sd_bindaddr),
},
{
.type = PT_BOOL,
.id = "disablefritz",
.name = "Disable FRITZ!-specific workarounds",
.opts = PO_ADVANCED,
.off = offsetof(satip_device_t, sd_no_fritz_workarounds),
},
{
.type = PT_STR,
.id = "addr",
Expand Down Expand Up @@ -398,7 +405,15 @@ satip_device_hack( satip_device_t *sd )
sd->sd_pids_max = 128;
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) {
sd->sd_fullmux_ok = 0;
sd->sd_pids_deladd = 0;
sd->sd_pids0 = 1;
sd->sd_pids21 = 1;
}

}

static satip_device_t *
Expand All @@ -424,15 +439,6 @@ satip_device_create( satip_device_info_t *info )
sd->sd_sig_scale = 240;
sd->sd_dbus_allow = 1;

/* safe defaults for FRITZ!-devices */
if (strstr(info->manufacturer, "AVM Berlin") &&
strstr(info->modelname, "FRITZ!")) {
sd->sd_fullmux_ok = 0;
sd->sd_pids_deladd = 0;
sd->sd_pids0 = 1;
sd->sd_pids21 = 1;
}

if (!tvh_hardware_create0((tvh_hardware_t*)sd, &satip_device_class,
uuid.hex, conf)) {
/* Note: sd is freed in above fcn */
Expand Down
1 change: 1 addition & 0 deletions src/input/mpegts/satip/satip_private.h
Expand Up @@ -89,6 +89,7 @@ struct satip_device
int sd_pilot_on;
int sd_no_univ_lnb;
int sd_dbus_allow;
int sd_no_fritz_workarounds;
pthread_mutex_t sd_tune_mutex;
};

Expand Down

0 comments on commit 12f4d78

Please sign in to comment.