cFrontend: add temporary hack for Spark7162 DVB-S tuner

export FE_OFFSET=1 before starting neutrino to use 2nd and 3rd frontend


Origin commit data
------------------
Branch: ni/coolstream
Commit: e2db610523
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-09-23 (Sun, 23 Sep 2012)



------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2012-09-23 21:41:44 +02:00
parent 3c6c97779b
commit 66e2dcdbb9

View File

@@ -162,6 +162,12 @@ CFrontend::CFrontend(int Number, int Adapter)
locked = false;
usecount = 0;
/* temporary hack to use frontend1 / frontend2 on Spark7162 */
if (getenv("FE_OFFSET")) {
int fe_offset = atoi(getenv("FE_OFFSET"));
fenumber += fe_offset;
printf("[fe%d] FE_OFFSET is %d -> use frontend%d\n", Number, fe_offset, fenumber);
}
memset(&curfe, 0, sizeof(curfe));
curfe.dvb_feparams.u.qpsk.fec_inner = FEC_3_4;