From 635b2751afb8032ae94b3a152667ae07004a6074 Mon Sep 17 00:00:00 2001 From: Steve Markgraf Date: Sun, 27 May 2012 19:07:37 +0200 Subject: [PATCH] tuner_e4k: workaround for band selection between 325 - 350 MHz Thanks to roger and Kire Pudsje for reporting this problem, and Hoernchen for proposing the fix. Signed-off-by: Steve Markgraf --- src/tuner_e4k.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tuner_e4k.c b/src/tuner_e4k.c index c41f5a2..4b271ef 100644 --- a/src/tuner_e4k.c +++ b/src/tuner_e4k.c @@ -447,6 +447,9 @@ static int e4k_band_set(struct e4k_state *e4k, enum e4k_band band) 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;