summaryrefslogtreecommitdiff
path: root/drivers/media/dvb-frontends
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2017-11-05 09:25:01 -0500
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-12-12 05:34:46 -0500
commitec278f879a004db8865bdb53ef8e2b0ba6382435 (patch)
tree358ae7e8918d01b8b9018e6161401795d9d76de1 /drivers/media/dvb-frontends
parent814f86c9e2d6512e6b48dc4c8177cfbab0a4ae32 (diff)
media: si2165: move ts parallel mode setting to the ts init code
The TS parallel mode setting should be where all other TS settings are written. Signed-off-by: Matthias Schwarzott <zzam@gentoo.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/dvb-frontends')
-rw-r--r--drivers/media/dvb-frontends/si2165.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/dvb-frontends/si2165.c b/drivers/media/dvb-frontends/si2165.c
index 0f5325798bd2..b2541c1fe554 100644
--- a/drivers/media/dvb-frontends/si2165.c
+++ b/drivers/media/dvb-frontends/si2165.c
@@ -623,6 +623,9 @@ static int si2165_init(struct dvb_frontend *fe)
ret = si2165_writereg8(state, REG_TS_CLK_MODE, 0x01);
if (ret < 0)
return ret;
+ ret = si2165_writereg8(state, REG_TS_PARALLEL_MODE, 0x00);
+ if (ret < 0)
+ return ret;
return 0;
error:
@@ -723,7 +726,6 @@ static int si2165_set_if_freq_shift(struct si2165_state *state)
static const struct si2165_reg_value_pair dvbt_regs[] = {
/* standard = DVB-T */
{ REG_DVB_STANDARD, 0x01 },
- { REG_TS_PARALLEL_MODE, 0x00 },
/* impulsive_noise_remover */
{ REG_IMPULSIVE_NOISE_REM, 0x01 },
{ REG_AUTO_RESET, 0x00 },
@@ -786,7 +788,6 @@ static int si2165_set_frontend_dvbt(struct dvb_frontend *fe)
static const struct si2165_reg_value_pair dvbc_regs[] = {
/* standard = DVB-C */
{ REG_DVB_STANDARD, 0x05 },
- { REG_TS_PARALLEL_MODE, 0x00 },
/* agc2 */
{ REG_AGC2_MIN, 0x50 },