]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
linuxdvb: fix diseqc LNB setting for polarity
authorAdam Sutton <dev@adamsutton.me.uk>
Mon, 17 Jun 2013 23:25:30 +0000 (00:25 +0100)
committerAdam Sutton <dev@adamsutton.me.uk>
Mon, 17 Jun 2013 23:25:30 +0000 (00:25 +0100)
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

index d7e4e43ab7a659a0de48268a8fc0df6b9d103ad0..5606117315a2bfd7d5390aad85c82168d765fc6c 100644 (file)
@@ -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 *