mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2023-10-10 13:37:43 +02:00
return no modulation for DVB-S2X modes, no defines available in LINUX API yet
This commit is contained in:
parent
1b11064b83
commit
b46b89d4b5
@ -267,15 +267,25 @@ 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;
|
u32 modcod;
|
||||||
|
|
||||||
p->delivery_system = SYS_DVBS2;
|
p->delivery_system = SYS_DVBS2;
|
||||||
|
p->transmission_mode = pls_code;
|
||||||
p->rolloff =
|
p->rolloff =
|
||||||
ro_lut[mci->signal_info.dvbs2_signal_info.roll_off & 7];
|
ro_lut[mci->signal_info.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 (pls_code & 0x80) {
|
||||||
|
/* no suitable values defined in Linux DVB API yet */
|
||||||
|
/* modcod = (0x7f & pls_code) >> 1; */
|
||||||
|
p->fec_inner = FEC_NONE;
|
||||||
|
p->modulation = 0;
|
||||||
|
if (pls_code >= 250)
|
||||||
|
p->pilot = PILOT_ON;
|
||||||
|
} else {
|
||||||
|
modcod = (0x7c & pls_code) >> 2;
|
||||||
p->fec_inner = modcod2fec[modcod];
|
p->fec_inner = modcod2fec[modcod];
|
||||||
p->modulation = modcod2mod[modcod];
|
p->modulation = modcod2mod[modcod];
|
||||||
p->transmission_mode = pls_code;
|
}
|
||||||
} else {
|
} else {
|
||||||
p->delivery_system = SYS_DVBS;
|
p->delivery_system = SYS_DVBS;
|
||||||
p->rolloff = ROLLOFF_35;
|
p->rolloff = ROLLOFF_35;
|
||||||
|
Loading…
Reference in New Issue
Block a user