@@ -436,6 +436,20 @@ static int run_scan(struct arguments *args,
}
}
+ /* Copy sat parameters */
+ if (dvb_fe_is_satellite(parms->current_sys)) {
+ parms->pol = entry->pol;
+ /* If an LNB is specified for this entry, parse it */
+ if (entry->lnb) {
+ int lnb = dvb_sat_search_lnb(entry->lnb);
+ if (lnb == -1) {
+ PERROR("unknown LNB %s\n", entry->lnb);
+ return -1;
+ }
+ parms->lnb = dvb_sat_get_lnb(lnb);
+ }
+ }
+
/*
* If the channel file has duplicated frequencies, or some
* entries without any frequency at all, discard.
@@ -237,6 +237,20 @@ static int parse(struct arguments *args,
}
}
+ /* Copy sat parameters */
+ if (dvb_fe_is_satellite(parms->current_sys)) {
+ parms->pol = entry->pol;
+ /* If an LNB is specified for this entry, parse it */
+ if (entry->lnb) {
+ int lnb = dvb_sat_search_lnb(entry->lnb);
+ if (lnb == -1) {
+ PERROR("unknown LNB %s\n", entry->lnb);
+ return -1;
+ }
+ parms->lnb = dvb_sat_get_lnb(lnb);
+ }
+ }
+
#if 0
/* HACK to test the write file function */
write_dvb_file("dvb_channels.conf", dvb_file);
Copy satellite parameters to the frontend params. Since an LNB can be specified in the channel/tuning file, set it correctly as well. Signed-off-by: Guy Martin <gmsoft@tuxicoman.be>