mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2023-10-10 13:37:43 +02:00
Fixed bug in FEC and Modulation for DVB-S2X
This commit is contained in:
parent
f1348429b3
commit
b62f424644
@ -274,21 +274,21 @@ void ddb_mci_proc_info(struct mci *mci, struct dtv_frontend_properties *p)
|
|||||||
(mci->signal_info.dvbs2_signal_info.standard == 2) ?
|
(mci->signal_info.dvbs2_signal_info.standard == 2) ?
|
||||||
SYS_DVBS2 : SYS_DVBS;
|
SYS_DVBS2 : SYS_DVBS;
|
||||||
if (mci->signal_info.dvbs2_signal_info.standard == 2) {
|
if (mci->signal_info.dvbs2_signal_info.standard == 2) {
|
||||||
u32 modcod = (0x7c & pls_code) >> 2;
|
|
||||||
|
|
||||||
p->delivery_system = SYS_DVBS2;
|
p->delivery_system = SYS_DVBS2;
|
||||||
p->rolloff =
|
p->rolloff =
|
||||||
ro_lut[mci->signal_info.
|
ro_lut[mci->signal_info.
|
||||||
dvbs2_signal_info.roll_off & 7];
|
dvbs2_signal_info.roll_off & 7];
|
||||||
p->pilot = (pls_code & 1) ? PILOT_ON : PILOT_OFF;
|
p->pilot = (pls_code & 1) ? PILOT_ON : PILOT_OFF;
|
||||||
if(modcod & 0x80) //DVB-S2X
|
if(pls_code & 0x80) //DVB-S2X
|
||||||
{
|
{
|
||||||
uint8_t modcodS2X = (modcod & 0x7F) >> 1;
|
uint8_t modcodS2X = (pls_code & 0x7F) >> 1;
|
||||||
p->fec_inner = modcod2fecS2X[modcodS2X];
|
p->fec_inner = modcod2fecS2X[modcodS2X];
|
||||||
p->modulation = modcod2modS2X[modcodS2X];
|
p->modulation = modcod2modS2X[modcodS2X];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
u32 modcod = (0x7c & pls_code) >> 2;
|
||||||
p->fec_inner = modcod2fec[modcod];
|
p->fec_inner = modcod2fec[modcod];
|
||||||
p->modulation = modcod2mod[modcod];
|
p->modulation = modcod2mod[modcod];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user