diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2005-04-25 14:37:54 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2005-04-25 14:37:54 +0000 |
| commit | 949a07352f59a32a5ae00f30650a6d067ef59b77 (patch) | |
| tree | f9c33061c2c112d751e9832e0b15410c922e818a /lib/dvb/frontend.cpp | |
| parent | 9a236ba05f412b3f6853f54c5665cf0e5398d7d3 (diff) | |
| download | enigma2-949a07352f59a32a5ae00f30650a6d067ef59b77.tar.gz enigma2-949a07352f59a32a5ae00f30650a6d067ef59b77.zip | |
do voltage and tone control in SEC_SEND_SEQUENCE on old api..sorry for this hack
Diffstat (limited to 'lib/dvb/frontend.cpp')
| -rw-r--r-- | lib/dvb/frontend.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/lib/dvb/frontend.cpp b/lib/dvb/frontend.cpp index 411e118f..00886ee4 100644 --- a/lib/dvb/frontend.cpp +++ b/lib/dvb/frontend.cpp @@ -628,13 +628,23 @@ RESULT eDVBFrontend::sendDiseqc(const eDVBDiseqcCommand &diseqc) eDebugNoNewLine("%02x ", diseqc.data[3+i]); eDebug(""); - seq.continuousTone = SEC_TONE_OFF; - seq.voltage = SEC_VOLTAGE_13; + seq.continuousTone = diseqc.tone == toneOn ? SEC_TONE_ON : SEC_TONE_OFF; + switch ( diseqc.voltage ) + { + case voltageOff: + seq.voltage = SEC_VOLTAGE_OFF; + break; + case voltage13: + seq.voltage = SEC_VOLTAGE_13; + break; + case voltage18: + seq.voltage = SEC_VOLTAGE_18; + break; + } 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 )"); |
