linuxdvb satconf: another diseqc tone optimization, fixes #2547
This commit is contained in:
parent
d02f23302b
commit
32ad45b47c
1 changed files with 9 additions and 7 deletions
|
@ -777,14 +777,16 @@ linuxdvb_satconf_ele_tune ( linuxdvb_satconf_ele_t *lse )
|
|||
if (!lse->lse_en50494) {
|
||||
ls->ls_last_tone_off = 0;
|
||||
b = lse->lse_lnb->lnb_band(lse->lse_lnb, lm);
|
||||
tvhtrace("diseqc", "set diseqc tone %s", b ? "on" : "off");
|
||||
if (b && ioctl(lfe->lfe_fe_fd, FE_SET_TONE, b ? SEC_TONE_ON : SEC_TONE_OFF)) {
|
||||
tvherror("diseqc", "failed to set diseqc tone (e=%s)", strerror(errno));
|
||||
return -1;
|
||||
if (ls->ls_diseqc_full || ls->ls_last_tone_off != b + 1) {
|
||||
tvhtrace("diseqc", "set diseqc tone %s", b ? "on" : "off");
|
||||
if (b && ioctl(lfe->lfe_fe_fd, FE_SET_TONE, b ? SEC_TONE_ON : SEC_TONE_OFF)) {
|
||||
tvherror("diseqc", "failed to set diseqc tone (e=%s)", strerror(errno));
|
||||
return -1;
|
||||
}
|
||||
ls->ls_last_tone_off = b + 1;
|
||||
if (b)
|
||||
usleep(20000); // Allow LNB to settle before tuning
|
||||
}
|
||||
ls->ls_last_tone_off = b + 1;
|
||||
if (b)
|
||||
usleep(20000); // Allow LNB to settle before tuning
|
||||
}
|
||||
|
||||
/* Frontend */
|
||||
|
|
Loading…
Add table
Reference in a new issue