diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2012-04-01 21:34:25 +0200 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2012-04-01 21:34:25 +0200 |
commit | 16202796ae0c182883e04fc2761264df1e2a1cfd (patch) | |
tree | 2a5d71ec3ad0906cc88245263053f554665a1df2 | |
parent | 161ad3c4692cf022dcce3cbf83bd65ab3f8f6a78 (diff) |
fw/tuner_e4k: Disable auto gain adjustement during DC table gen
We need them to be fixed during that time, so disable all auto
stuff
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
-rw-r--r-- | firmware/src/tuner_e4k.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/src/tuner_e4k.c b/firmware/src/tuner_e4k.c index 7a9b00c..644efd6 100644 --- a/firmware/src/tuner_e4k.c +++ b/firmware/src/tuner_e4k.c @@ -796,6 +796,13 @@ int e4k_dc_offset_gen_table(struct e4k_state *e4k) /* FIXME: read ont current gain values and write them back * before returning to the caller */ + /* disable auto mixer gain */ + e4k_reg_set_mask(e4k, E4K_REG_AGC7, E4K_AGC7_MIX_GAIN_AUTO, 0); + + /* set LNA/IF gain to full manual */ + e4k_reg_set_mask(e4k, E4K_REG_AGC1, E4K_AGC1_MOD_MASK, + E4K_AGC_MOD_SERIAL); + /* set all 'other' gains to maximum */ for (i = 2; i <= 6; i++) e4k_if_gain_set(e4k, i, if_gains_max[i]); |