mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Removed logging DVB API 5 signal statistics, because it happened too often if EPG scan is active
This commit is contained in:
parent
d1ff365767
commit
f90edc1e8b
2
HISTORY
2
HISTORY
@ -8980,6 +8980,4 @@ Video Disk Recorder Revision History
|
|||||||
would be deleted by Skip().
|
would be deleted by Skip().
|
||||||
- The new function cDevice::SignalStats() (if implemented by an actual device) returns
|
- The new function cDevice::SignalStats() (if implemented by an actual device) returns
|
||||||
statistics about the currently received signal.
|
statistics about the currently received signal.
|
||||||
- If DVB API 5 signal statistics are available for a cDvbDevice, it now logs them
|
|
||||||
whenever the tuner acquires a lock (suggested by Dietmar Spingler).
|
|
||||||
- Updated the Finnish OSD texts (thanks to Rolf Ahrenberg).
|
- Updated the Finnish OSD texts (thanks to Rolf Ahrenberg).
|
||||||
|
14
dvbdevice.c
14
dvbdevice.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: dvbdevice.c 4.7 2017/04/17 15:02:44 kls Exp $
|
* $Id: dvbdevice.c 4.8 2017/04/18 13:11:07 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "dvbdevice.h"
|
#include "dvbdevice.h"
|
||||||
@ -1155,18 +1155,6 @@ void cDvbTuner::Action(void)
|
|||||||
isyslog("frontend %d/%d regained lock on channel %d (%s), tp %d", adapter, frontend, channel.Number(), channel.Name(), channel.Transponder());
|
isyslog("frontend %d/%d regained lock on channel %d (%s), tp %d", adapter, frontend, channel.Number(), channel.Name(), channel.Transponder());
|
||||||
LostLock = false;
|
LostLock = false;
|
||||||
}
|
}
|
||||||
if (tunerStatus == tsTuned) {
|
|
||||||
if (SysLogLevel >= 3) {
|
|
||||||
int Valid;
|
|
||||||
double Strength, Cnr;
|
|
||||||
if (GetSignalStats(Valid, &Strength, &Cnr)) {
|
|
||||||
cString s = cString::sprintf("frontend %d/%d locked with signal", adapter, frontend);
|
|
||||||
if ((Valid & DTV_STAT_VALID_STRENGTH) != 0) s = cString::sprintf("%s STR=%1.1fdBm", *s, Strength);
|
|
||||||
if ((Valid & DTV_STAT_VALID_CNR) != 0) s = cString::sprintf("%s CNR=%1.1fdB", *s, Cnr);
|
|
||||||
dsyslog("%s", *s);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tunerStatus = tsLocked;
|
tunerStatus = tsLocked;
|
||||||
locked.Broadcast();
|
locked.Broadcast();
|
||||||
lastTimeoutReport = 0;
|
lastTimeoutReport = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user