1
0
mirror of https://github.com/DigitalDevices/dddvb.git synced 2023-10-10 13:37:43 +02:00

add debugging output for actually tuned frequency

This commit is contained in:
rjkm 2021-08-07 22:35:22 +02:00
parent fd21dbbd5e
commit 0a5fb7d6b9

View File

@ -329,7 +329,7 @@ static void calc_lq(struct dddvb_fe *fe)
{ {
struct dtv_fe_stats st; struct dtv_fe_stats st;
int64_t str, snr; int64_t str, snr;
uint32_t mod, fec, ber_num, ber_den, trans, pilot = 0, quality = 0; uint32_t mod, fec, ber_num, ber_den, trans, pilot = 0, quality = 0, freq;
get_property(fe->fd, DTV_TRANSMISSION_MODE, &fe->pls_code); get_property(fe->fd, DTV_TRANSMISSION_MODE, &fe->pls_code);
dbgprintf(DEBUG_DVB, "fe%d: pls=0x%02x\n", fe->nr, fe->pls_code); dbgprintf(DEBUG_DVB, "fe%d: pls=0x%02x\n", fe->nr, fe->pls_code);
@ -364,9 +364,13 @@ static void calc_lq(struct dddvb_fe *fe)
dbgprintf(DEBUG_DVB, "fe%d: fec=%u mod=%u\n", fe->nr, fec, mod); dbgprintf(DEBUG_DVB, "fe%d: fec=%u mod=%u\n", fe->nr, fec, mod);
switch (fe->n_param.param[PARAM_MSYS]) { switch (fe->n_param.param[PARAM_MSYS]) {
case SYS_DVBS: case SYS_DVBS:
get_property(fe->fd, DTV_FREQUENCY, &freq);
dbgprintf(DEBUG_DVB, "fe%d: actual frequency=%u\n", fe->nr, freq);
quality = dvbsq(snr, fec, ber_num, ber_den); quality = dvbsq(snr, fec, ber_num, ber_den);
break; break;
case SYS_DVBS2: case SYS_DVBS2:
get_property(fe->fd, DTV_FREQUENCY, &freq);
dbgprintf(DEBUG_DVB, "fe%d: actual frequency=%u\n", fe->nr, freq);
quality = dvbs2q(snr, fec, mod, ber_num, ber_den); quality = dvbs2q(snr, fec, mod, ber_num, ber_den);
break; break;
case SYS_DVBC_ANNEX_A: case SYS_DVBC_ANNEX_A: