Attached is a modified version of Reinhard's patch for retuning after a timeout.
It has several macros for the various timeouts, depending on what kind of DVB card is used:
#define DVBS_TUNE_TIMEOUT 2000 //ms #define DVBS_LOCK_TIMEOUT 2000 //ms #define DVBC_TUNE_TIMEOUT 5000 //ms #define DVBC_LOCK_TIMEOUT 2000 //ms #define DVBT_TUNE_TIMEOUT 9000 //ms #define DVBT_LOCK_TIMEOUT 2000 //ms
Users with DVB-C and DVB-T cards should please test whether the given values are ok (they are just guesses, since I don't have such cards) and report in case they need other values.
Retuning is now done for all device types, not only if DiSEqC commands are used.
Klaus