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.
This commit is contained in:
Adam Sutton 2013-06-18 00:25:30 +01:00
parent b139c76180
commit dd0e7b1ea4

View 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 *