[mythtv-users] Mythtv and Diseqc

Andrew Hutchinson ahutchinson.mythtv at googlemail.com
Mon May 22 06:25:19 UTC 2006


Thanks very much for this patch Arne.  Things are working great now!  I was
making another mistake originally, in that I only created one Video Source,
and then used this source for both Diseqc inputs.  But either way, even if
you create two sources, it won't work without your patch.

I don't think the patch that you gave me is for the 0.19 release of MythTV
however because I ended up having to apply the changes manually, and the
code was different in a few places to what was in your patch file.  Find
below an updated patch for the latest stable Myth release.  Hopefully this
will help some other people out in the future.

--- /usr/src/mythtv_orig/mythtv-0.19/libs/libmythtv/dvbdisceqc.cpp
2006-05-21 13:04:46.000000000 +0200
+++ /usr/src/mythtv/mythtv-0.19/libs/libmythtv/dvbdiseqc.cpp    2006-05-21
13:04:06.000000000 +0200
@@ -148,16 +148,16 @@
 bool DVBDiSEqC::ToneSwitch(DVBTuning& tuning, bool reset, bool& havetuned)
 {
     VERBOSE(VB_CHANNEL, LOC + QString("Tone Switch - Port %1/2")
-            .arg(tuning.diseqc_port));
+            .arg(tuning.diseqc_port+1));

     if (prev_tuning.diseqc_port !     {
-        if (tuning.diseqc_port > 2)
+        if (tuning.diseqc_port > 1)
             VERBOSE(VB_IMPORTANT, LOC_ERR +
                     "Tone Switches only support two ports.");

         if (ioctl(fd_frontend, FE_DISEQC_SEND_BURST,
-                  (tuning.diseqc_port = 1 ? SEC_MINI_A : SEC_MINI_B )) <
0)
+                  (tuning.diseqc_port = 0 ? SEC_MINI_A : SEC_MINI_B )) <
0)
         {
             VERBOSE(VB_IMPORTANT, LOC_ERR +
                     "Setting Tone Switch failed." + ENO);
@@ -263,7 +263,7 @@
             usleep(DISEQC_SHORT_WAIT);
         }
     }
-
+/*
     if (ioctl(fd_frontend, FE_DISEQC_SEND_BURST, SEC_MINI_A ) = -1)
     {
         VERBOSE(VB_IMPORTANT, LOC_ERR +
@@ -272,7 +272,7 @@
     }

     usleep(DISEQC_SHORT_WAIT);
-
+*/
     if (ioctl(fd_frontend, FE_SET_TONE, tuning.tone) = -1)
     {
         VERBOSE(VB_IMPORTANT, LOC_ERR + "FE_SET_TONE failed" + ENO);
@@ -337,13 +337,13 @@
         }
         usleep(DISEQC_SHORT_WAIT);
     }
-
+/*
     if (ioctl(fd_frontend, FE_DISEQC_SEND_BURST, SEC_MINI_A ) = -1)
     {
         VERBOSE(VB_IMPORTANT, LOC_ERR + "FE_DISEQC_SEND_BURST failed" +
ENO);
         return false;
     }
-
+*/
     return true;
 }


On 21/05/06, Arne Varholm <arne at varholm.dyndns.org> wrote:
>
> I had a problem last year with this, was fixed by this message
> http://mythtv.org/pipermail/mythtv-dev/2005-March/033115.html
> but your problem may be something else....
>
> Arne
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20060522/7248a07e/attachment.htm 


More information about the mythtv-users mailing list