public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Daniel Scheller <d.scheller.oss@gmail.com>
To: linux-media@vger.kernel.org, mchehab@kernel.org,
	mchehab@s-opensource.com
Subject: [PATCH 02/20] [media] dvb-frontends/stv0910: increase parallel TS output speed
Date: Mon,  2 Apr 2018 20:24:09 +0200	[thread overview]
Message-ID: <20180402182427.20918-3-d.scheller.oss@gmail.com> (raw)
In-Reply-To: <20180402182427.20918-1-d.scheller.oss@gmail.com>

From: Daniel Scheller <d.scheller@gmx.net>

When running in parallel TS mode (cfg->parallel=1), increase the output
speed in the demod.

Picked up from the upstream dddvb-0.9.33 release.

Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
---
 drivers/media/dvb-frontends/stv0910.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/media/dvb-frontends/stv0910.c b/drivers/media/dvb-frontends/stv0910.c
index f5b5ce971c0c..0d6130f97c36 100644
--- a/drivers/media/dvb-frontends/stv0910.c
+++ b/drivers/media/dvb-frontends/stv0910.c
@@ -1200,7 +1200,6 @@ static int probe(struct stv *state)
 	write_reg(state, RSTV0910_P1_TSCFGM, 0xC0); /* Manual speed */
 	write_reg(state, RSTV0910_P1_TSCFGL, 0x20);
 
-	/* Speed = 67.5 MHz */
 	write_reg(state, RSTV0910_P1_TSSPEED, state->tsspeed);
 
 	write_reg(state, RSTV0910_P2_TSCFGH, state->tscfgh | 0x01);
@@ -1208,7 +1207,6 @@ static int probe(struct stv *state)
 	write_reg(state, RSTV0910_P2_TSCFGM, 0xC0); /* Manual speed */
 	write_reg(state, RSTV0910_P2_TSCFGL, 0x20);
 
-	/* Speed = 67.5 MHz */
 	write_reg(state, RSTV0910_P2_TSSPEED, state->tsspeed);
 
 	/* Reset stream merger */
@@ -1790,7 +1788,7 @@ struct dvb_frontend *stv0910_attach(struct i2c_adapter *i2c,
 	state->tscfgh = 0x20 | (cfg->parallel ? 0 : 0x40);
 	state->tsgeneral = (cfg->parallel == 2) ? 0x02 : 0x00;
 	state->i2crpt = 0x0A | ((cfg->rptlvl & 0x07) << 4);
-	state->tsspeed = 0x28;
+	state->tsspeed = cfg->parallel ? 0x10 : 0x28;
 	state->nr = nr;
 	state->regoff = state->nr ? 0 : 0x200;
 	state->search_range = 16000000;
-- 
2.16.1

  parent reply	other threads:[~2018-04-02 18:24 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-02 18:24 [PATCH 00/20] dddvb/ddbridge-0.9.33 Daniel Scheller
2018-04-02 18:24 ` [PATCH 01/20] [media] dvb-frontends/stv0910: add init values for TSINSDELM/L Daniel Scheller
2018-04-02 18:24 ` Daniel Scheller [this message]
2018-04-02 18:24 ` [PATCH 03/20] [media] dvb-frontends/stv0910: fix CNR reporting in read_snr() Daniel Scheller
2018-04-02 18:24 ` [PATCH 04/20] [media] ddbridge: move modparams to ddbridge-core.c Daniel Scheller
2018-04-02 18:24 ` [PATCH 05/20] [media] ddbridge: move ddb_wq and the wq+class initialisation to -core Daniel Scheller
2018-04-02 18:24 ` [PATCH 06/20] [media] ddbridge: move MSI IRQ cleanup to a helper function Daniel Scheller
2018-04-02 18:24 ` [PATCH 07/20] [media] ddbridge: request/free_irq using pci_irq_vector, enable MSI-X Daniel Scheller
2018-04-02 18:24 ` [PATCH 08/20] [media] ddbridge: add helper for IRQ handler setup Daniel Scheller
2018-04-02 18:24 ` [PATCH 09/20] [media] ddbridge: add macros to handle IRQs in nibble and byte blocks Daniel Scheller
2018-04-02 18:24 ` [PATCH 10/20] [media] ddbridge: improve separated MSI IRQ handling Daniel Scheller
2018-04-02 18:24 ` [PATCH 11/20] [media] ddbridge: use spin_lock_irqsave() in output_work() Daniel Scheller
2018-04-02 18:24 ` [PATCH 12/20] [media] ddbridge: fix output buffer check Daniel Scheller
2018-04-02 18:24 ` [PATCH 13/20] [media] ddbridge: set devid entry for link 0 Daniel Scheller
2018-04-02 18:24 ` [PATCH 14/20] [media] ddbridge: make DMA buffer count and size modparam-configurable Daniel Scheller
2018-04-02 18:24 ` [PATCH 15/20] [media] ddbridge: support dummy tuners with 125MByte/s dummy data stream Daniel Scheller
2018-04-02 18:24 ` [PATCH 16/20] [media] ddbridge: initial support for MCI-based MaxSX8 cards Daniel Scheller
2018-04-02 18:24 ` [PATCH 17/20] [media] ddbridge/max: implement MCI/MaxSX8 attach function Daniel Scheller
2018-04-02 18:24 ` [PATCH 18/20] [media] ddbridge: add hardware defs and PCI IDs for MCI cards Daniel Scheller
2018-04-02 18:24 ` [PATCH 19/20] [media] ddbridge: recognize and attach the MaxSX8 cards Daniel Scheller
2018-04-02 18:24 ` [PATCH 20/20] [media] ddbridge: set driver version to 0.9.33-integrated Daniel Scheller
2018-04-05 20:45 ` [PATCH 00/20] dddvb/ddbridge-0.9.33 Daniel Scheller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180402182427.20918-3-d.scheller.oss@gmail.com \
    --to=d.scheller.oss@gmail.com \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=mchehab@s-opensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox