- Timestamp:
- 10/22/17 18:46:22 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/frontenddev.h
r41045 r41047 200 200 { 201 201 struct dvbdev* dvbnode = dvbdev; 202 char *tmpstr = NULL; 202 203 char *buf = NULL; 203 204 int fbc = 0; … … 231 232 } 232 233 sprintf(buf, "/proc/stb/frontend/%d/input",dvbnode->devnr); 233 234 if(ostrcmp("fe_00", getconfig(dvbnode->feshortname, NULL)) == 0) 235 writesys(buf, "A", 1); 236 else if(ostrcmp("fe_01", getconfig(dvbnode->feshortname, NULL)) == 0) 237 writesys(buf, "B", 1); 238 else if(ostrcmp("fe_00", dvbnode->feshortname) == 0) 239 writesys(buf, "A", 1); 240 else if(ostrcmp("fe_01", dvbnode->feshortname) == 0) 241 writesys(buf, "B", 1); 234 tmpstr = ostrcat(dvbnode->feshortname, "_fbc", 0, 0); 235 writesys(buf, getconfig(tmpstr, NULL), 1); 242 236 free(buf); buf = NULL; 237 free(tmpstr); tmpstr = NULL; 243 238 } 244 239 //check if tuner is deactivate … … 289 284 if(dvbnode->type == FRONTENDDEV && dvbnode->feinfo->type == tpnode->fetype) 290 285 { 291 if(dvbnode->feakttransponder != NULL)292 debug(200, "dvbnode->feakttransponder->orbitalpos:%i tpnode->orbitalpos:%i", dvbnode->feakttransponder->orbitalpos, tpnode->orbitalpos);293 286 if(dvbnode->feakttransponder != NULL && dvbnode->feakttransponder->orbitalpos == tpnode->orbitalpos && dvbnode->feakttransponder->frequency == tpnode->frequency && dvbnode->feaktpolarization == tpnode->polarization) 294 287 { … … 338 331 { 339 332 tmpdvbnode = fegetbyshortname(tmpstr); 340 if(tmpdvbnode != NULL && tmpdvbnode->feakttransponder != NULL && tmpdvbnode->feaktpolarization != tpnode->polarization&& (tmpdvbnode->felock != 0 || (flag == 2 && tmpdvbnode->felock == 0)))333 if(tmpdvbnode != NULL && tmpdvbnode->feakttransponder != NULL && (tmpdvbnode->feaktpolarization != tpnode->polarization || tmpdvbnode->feakttransponder->orbitalpos != tpnode->orbitalpos) && (tmpdvbnode->felock != 0 || (flag == 2 && tmpdvbnode->felock == 0))) 341 334 { 342 335 dvbnode = dvbnode->next; … … 1951 1944 if(dvbnode->feinfo->type == FE_QPSK) 1952 1945 fesetvoltage(dvbnode, SEC_VOLTAGE_OFF, 15); 1946 1947 if(y < 10) 1948 tmpstr = ostrcat(tmpstr, "fe_0", 1, 0); 1949 else 1950 tmpstr = ostrcat(tmpstr, "fe_1", 1, 0); 1951 tmpstr = ostrcat(tmpstr, oitoa(y), 1, 1); 1952 tmpstr = ostrcat(tmpstr, "_fbc", 1, 0); 1953 if(ostrstr(feinfo->name, "BCM45208") != NULL) //fbc Tuner 1954 { 1955 if(getconfig(tmpstr, NULL) == NULL) 1956 addconfig(tmpstr, "A"); 1957 } 1958 else 1959 addconfig(tmpstr, ""); 1960 free(tmpstr), tmpstr = NULL; 1953 1961 } 1954 1962 }
Note: See TracChangeset
for help on using the changeset viewer.