Permalink
Browse files

Removed BANDSTACKED_NA_LNB constant and instead use an explicit ID check

  • Loading branch information...
1 parent 9b72f5e commit 16ce459782bdf16d38acb4c2f680c65bed13f8f4 @sofakng committed Sep 17, 2012
Showing with 2 additions and 4 deletions.
  1. +0 −2 src/dvb/dvb.h
  2. +1 −1 src/dvb/dvb_fe.c
  3. +1 −1 src/dvb/dvb_satconf.c
View
@@ -24,8 +24,6 @@
#include <pthread.h>
#include "htsmsg.h"
-#define BANDSTACKED_NA_LNB 1
-
#define DVB_VER_INT(maj,min) (((maj) << 16) + (min))
#define DVB_VER_ATLEAST(maj, min) \
View
@@ -466,7 +466,7 @@ dvb_fe_tune(th_dvb_mux_instance_t *tdmi, const char *reason)
dvb_lnb_get_frequencies(sc->sc_lnb, &lowfreq, &hifreq, &switchfreq);
}
- if (switchfreq == BANDSTACKED_NA_LNB) {
+ if(!strcmp(sc->sc_id, "DBS Bandstacked")) {
hiband = 0;
if(tdmi->tdmi_conf.dmc_polarisation == POLARISATION_HORIZONTAL ||
tdmi->tdmi_conf.dmc_polarisation == POLARISATION_CIRCULAR_LEFT)
@@ -317,7 +317,7 @@ dvb_lnb_get_frequencies(const char *id, int *f_low, int *f_hi, int *f_switch)
} else if(!strcmp(id, "DBS Bandstacked")) {
*f_low = 11250000;
*f_hi = 14350000;
- *f_switch = BANDSTACKED_NA_LNB; /* special case for Bandstacked LNB */
+ *f_switch = 0;
} else if(!strcmp(id, "Standard")) {
*f_low = 10000000;
*f_hi = 0;

0 comments on commit 16ce459

Please sign in to comment.