[mythtv-users] Mythtv and Diseqc

Arne Varholm arne at varholm.dyndns.org
Sun May 21 07:15:55 UTC 2006


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

Here is the patch:

--- mythtv/libs/libmythtv/dvbdiseqc.cpp	2005-01-23 22:45:30.000000000 +0000
+++ mythtv-cvs/libs/libmythtv/dvbdiseqc.cpp	2005-03-07 
10:39:32.652308128 +0000
@@ -133,15 +133,16 @@

bool DVBDiSEqC::ToneSwitch(dvb_tuning_t& tuning, bool reset, bool& 
havetuned)
{
-    CHANNEL(QString("DiSEqC Tone Switch - Port 
%1/2").arg(tuning.diseqc_port));
+    CHANNEL(QString("DiSEqC Tone Switch - Port 
%1/2").arg(tuning.diseqc_port+1));

     if (prev_tuning.diseqc_port != tuning.diseqc_port || reset)
     {
-        if (tuning.diseqc_port > 2)
+        if (tuning.diseqc_port > 1)
             ERRNO("Tone Switches only supports 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)
         {
             ERRNO("Setting Tone Switch failed.");
             return false;
@@ -239,7 +240,7 @@
             usleep(DISEQC_SHORT_WAIT);
         }
     }
-
+/*
     if (ioctl(fd_frontend, FE_DISEQC_SEND_BURST, SEC_MINI_A ) == -1)
     {
         ERRNO("FE_DISEQC_SEND_BURST failed");
@@ -247,7 +248,7 @@
     }

     usleep(DISEQC_SHORT_WAIT);
-
+*/
     if (ioctl(fd_frontend, FE_SET_TONE, tuning.tone) == -1)
     {
         ERRNO("FE_SET_TONE failed");
@@ -308,13 +309,13 @@
         }
         usleep(DISEQC_SHORT_WAIT);
     }
-
+/*
     if (ioctl(fd_frontend, FE_DISEQC_SEND_BURST, SEC_MINI_A ) == -1)
     {
         ERRNO("FE_DISEQC_SEND_BURST failed");
         return false;
     }
-
+*/
     return true;
}



Andrew Hutchinson skrev:
> Hi,
>
> I am now trying to setup my first Mythbox and I'm running into some 
> trouble with my Sat card and Diseqc.
>
> I have a SkySat2 card, hooked up to a satellite with 2 LNB's which 
> point to Astra 19.2 and Astra 28.2 .  Disceqc is used to swap between 
> these two LNB's.
>
> I am running Fedora core 5, and I have successfully installed the 
> card, and scandvb can get a channel listing from both satellites, if I 
> use the -s flag.  For example, for Astra 19.2 on the first port I run:
> scandvb -s 0 Astra-19.2E | tee ~/astra1_channels.conf
>
> And for Astra 2:
> scandvb -s 1 Astra-28.2E | tee ~/astra2_channels.conf
>
> It finds all these channels without any problem.
>
> However, when it comes to Mythtv and channel scanning I run into 
> problems.  It can see the Astra 19.2 sat on the first port, however it 
> cannot see anything to do with the Astra 28.2 on the other port.  Does 
> anyone have any suggestions why this might be, or how I can get this 
> to work?
>
> Thanks very much!
> ------------------------------------------------------------------------
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>   




More information about the mythtv-users mailing list