mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2023-10-10 13:37:43 +02:00
- make 8PSK/QPSK default (for AUTO mode)
- when selecting modulation, also enable all lower modulations
This commit is contained in:
parent
a978e9455f
commit
8dbd33fd82
@ -408,15 +408,29 @@ static int set_parameters(struct dvb_frontend *fe)
|
|||||||
if (iq_mode)
|
if (iq_mode)
|
||||||
ts_config = (SX8_TSCONFIG_TSHEADER | SX8_TSCONFIG_MODE_IQ);
|
ts_config = (SX8_TSCONFIG_TSHEADER | SX8_TSCONFIG_MODE_IQ);
|
||||||
if (iq_mode < 3) {
|
if (iq_mode < 3) {
|
||||||
u32 flags = 3;
|
u32 mask;
|
||||||
u32 mask = 0x7f;
|
|
||||||
|
|
||||||
if (p->modulation == APSK_16 ||
|
switch (p->modulation) {
|
||||||
p->modulation == APSK_32) {
|
case APSK_256:
|
||||||
flags = 2;
|
mask = 0x7f;
|
||||||
|
break;
|
||||||
|
case APSK_128:
|
||||||
|
mask = 0x3f;
|
||||||
|
break;
|
||||||
|
case APSK_64:
|
||||||
|
mask = 0x1f;
|
||||||
|
break;
|
||||||
|
case APSK_32:
|
||||||
mask = 0x0f;
|
mask = 0x0f;
|
||||||
|
break;
|
||||||
|
case APSK_16:
|
||||||
|
mask = 0x07;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
mask = 0x03;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
stat = start(fe, flags, mask, ts_config);
|
stat = start(fe, 3, mask, ts_config);
|
||||||
} else {
|
} else {
|
||||||
u32 flags = (iq_mode == 2) ? 1 : 0;
|
u32 flags = (iq_mode == 2) ? 1 : 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user