linuxdvb: handle lfe_ready better - send status all time
This commit is contained in:
parent
a5bca8637c
commit
91f3b2c5f8
1 changed files with 8 additions and 1 deletions
|
@ -486,7 +486,7 @@ linuxdvb_frontend_monitor ( void *aux )
|
|||
}
|
||||
|
||||
/* Stop timer */
|
||||
if (!mmi || !lfe->lfe_ready) return;
|
||||
if (!mmi) return;
|
||||
|
||||
/* re-arm */
|
||||
gtimer_arm(&lfe->lfe_monitor_timer, linuxdvb_frontend_monitor, lfe, 1);
|
||||
|
@ -506,6 +506,12 @@ linuxdvb_frontend_monitor ( void *aux )
|
|||
else
|
||||
status = SIGNAL_NONE;
|
||||
|
||||
if (!lfe->lfe_ready) {
|
||||
/* send the status message to the higher layers _always_ */
|
||||
status = SIGNAL_NONE;
|
||||
goto status;
|
||||
}
|
||||
|
||||
/* Set default period */
|
||||
if (fe_status != lfe->lfe_status) {
|
||||
tvhdebug("linuxdvb", "%s - status %7s (%s%s%s%s%s%s)", buf,
|
||||
|
@ -761,6 +767,7 @@ linuxdvb_frontend_monitor ( void *aux )
|
|||
}
|
||||
}
|
||||
|
||||
status:
|
||||
/* Send message */
|
||||
sigstat.status_text = signal2str(status);
|
||||
sigstat.snr = mmi->mmi_stats.snr;
|
||||
|
|
Loading…
Add table
Reference in a new issue