diff options
Diffstat (limited to 'drivers/media/dvb/frontends/drxk_hard.c')
-rw-r--r-- | drivers/media/dvb/frontends/drxk_hard.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/drxk_hard.c b/drivers/media/dvb/frontends/drxk_hard.c index d25b0d20038b..5fa192731fcd 100644 --- a/drivers/media/dvb/frontends/drxk_hard.c +++ b/drivers/media/dvb/frontends/drxk_hard.c | |||
@@ -1179,6 +1179,7 @@ static int MPEGTSConfigurePins(struct drxk_state *state, bool mpegEnable) | |||
1179 | int status = -1; | 1179 | int status = -1; |
1180 | u16 sioPdrMclkCfg = 0; | 1180 | u16 sioPdrMclkCfg = 0; |
1181 | u16 sioPdrMdxCfg = 0; | 1181 | u16 sioPdrMdxCfg = 0; |
1182 | u16 err_cfg = 0; | ||
1182 | 1183 | ||
1183 | dprintk(1, ": mpeg %s, %s mode\n", | 1184 | dprintk(1, ": mpeg %s, %s mode\n", |
1184 | mpegEnable ? "enable" : "disable", | 1185 | mpegEnable ? "enable" : "disable", |
@@ -1244,12 +1245,17 @@ static int MPEGTSConfigurePins(struct drxk_state *state, bool mpegEnable) | |||
1244 | status = write16(state, SIO_PDR_MSTRT_CFG__A, sioPdrMdxCfg); | 1245 | status = write16(state, SIO_PDR_MSTRT_CFG__A, sioPdrMdxCfg); |
1245 | if (status < 0) | 1246 | if (status < 0) |
1246 | goto error; | 1247 | goto error; |
1247 | status = write16(state, SIO_PDR_MERR_CFG__A, 0x0000); /* Disable */ | 1248 | |
1249 | if (state->enable_merr_cfg) | ||
1250 | err_cfg = sioPdrMdxCfg; | ||
1251 | |||
1252 | status = write16(state, SIO_PDR_MERR_CFG__A, err_cfg); | ||
1248 | if (status < 0) | 1253 | if (status < 0) |
1249 | goto error; | 1254 | goto error; |
1250 | status = write16(state, SIO_PDR_MVAL_CFG__A, 0x0000); /* Disable */ | 1255 | status = write16(state, SIO_PDR_MVAL_CFG__A, err_cfg); |
1251 | if (status < 0) | 1256 | if (status < 0) |
1252 | goto error; | 1257 | goto error; |
1258 | |||
1253 | if (state->m_enableParallel == true) { | 1259 | if (state->m_enableParallel == true) { |
1254 | /* paralel -> enable MD1 to MD7 */ | 1260 | /* paralel -> enable MD1 to MD7 */ |
1255 | status = write16(state, SIO_PDR_MD1_CFG__A, sioPdrMdxCfg); | 1261 | status = write16(state, SIO_PDR_MD1_CFG__A, sioPdrMdxCfg); |
@@ -6379,6 +6385,7 @@ struct dvb_frontend *drxk_attach(const struct drxk_config *config, | |||
6379 | state->antenna_gpio = config->antenna_gpio; | 6385 | state->antenna_gpio = config->antenna_gpio; |
6380 | state->antenna_dvbt = config->antenna_dvbt; | 6386 | state->antenna_dvbt = config->antenna_dvbt; |
6381 | state->m_ChunkSize = config->chunk_size; | 6387 | state->m_ChunkSize = config->chunk_size; |
6388 | state->enable_merr_cfg = config->enable_merr_cfg; | ||
6382 | 6389 | ||
6383 | if (config->dynamic_clk) { | 6390 | if (config->dynamic_clk) { |
6384 | state->m_DVBTStaticCLK = 0; | 6391 | state->m_DVBTStaticCLK = 0; |