summaryrefslogtreecommitdiffstats
path: root/drivers/media/tuners/fc2580_priv.h
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2015-05-03 15:16:52 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-05-18 15:56:46 -0300
commit8b302d43e84dc863729010a1ea9a5a2bc83d25de (patch)
treeea01caef9d9006fdadc9d0fb9dfe5428c78c3f82 /drivers/media/tuners/fc2580_priv.h
parent7e33f8a282d4c98710db7423d637b799b52eb477 (diff)
downloadop-kernel-dev-8b302d43e84dc863729010a1ea9a5a2bc83d25de.zip
op-kernel-dev-8b302d43e84dc863729010a1ea9a5a2bc83d25de.tar.gz
[media] fc2580: calculate filter control word dynamically
Calculate low-pass filter control word dynamically from given radio channel bandwidth. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/tuners/fc2580_priv.h')
-rw-r--r--drivers/media/tuners/fc2580_priv.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/media/tuners/fc2580_priv.h b/drivers/media/tuners/fc2580_priv.h
index 60f8f6c..bd88b01 100644
--- a/drivers/media/tuners/fc2580_priv.h
+++ b/drivers/media/tuners/fc2580_priv.h
@@ -64,16 +64,15 @@ static const struct fc2580_pll fc2580_pll_lut[] = {
struct fc2580_if_filter {
u32 freq;
- u16 mul;
u8 r36_val;
u8 r39_val;
};
static const struct fc2580_if_filter fc2580_if_filter_lut[] = {
- { 6000000, 4400, 0x18, 0x00},
- { 7000000, 3910, 0x18, 0x80},
- { 8000000, 3300, 0x18, 0x80},
- {0xffffffff, 3300, 0x18, 0x80},
+ { 6000000, 0x18, 0x00},
+ { 7000000, 0x18, 0x80},
+ { 8000000, 0x18, 0x80},
+ {0xffffffff, 0x18, 0x80},
};
struct fc2580_freq_regs {
OpenPOWER on IntegriCloud