From: Jaroslav Kysela Date: Mon, 15 Dec 2014 17:31:01 +0000 (+0100) Subject: linuxdvb satconf: another diseqc tone optimization 2nd, fixes #2547 X-Git-Tag: v4.1~582 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7a707122e91abf1f2d6717fa08683d8898802c75;p=thirdparty%2Ftvheadend.git linuxdvb satconf: another diseqc tone optimization 2nd, fixes #2547 --- diff --git a/src/input/mpegts/linuxdvb/linuxdvb_satconf.c b/src/input/mpegts/linuxdvb/linuxdvb_satconf.c index 31e7ef3eb..b32adeb86 100644 --- a/src/input/mpegts/linuxdvb/linuxdvb_satconf.c +++ b/src/input/mpegts/linuxdvb/linuxdvb_satconf.c @@ -775,9 +775,9 @@ linuxdvb_satconf_ele_tune ( linuxdvb_satconf_ele_t *lse ) /* Set the tone (en50494 don't use tone) */ if (!lse->lse_en50494) { - ls->ls_last_tone_off = 0; b = lse->lse_lnb->lnb_band(lse->lse_lnb, lm); 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)) { tvherror("diseqc", "failed to set diseqc tone (e=%s)", strerror(errno));