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

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
...@@ -621,6 +621,9 @@ static int si2165_init(struct dvb_frontend *fe) ...@@ -621,6 +621,9 @@ static int si2165_init(struct dvb_frontend *fe)
if (ret < 0) if (ret < 0)
return ret; return ret;
ret = si2165_writereg8(state, REG_TS_CLK_MODE, 0x01); 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) if (ret < 0)
return ret; return ret;
...@@ -723,7 +726,6 @@ static int si2165_set_if_freq_shift(struct si2165_state *state) ...@@ -723,7 +726,6 @@ static int si2165_set_if_freq_shift(struct si2165_state *state)
static const struct si2165_reg_value_pair dvbt_regs[] = { static const struct si2165_reg_value_pair dvbt_regs[] = {
/* standard = DVB-T */ /* standard = DVB-T */
{ REG_DVB_STANDARD, 0x01 }, { REG_DVB_STANDARD, 0x01 },
{ REG_TS_PARALLEL_MODE, 0x00 },
/* impulsive_noise_remover */ /* impulsive_noise_remover */
{ REG_IMPULSIVE_NOISE_REM, 0x01 }, { REG_IMPULSIVE_NOISE_REM, 0x01 },
{ REG_AUTO_RESET, 0x00 }, { REG_AUTO_RESET, 0x00 },
...@@ -786,7 +788,6 @@ static int si2165_set_frontend_dvbt(struct dvb_frontend *fe) ...@@ -786,7 +788,6 @@ static int si2165_set_frontend_dvbt(struct dvb_frontend *fe)
static const struct si2165_reg_value_pair dvbc_regs[] = { static const struct si2165_reg_value_pair dvbc_regs[] = {
/* standard = DVB-C */ /* standard = DVB-C */
{ REG_DVB_STANDARD, 0x05 }, { REG_DVB_STANDARD, 0x05 },
{ REG_TS_PARALLEL_MODE, 0x00 },
/* agc2 */ /* agc2 */
{ REG_AGC2_MIN, 0x50 }, { REG_AGC2_MIN, 0x50 },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment