[mythtv] Simple DISEQC switches and current SVN?

Allan Stirling Dibblahmythml0015 at pendor.org
Sun Oct 16 20:25:31 UTC 2005


I was having an issue with my switch (I believe it's 1.0) never changing 
inputs. Looking at the DISEQC commands from szap (which work) and comparing 
them to the Myth output, they appear to be different.

The following patch brings them more into line (and works with the switch I have):

Index: libs/libmythtv/dvbdiseqc.cpp
===================================================================
--- libs/libmythtv/dvbdiseqc.cpp        (revision 7496)
+++ libs/libmythtv/dvbdiseqc.cpp        (working copy)
@@ -396,7 +396,7 @@
              {{CMD_FIRST, MASTER_TO_LSS, WRITE_N0, 0xf0, 0x00, 0x00}, 4};

          cmd.msg[DATA_1] = 0xF0
-                          | (((tuning.diseqc_port) * 4) & 0x0F)
+                          | (((tuning.diseqc_port+1) * 4) & 0x0F)
                            | ((tuning.voltage == SEC_VOLTAGE_18) ? 2 : 00)
                            | ((tuning.tone == SEC_TONE_ON) ? 1 : 0);

I'm not opening a bug yet, because I'm not sure if this is just another 
misunderstanding. Does anyone else have simple DISEQC switches working?

Cheers,

Allan.


More information about the mythtv-dev mailing list