Bug #5689 ยป hdhr_signal.diff
tvhdhomerun_frontend.c 2019-07-20 17:32:59.825180370 -0700 | ||
---|---|---|
253 | 253 |
if(res < 1) |
254 | 254 |
tvhwarn(LS_TVHDHOMERUN, "tuner_status (%d)", res); |
255 | 255 | |
256 |
if(tuner_status.signal_present)
|
|
256 |
if(tuner_status.symbol_error_quality == 100)
|
|
257 | 257 |
hfe->hf_status = SIGNAL_GOOD; |
258 | 258 |
else |
259 | 259 |
hfe->hf_status = SIGNAL_NONE; |
... | ... | |
263 | 263 | |
264 | 264 |
/* wait for a signal_present */ |
265 | 265 |
if(!hfe->hf_locked) { |
266 |
if(tuner_status.signal_present) {
|
|
266 |
if(tuner_status.symbol_error_quality == 100) {
|
|
267 | 267 |
tvhdebug(LS_TVHDHOMERUN, "locked"); |
268 | 268 |
hfe->hf_locked = 1; |
269 | 269 | |
... | ... | |
302 | 302 | |
303 | 303 |
tvh_mutex_lock(&mmi->tii_stats_mutex); |
304 | 304 | |
305 |
if(tuner_status.signal_present) {
|
|
305 |
if(tuner_status.symbol_error_quality == 100) {
|
|
306 | 306 |
/* TODO: totaly stupid conversion from 0-100 scale to 0-655.35 */ |
307 | 307 |
mmi->tii_stats.snr = tuner_status.signal_to_noise_quality * 655.35; |
308 | 308 |
mmi->tii_stats.signal = tuner_status.signal_strength * 655.35; |