Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
linuxdvb satconf: tone fix..., fixes #2547
  • Loading branch information
perexg committed Dec 15, 2014
1 parent 7a70712 commit f39f7b8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/input/mpegts/linuxdvb/linuxdvb_satconf.c
Expand Up @@ -779,13 +779,12 @@ linuxdvb_satconf_ele_tune ( linuxdvb_satconf_ele_t *lse )
if (ls->ls_diseqc_full || ls->ls_last_tone_off != b + 1) {
ls->ls_last_tone_off = 0;
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)) {
if (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
usleep(20000); // Allow LNB to settle before tuning
}
}

Expand Down

0 comments on commit f39f7b8

Please sign in to comment.