Re: [PATCH] DST patch for LNB voltage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sigmund Augdal Helberg wrote:
On Sat, 2006-04-29 at 15:46 -0400, Yeasah Pell wrote:
The DST driver has a problem where it won't properly change the LNB voltage once it is on. This patch allows changing the voltage from 13 to 18 and back without turning it off first. Now the card tunes different polarizations reliably for me.

Signed-off-by: Yeasah Pell <yeasah at schwide.net>
Acked-by: Sigmund Helberg <sigmund@xxxxxxx>

Ken Harris: This should fix the issues you reported with set-voltage.
--- a/linux/drivers/media/dvb/bt8xx/dst.c Fri Apr 28 10:14:45 2006 -0300 +++ b/linux/drivers/media/dvb/bt8xx/dst.c Sat Apr 29 15:40:16 2006 -0400
@@ -1199,14 +1204,15 @@
static int dst_set_voltage(struct dvb_frontend *fe, fe_sec_voltage_t voltage)
 {
-       int need_cmd;
+       int need_cmd = 0;
        struct dst_state *state = fe->demodulator_priv;
+ /* a command is needed if voltage is changing */
+       if (state->voltage != voltage)
+               need_cmd = 1;
        state->voltage = voltage;
        if (state->dst_type != DST_TYPE_IS_SAT)
                return 0;
-
-       need_cmd = 0;
switch (voltage) {
        case SEC_VOLTAGE_13:


I will pull this one in.

Thanks,
Manu


_______________________________________________

linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux