diff options
author | Zaheer Abbas Merali <zaheerabbas@merali.org> | 2008-03-28 09:48:27 +0000 |
---|---|---|
committer | Zaheer Abbas Merali <zaheerabbas@merali.org> | 2008-03-28 09:48:27 +0000 |
commit | 361092ff6c8bea901cdc063e530fe870e409f8ee (patch) | |
tree | 833729aa7b7497aa387d73240acea41575efcb5d /sys/dvb | |
parent | 7c92b4e47828783c6716ef53d461a37d31c5823d (diff) | |
download | gst-plugins-bad-361092ff6c8bea901cdc063e530fe870e409f8ee.tar.gz gst-plugins-bad-361092ff6c8bea901cdc063e530fe870e409f8ee.tar.bz2 gst-plugins-bad-361092ff6c8bea901cdc063e530fe870e409f8ee.zip |
sys/dvb/gstdvbsrc.c: Repeat diseqc call to allow for some diseqc switches.
Original commit message from CVS:
* sys/dvb/gstdvbsrc.c:
Repeat diseqc call to allow for some diseqc switches.
Diffstat (limited to 'sys/dvb')
-rw-r--r-- | sys/dvb/gstdvbsrc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dvb/gstdvbsrc.c b/sys/dvb/gstdvbsrc.c index 9193cec6..067fb328 100644 --- a/sys/dvb/gstdvbsrc.c +++ b/sys/dvb/gstdvbsrc.c @@ -1166,7 +1166,10 @@ diseqc (int secfd, int sat_no, int voltage, int tone) cmd.cmd.msg[3] = 0xf0 | (((sat_no * 4) & 0x0f) | (tone == SEC_TONE_ON ? 1 : 0) | (voltage == SEC_VOLTAGE_13 ? 0 : 2)); - + /* send twice because some diseqc switches do not respond correctly the + * first time */ + diseqc_send_msg (secfd, voltage, &cmd, tone, + sat_no % 2 ? SEC_MINI_B : SEC_MINI_A); diseqc_send_msg (secfd, voltage, &cmd, tone, sat_no % 2 ? SEC_MINI_B : SEC_MINI_A); |