+#if HAVE_DVB_API_VERSION < 3
+ secCmdSequence seq;
+ secCommand cmd;
+
+ cmd.type = SEC_CMDTYPE_DISEQC_RAW;
+ cmd.u.diseqc.cmdtype = diseqc.data[0];
+ eDebug("cmdtype is %02x", diseqc.data[0]);
+ cmd.u.diseqc.addr = diseqc.data[1];
+ eDebug("cmdaddr is %02x", diseqc.data[1]);
+ cmd.u.diseqc.cmd = diseqc.data[2];
+ eDebug("cmd is %02x", diseqc.data[2]);
+ cmd.u.diseqc.numParams = diseqc.len-3;
+ eDebug("numparams %d", diseqc.len-3);
+
+ memcpy(cmd.u.diseqc.params, diseqc.data+3, diseqc.len-3);
+ for (int i=0; i < diseqc.len-3; ++i )
+ eDebugNoNewLine("%02x ", diseqc.data[3+i]);
+ eDebug("");
+
+ seq.continuousTone = SEC_TONE_OFF;
+ seq.voltage = SEC_VOLTAGE_13;
+ seq.miniCommand = SEC_MINI_NONE;
+ seq.commands=&cmd;
+ seq.numCommands=1;
+
+
+ if ( ioctl(m_secfd, SEC_SEND_SEQUENCE, &seq) < 0 )
+ {
+ eDebug("SEC_SEND_SEQUENCE failed ( %m )");
+ return -EINVAL;
+ }
+ return 0;
+#else