summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Daniel <cd@maintech.de>2012-05-30 21:59:36 +0200
committerChristian Daniel <cd@maintech.de>2012-05-30 21:59:36 +0200
commitdda6e9c4cbc781af2d900a8c1348fc8efd5df28b (patch)
treee24b96267aee03bb47c654b3ca7114151ebe9ff8
parent83ebd2b3102f99aa3d33e7ae7cdb19a9106fc268 (diff)
add workaround for E4K gap between 325-350 MHz
-rw-r--r--firmware/src/tuner_e4k.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/src/tuner_e4k.c b/firmware/src/tuner_e4k.c
index e89cf84..d4d9113 100644
--- a/firmware/src/tuner_e4k.c
+++ b/firmware/src/tuner_e4k.c
@@ -445,7 +445,9 @@ static int e4k_band_set(struct e4k_state *e4k, enum e4k_band band)
e4k_reg_write(e4k, E4K_REG_BIAS, 0);
break;
}
-
+ /* workaround: if we don't reset this register before writing to it,
+ * we get a gap between 325-350 MHz */
+ rc = e4k_reg_set_mask(e4k, E4K_REG_SYNTH1, 0x06, 0);
rc = e4k_reg_set_mask(e4k, E4K_REG_SYNTH1, 0x06, band << 1);
if (rc >= 0)
e4k->band = band;