Parsing the LNB needs to be done for proper tuning.

Signed-off-by: Guy Martin <gms...@tuxicoman.be>
---
 utils/dvb/dvbv5-zap.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/utils/dvb/dvbv5-zap.c b/utils/dvb/dvbv5-zap.c
index c84cf70..d6c1152 100644
--- a/utils/dvb/dvbv5-zap.c
+++ b/utils/dvb/dvbv5-zap.c
@@ -165,6 +165,15 @@ static int parse(struct arguments *args,
                return -3;
        }
 
+       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 (entry->video_pid) {
                if (args->n_vpid < entry->video_pid_len)
                        *vpid = entry->video_pid[args->n_vpid];
-- 
1.8.1.5


--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to