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.
<br><br>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.
<br><br>--- /usr/src/mythtv_orig/mythtv-0.19/libs/libmythtv/dvbdisceqc.cpp 2006-05-21 13:04:46.000000000 +0200<br>+++ /usr/src/mythtv/mythtv-0.19/libs/libmythtv/dvbdiseqc.cpp 2006-05-21 13:04:06.000000000 +0200<br>
@@ -148,16 +148,16 @@<br> bool DVBDiSEqC::ToneSwitch(DVBTuning& tuning, bool reset, bool& havetuned)<br> {<br> VERBOSE(VB_CHANNEL, LOC + QString("Tone Switch - Port %1/2")<br>- .arg(tuning.diseqc_port
));<br>+ .arg(tuning.diseqc_port+1));<br><br> if (prev_tuning.diseqc_port != tuning.diseqc_port || reset)<br> {<br>- if (tuning.diseqc_port > 2)<br>+ if (tuning.diseqc_port > 1)<br> VERBOSE(VB_IMPORTANT, LOC_ERR +
<br> "Tone Switches only support two ports.");<br><br> if (ioctl(fd_frontend, FE_DISEQC_SEND_BURST,<br>- (tuning.diseqc_port == 1 ? SEC_MINI_A : SEC_MINI_B )) < 0)
<br>+ (tuning.diseqc_port == 0 ? SEC_MINI_A : SEC_MINI_B )) < 0)<br> {<br> VERBOSE(VB_IMPORTANT, LOC_ERR +<br> "Setting Tone Switch failed." + ENO);<br>
@@ -263,7 +263,7 @@<br> usleep(DISEQC_SHORT_WAIT);<br> }<br> }<br>-<br>+/*<br> if (ioctl(fd_frontend, FE_DISEQC_SEND_BURST, SEC_MINI_A ) == -1)<br> {<br> VERBOSE(VB_IMPORTANT, LOC_ERR +
<br>@@ -272,7 +272,7 @@<br> }<br><br> usleep(DISEQC_SHORT_WAIT);<br>-<br>+*/<br> if (ioctl(fd_frontend, FE_SET_TONE, tuning.tone) == -1)<br> {<br> VERBOSE(VB_IMPORTANT, LOC_ERR + "FE_SET_TONE failed" + ENO);
<br>@@ -337,13 +337,13 @@<br> }<br> usleep(DISEQC_SHORT_WAIT);<br> }<br>-<br>+/*<br> if (ioctl(fd_frontend, FE_DISEQC_SEND_BURST, SEC_MINI_A ) == -1)<br> {<br> VERBOSE(VB_IMPORTANT, LOC_ERR + "FE_DISEQC_SEND_BURST failed" + ENO);
<br> return false;<br> }<br>-<br>+*/<br> return true;<br> }<br><br><br><div><span class="gmail_quote">On 21/05/06, <b class="gmail_sendername">Arne Varholm</b> <<a href="mailto:arne@varholm.dyndns.org">
arne@varholm.dyndns.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I had a problem last year with this, was fixed by this message
<br><a href="http://mythtv.org/pipermail/mythtv-dev/2005-March/033115.html">http://mythtv.org/pipermail/mythtv-dev/2005-March/033115.html</a><br>but your problem may be something else....<br><br>Arne<br></blockquote></div>
<br>