From 418bd83b40a4f7a8bb931044b2f4cfedfd95fe38 Mon Sep 17 00:00:00 2001 From: rjkm Date: Mon, 5 Jul 2021 18:42:05 +0200 Subject: [PATCH] only set tuner flags once --- ddbridge/ddbridge-sx8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ddbridge/ddbridge-sx8.c b/ddbridge/ddbridge-sx8.c index d419573..25e2835 100644 --- a/ddbridge/ddbridge-sx8.c +++ b/ddbridge/ddbridge-sx8.c @@ -423,6 +423,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); } else { if ((state->iq_started & 0x07) != state->mci.nr) { stat = -EBUSY; @@ -433,7 +434,6 @@ unlock: mutex_unlock(&mci_base->tuner_lock); if (stat) return stat; - mci_set_tuner(fe, input, 1, flags & 0xff, 0); memset(&cmd, 0, sizeof(cmd)); cmd.command = SX8_CMD_START_IQ; cmd.sx8_start_iq.flags = (flags >> 16) & 0xff;