1
0
mirror of https://github.com/DigitalDevices/dddvb.git synced 2023-10-10 13:37:43 +02:00

prepare to get roll off for SDR mode from parameters but use fixed one

for now
This commit is contained in:
rjkm 2021-08-07 23:00:29 +02:00
parent 0b9d3ffa6b
commit 0165538f13

View File

@ -397,7 +397,7 @@ unlock:
static int start_iq(struct dvb_frontend *fe, u32 flags, static int start_iq(struct dvb_frontend *fe, u32 flags,
u32 roll_off, u32 ts_config) u32 ts_config)
{ {
struct sx8 *state = fe->demodulator_priv; struct sx8 *state = fe->demodulator_priv;
struct mci_base *mci_base = state->mci.base; struct mci_base *mci_base = state->mci.base;
@ -424,7 +424,7 @@ static int start_iq(struct dvb_frontend *fe, u32 flags,
state->mci.demod = 0; state->mci.demod = 0;
sx8_base->tuner_use_count[input]++; sx8_base->tuner_use_count[input]++;
sx8_base->iq_mode = 2; sx8_base->iq_mode = 2;
mci_set_tuner(fe, input, 1, flags & 0xff, 0); mci_set_tuner(fe, input, 1, flags & 0xff, 0x40);
} else { } else {
if ((state->iq_started & 0x07) != state->mci.nr) { if ((state->iq_started & 0x07) != state->mci.nr) {
stat = -EBUSY; stat = -EBUSY;
@ -438,7 +438,8 @@ unlock:
memset(&cmd, 0, sizeof(cmd)); memset(&cmd, 0, sizeof(cmd));
cmd.command = SX8_CMD_START_IQ; cmd.command = SX8_CMD_START_IQ;
cmd.sx8_start_iq.flags = (flags >> 16) & 0xff; cmd.sx8_start_iq.flags = (flags >> 16) & 0xff;
cmd.sx8_start_iq.roll_off = roll_off; cmd.sx8_start_iq.roll_off = 5;
//cmd.sx8_start_iq.roll_off = ro_lut[p->rolloff & 7];
cmd.sx8_start_iq.frequency = p->frequency * 1000; cmd.sx8_start_iq.frequency = p->frequency * 1000;
cmd.sx8_start_iq.symbol_rate = p->symbol_rate; cmd.sx8_start_iq.symbol_rate = p->symbol_rate;
cmd.sx8_start_iq.gain = (flags >> 8) & 0xff; cmd.sx8_start_iq.gain = (flags >> 8) & 0xff;
@ -503,7 +504,7 @@ static int set_parameters(struct dvb_frontend *fe)
} }
stat = start(fe, 3, mask, ts_config); stat = start(fe, 3, mask, ts_config);
} else { } else {
stat = start_iq(fe, isi & 0xffffff, 4, ts_config); stat = start_iq(fe, isi & 0xffffff, ts_config);
} }
mutex_unlock(&state->lock); mutex_unlock(&state->lock);
return stat; return stat;