Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
SAT>IP: Add frequency filter for DVB-S/S2
  • Loading branch information
perexg committed Jan 24, 2015
1 parent 6a27c4c commit 28337dc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/input/mpegts/satip/satip_frontend.c
Expand Up @@ -466,6 +466,7 @@ satip_frontend_start_mux
( mpegts_input_t *mi, mpegts_mux_instance_t *mmi )
{
satip_frontend_t *lfe = (satip_frontend_t*)mi;
dvb_mux_t *lm = (dvb_mux_t *)mmi->mmi_mux;
satip_tune_req_t *tr;
char buf1[256], buf2[256];

Expand All @@ -479,6 +480,16 @@ satip_frontend_start_mux
mpegts_mux_nice_name(mmi->mmi_mux, buf2, sizeof(buf2));
tvhdebug("satip", "%s - starting %s", buf1, buf2);

if (lm->lm_tuning.dmc_fe_delsys == DVB_SYS_DVBS ||
lm->lm_tuning.dmc_fe_delsys == DVB_SYS_DVBS2) {
/* Note: assume universal LNB */
if (lm->lm_tuning.dmc_fe_freq < 10700000 ||
lm->lm_tuning.dmc_fe_freq > 12750000) {
tvhwarn("satip", "DVB-S/S2 frequency %d out of range universal LNB", lm->lm_tuning.dmc_fe_freq);
return SM_CODE_TUNING_FAILED;
}
}

tr = calloc(1, sizeof(*tr));
tr->sf_mmi = mmi;

Expand Down

0 comments on commit 28337dc

Please sign in to comment.