mirror of
https://github.com/torvalds/linux.git
synced 2024-12-02 09:01:34 +00:00
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>
This commit is contained in:
parent
814f86c9e2
commit
ec278f879a
@ -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 },
|
||||
|
Loading…
Reference in New Issue
Block a user