From 0165538f130b6efa8030b41bac1097924623b7fe Mon Sep 17 00:00:00 2001 From: rjkm Date: Sat, 7 Aug 2021 23:00:29 +0200 Subject: [PATCH] prepare to get roll off for SDR mode from parameters but use fixed one for now --- ddbridge/ddbridge-sx8.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ddbridge/ddbridge-sx8.c b/ddbridge/ddbridge-sx8.c index d0bc3ba..2b627fd 100644 --- a/ddbridge/ddbridge-sx8.c +++ b/ddbridge/ddbridge-sx8.c @@ -397,7 +397,7 @@ unlock: 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 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; sx8_base->tuner_use_count[input]++; sx8_base->iq_mode = 2; - mci_set_tuner(fe, input, 1, flags & 0xff, 0); + mci_set_tuner(fe, input, 1, flags & 0xff, 0x40); } else { if ((state->iq_started & 0x07) != state->mci.nr) { stat = -EBUSY; @@ -438,7 +438,8 @@ unlock: memset(&cmd, 0, sizeof(cmd)); cmd.command = SX8_CMD_START_IQ; 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.symbol_rate = p->symbol_rate; 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); } else { - stat = start_iq(fe, isi & 0xffffff, 4, ts_config); + stat = start_iq(fe, isi & 0xffffff, ts_config); } mutex_unlock(&state->lock); return stat;