Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
linuxdvb: add 'C-Band (bandstack)' LNB type, fixes #3800
  • Loading branch information
perexg committed May 13, 2016
1 parent 115e1e0 commit 5cbc518
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion src/input/mpegts/linuxdvb/linuxdvb_lnb.c
Expand Up @@ -83,6 +83,14 @@ linuxdvb_lnb_standard_freq
return (uint32_t)abs(f);
}

static int
linuxdvb_lnb_bandstack_match
( linuxdvb_lnb_t *l, dvb_mux_t *lm1, dvb_mux_t *lm2 )
{
/* everything is in one cable */
return 1;
}

static int
linuxdvb_lnb_standard_match
( linuxdvb_lnb_t *l, dvb_mux_t *lm1, dvb_mux_t *lm2 )
Expand Down Expand Up @@ -234,6 +242,20 @@ struct linuxdvb_lnb_conf linuxdvb_lnb_all[] = {
.lnb_high = 0,
.lnb_switch = 0,
},
{
{ {
.ld_type = "C-Band (bandstack)",
.ld_tune = linuxdvb_lnb_standard_tune,
},
.lnb_freq = linuxdvb_lnb_bandstack_freq,
.lnb_match = linuxdvb_lnb_bandstack_match,
.lnb_band = linuxdvb_lnb_bandstack_band,
.lnb_pol = linuxdvb_lnb_bandstack_pol,
},
.lnb_low = 5150000,
.lnb_high = 5750000,
.lnb_switch = 0,
},
{
{ {
.ld_type = "Ku 10750",
Expand Down Expand Up @@ -324,7 +346,7 @@ struct linuxdvb_lnb_conf linuxdvb_lnb_all[] = {
.ld_tune = linuxdvb_lnb_standard_tune,
},
.lnb_freq = linuxdvb_lnb_bandstack_freq,
.lnb_match = linuxdvb_lnb_standard_match,
.lnb_match = linuxdvb_lnb_bandstack_match,
.lnb_band = linuxdvb_lnb_bandstack_band,
.lnb_pol = linuxdvb_lnb_bandstack_pol,
},
Expand Down

0 comments on commit 5cbc518

Please sign in to comment.