diff options
author | Andrew de Quincy <devnull@localhost> | 2004-11-19 01:05:58 +0000 |
---|---|---|
committer | Andrew de Quincy <devnull@localhost> | 2004-11-19 01:05:58 +0000 |
commit | 1152aeae8d048364262d73992407ee7b7bec708f (patch) | |
tree | 477b0d4818666d412c2486e00b5c55c6fe1c8a14 /linux/drivers/media/dvb/frontends/tda1004x.c | |
parent | f547eaa0355afb5242bda7245e783a7121c9b481 (diff) | |
download | mediapointer-dvb-s2-1152aeae8d048364262d73992407ee7b7bec708f.tar.gz mediapointer-dvb-s2-1152aeae8d048364262d73992407ee7b7bec708f.tar.bz2 |
Only hardcode to AUTO for tda10045
Diffstat (limited to 'linux/drivers/media/dvb/frontends/tda1004x.c')
-rw-r--r-- | linux/drivers/media/dvb/frontends/tda1004x.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/linux/drivers/media/dvb/frontends/tda1004x.c b/linux/drivers/media/dvb/frontends/tda1004x.c index 6a213158c..394f9eb68 100644 --- a/linux/drivers/media/dvb/frontends/tda1004x.c +++ b/linux/drivers/media/dvb/frontends/tda1004x.c @@ -616,12 +616,13 @@ static int tda1004x_set_fe(struct dvb_frontend* fe, if (state->demod_type == TDA1004X_DEMOD_TDA10046) tda1004x_write_mask(state, TDA10046H_AGC_CONF, 4, 4); - // Hardcoded to use auto as much as possible - // The TDA10045 is very unreliable if AUTO mode is _not_ used. I have not - // yet tested the TDA10046 to see if this issue has been fixed - fe_params->u.ofdm.code_rate_HP = FEC_AUTO; - fe_params->u.ofdm.guard_interval = GUARD_INTERVAL_AUTO; - fe_params->u.ofdm.transmission_mode = TRANSMISSION_MODE_AUTO; + // Hardcoded to use auto as much as possible on the TDA10045 as it + // is very unreliable if AUTO mode is _not_ used. + if (state->demod_type == TDA1004X_DEMOD_TDA10045) { + fe_params->u.ofdm.code_rate_HP = FEC_AUTO; + fe_params->u.ofdm.guard_interval = GUARD_INTERVAL_AUTO; + fe_params->u.ofdm.transmission_mode = TRANSMISSION_MODE_AUTO; + } // Set standard params.. or put them to auto if ((fe_params->u.ofdm.code_rate_HP == FEC_AUTO) || |