Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec278f87 authored by Matthias Schwarzott's avatar Matthias Schwarzott Committed by Mauro Carvalho Chehab
Browse files

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: default avatarMatthias Schwarzott <zzam@gentoo.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 814f86c9
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -621,6 +621,9 @@ static int si2165_init(struct dvb_frontend *fe)
	if (ret < 0)
		return ret;
	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;

@@ -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 },