Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
linuxdvb: Added LNA settings to DVB-T for DVBAPI v5.9+, fixes #2784
  • Loading branch information
perexg committed Apr 24, 2015
1 parent d1e6a61 commit 3049486
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/input/mpegts/linuxdvb/linuxdvb_frontend.c
Expand Up @@ -137,6 +137,12 @@ const idclass_t linuxdvb_frontend_dvbt_class =
.ic_class = "linuxdvb_frontend_dvbt",
.ic_caption = "Linux DVB-T Frontend",
.ic_properties = (const property_t[]){
{
.type = PT_BOOL,
.id = "lna",
.name = "LNA (Low Noise Amplifier)",
.off = offsetof(linuxdvb_frontend_t, lfe_lna),
},
{}
}
};
Expand Down Expand Up @@ -1307,6 +1313,9 @@ linuxdvb_frontend_tune0
S2CMD(DTV_DVBT2_PLP_ID, dmc->dmc_fe_stream_id);
#endif
}
#if DVB_VER_ATLEAST(5,9)
S2CMD(DTV_LNA, lfe->lfe_lna ? 1 : 0);
#endif

/* DVB-C */
} else if (lfe->lfe_type == DVB_TYPE_C) {
Expand Down
1 change: 1 addition & 0 deletions src/input/mpegts/linuxdvb/linuxdvb_private.h
Expand Up @@ -145,6 +145,7 @@ struct linuxdvb_frontend
uint32_t lfe_ibuf_size;
uint32_t lfe_status_period;
int lfe_old_status;
int lfe_lna;

/*
* Satconf (DVB-S only)
Expand Down

0 comments on commit 3049486

Please sign in to comment.