mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2023-10-10 13:37:43 +02:00
get PLS code and show as debug message
This commit is contained in:
parent
d808f1d37a
commit
16909b37a0
@ -75,6 +75,7 @@ struct dddvb_fe {
|
|||||||
uint32_t level;
|
uint32_t level;
|
||||||
uint32_t lock;
|
uint32_t lock;
|
||||||
uint32_t quality;
|
uint32_t quality;
|
||||||
|
uint32_t pls_code;
|
||||||
int64_t strength;
|
int64_t strength;
|
||||||
int64_t cnr;
|
int64_t cnr;
|
||||||
int64_t ber;
|
int64_t ber;
|
||||||
|
@ -331,6 +331,9 @@ static void calc_lq(struct dddvb_fe *fe)
|
|||||||
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;
|
||||||
|
|
||||||
|
get_property(fe->fd, DTV_TRANSMISSION_MODE, &fe->pls_code);
|
||||||
|
dbgprintf(DEBUG_DVB, "fe%d: pls=0x%02x\n", fe->nr, fe->pls_code);
|
||||||
|
|
||||||
get_stat(fe->fd, DTV_STAT_SIGNAL_STRENGTH, &st);
|
get_stat(fe->fd, DTV_STAT_SIGNAL_STRENGTH, &st);
|
||||||
str = st.stat[0].svalue;
|
str = st.stat[0].svalue;
|
||||||
dbgprintf(DEBUG_DVB, "fe%d: str=%lld\n", fe->nr, str);
|
dbgprintf(DEBUG_DVB, "fe%d: str=%lld\n", fe->nr, str);
|
||||||
|
Loading…
Reference in New Issue
Block a user