From f39f7b87ab91cb1d93b25e56687440b52e8ba508 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Mon, 15 Dec 2014 19:58:34 +0100 Subject: [PATCH] linuxdvb satconf: tone fix..., fixes #2547 --- src/input/mpegts/linuxdvb/linuxdvb_satconf.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/input/mpegts/linuxdvb/linuxdvb_satconf.c b/src/input/mpegts/linuxdvb/linuxdvb_satconf.c index b32adeb8..6224ba16 100644 --- a/src/input/mpegts/linuxdvb/linuxdvb_satconf.c +++ b/src/input/mpegts/linuxdvb/linuxdvb_satconf.c @@ -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 } }