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.
_______________________________________________
mythtv-dev mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

Reply via email to