From bc2e1a39ffe3bb217d733e56465b96d2e49cb0f6 Mon Sep 17 00:00:00 2001 From: Ralph Metzler Date: Fri, 10 Aug 2018 08:47:29 +0200 Subject: [PATCH] add tsspeed override --- frontends/stv0910.c | 2 ++ frontends/stv0910.h | 1 + 2 files changed, 3 insertions(+) diff --git a/frontends/stv0910.c b/frontends/stv0910.c index 7cde804..e31f82c 100644 --- a/frontends/stv0910.c +++ b/frontends/stv0910.c @@ -1854,6 +1854,8 @@ struct dvb_frontend *stv0910_attach(struct i2c_adapter *i2c, state->tsgeneral = (cfg->parallel == 2) ? 0x02 : 0x00; state->i2crpt = 0x0A | ((cfg->rptlvl & 0x07) << 4); state->tsspeed = cfg->parallel ? 0x10 : 0x28; + if (cfg->tsspeed) + state->tsspeed = cfg->tsspeed; state->nr = nr; state->regoff = state->nr ? 0 : 0x200; state->search_range = 16000000; diff --git a/frontends/stv0910.h b/frontends/stv0910.h index 338ae01..6da5b1f 100644 --- a/frontends/stv0910.h +++ b/frontends/stv0910.h @@ -10,6 +10,7 @@ struct stv0910_cfg { u8 parallel; u8 rptlvl; u8 single; + u8 tsspeed; }; #if defined(CONFIG_DVB_STV0910) || \