From dd0e7b1ea40fae0b78b15dd925daa0ee7bda965e Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Tue, 18 Jun 2013 00:25:30 +0100 Subject: [PATCH] linuxdvb: fix diseqc LNB setting for polarity I had forgotten to setup the voltage field used for polarity switching which meant I was always getting V. This is why my scanning was going cock eyed. Think I probably need to add back in some sanity checks. --- src/input/mpegts/linuxdvb/linuxdvb_satconf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/input/mpegts/linuxdvb/linuxdvb_satconf.c b/src/input/mpegts/linuxdvb/linuxdvb_satconf.c index d7e4e43a..56061173 100644 --- a/src/input/mpegts/linuxdvb/linuxdvb_satconf.c +++ b/src/input/mpegts/linuxdvb/linuxdvb_satconf.c @@ -336,7 +336,9 @@ static int uni_tune { dvb_mux_conf_t *dmc = &lm->lm_tuning; struct dvb_frontend_parameters *p = &dmc->dmc_fe_params; - return diseqc_setup(fd, 0, 0, p->frequency > 11700000, 0, 0); + int pol = dmc->dmc_fe_polarisation == POLARISATION_HORIZONTAL || + dmc->dmc_fe_polarisation == POLARISATION_CIRCULAR_LEFT; + return diseqc_setup(fd, 0, pol, p->frequency > 11700000, 0, 0); } linuxdvb_satconf_t *