This is an automatic generated email to let you know that the following patch were queued at the http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:
Subject: dvb-sat: add verbose options for LNBf settings Author: Mauro Carvalho Chehab <mche...@osg.samsung.com> Date: Mon Feb 13 07:28:16 2017 -0200 The logic that sets a LNBf is complex. Be more verbose to help debugging issues there. Signed-off-by: Mauro Carvalho Chehab <mche...@osg.samsung.com> lib/libdvbv5/dvb-sat.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) --- http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=c8b89a5e128fce488adbd1442cf1b4e6f73df2f7 diff --git a/lib/libdvbv5/dvb-sat.c b/lib/libdvbv5/dvb-sat.c index 79008e2fba7a..3ffaa122441a 100644 --- a/lib/libdvbv5/dvb-sat.c +++ b/lib/libdvbv5/dvb-sat.c @@ -588,12 +588,18 @@ static int dvb_sat_get_freq(struct dvb_v5_fe_parms *p, uint16_t *t) dvb_fe_retrieve_parm(&parms->p, DTV_FREQUENCY, &freq); if (!lnb->freqrange[1].low) { + if (parms->p.verbose) + dvb_log("LNBf with a single LO at %.2f MHz", parms->freq_offset/1000.); + /* Trivial case: LNBf with a single local oscilator(LO) */ parms->freq_offset = lnb->freqrange[0].int_freq * 1000; return freq; } if (lnb->freqrange[0].pol) { + if (parms->p.verbose > 1) + dvb_log("LNBf polarity driven"); + /* polarization-controlled multi-LO multipoint LNBf (bandstacking) */ dvb_fe_retrieve_parm(&parms->p, DTV_POLARIZATION, &pol); @@ -607,8 +613,14 @@ static int dvb_sat_get_freq(struct dvb_v5_fe_parms *p, uint16_t *t) return freq; } } else { + if (parms->p.verbose > 1) + dvb_log("Seeking for LO for %.2f MHz frequency", freq / 1000000.); /* Multi-LO (dual-band) LNBf using DiSEqC */ for (j = 0; j < ARRAY_SIZE(lnb->freqrange) && lnb->freqrange[j].low; j++) { + if (parms->p.verbose > 1) + dvb_log("LO setting %i: %.2f MHz to %.2f MHz", j, + lnb->freqrange[j].low / 1000., lnb->freqrange[j].high / 1000.); + if (freq < lnb->freqrange[j].low * 1000 || freq > lnb->freqrange[j].high * 1000) continue; if (lnb->freqrange[j].rangeswitch && freq > lnb->freqrange[j].rangeswitch * 1000) { @@ -628,6 +640,8 @@ static int dvb_sat_get_freq(struct dvb_v5_fe_parms *p, uint16_t *t) dvb_log("BPF: %d KHz", parms->p.freq_bpf); } else { parms->freq_offset = lnb->freqrange[j].int_freq * 1000; + if (parms->p.verbose > 1) + dvb_log("Multi-LO LNBf. using LO setting %i at %.2f MHz", j, parms->freq_offset / 1000.); } return freq; } _______________________________________________ linuxtv-commits mailing list linuxtv-commits@linuxtv.org https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits