From 1bb434cfc557b3c6caf8675e890a154e3de8b405 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Wed, 23 Apr 2008 10:10:01 +0000 Subject: [PATCH] Correctly set polarisation from preconfigured networks --- dvb_muxconfig.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/dvb_muxconfig.c b/dvb_muxconfig.c index 0969ec6f..3241f90e 100644 --- a/dvb_muxconfig.c +++ b/dvb_muxconfig.c @@ -315,7 +315,18 @@ dvb_mux_preconf_add(th_dvb_adapter_t *tda, unsigned int n) case FE_QPSK: f.u.qpsk.symbol_rate = m->symrate; f.u.qpsk.fec_inner = m->fec; - polarisation = m->polarisation; + + switch(m->polarisation) { + case 'V': + polarisation = POLARISATION_VERTICAL; + break; + case 'H': + polarisation = POLARISATION_HORIZONTAL; + break; + default: + abort(); + } + break; case FE_QAM: