summaryrefslogtreecommitdiffstats
path: root/sound/i2c/other/tea575x-tuner.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2012-05-18 15:01:36 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-06-11 16:02:15 -0300
commit0875eb755b66a6766be117133dbb6d8157ace337 (patch)
tree1d2d4db274418ce3cad29b8181861d5e04b49567 /sound/i2c/other/tea575x-tuner.c
parent110301833d6f6c74e4da3a31fc3d327eb3436812 (diff)
downloadop-kernel-dev-0875eb755b66a6766be117133dbb6d8157ace337.zip
op-kernel-dev-0875eb755b66a6766be117133dbb6d8157ace337.tar.gz
[media] snd_tea575x: Report correct frequency range for EU/US versus JA models
My EU/US 5757 cannot tune below approx 86 Mhz, that is below that it does not even generate the standard not tuned to anything radio noise anymore, so clearly the 5757 cannot tune to the Japanese frequencies. This patch assumes that likewise the 5759 cannot tune to the EU/US frequencies. Signed-off-by: Hans de Goede <hdegoede@redhat.com> CC: Ondrej Zary <linux@rainbow-software.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'sound/i2c/other/tea575x-tuner.c')
-rw-r--r--sound/i2c/other/tea575x-tuner.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/i2c/other/tea575x-tuner.c b/sound/i2c/other/tea575x-tuner.c
index 582aace..aa9900d 100644
--- a/sound/i2c/other/tea575x-tuner.c
+++ b/sound/i2c/other/tea575x-tuner.c
@@ -37,8 +37,8 @@ MODULE_AUTHOR("Jaroslav Kysela <perex@perex.cz>");
MODULE_DESCRIPTION("Routines for control of TEA5757/5759 Philips AM/FM radio tuner chips");
MODULE_LICENSE("GPL");
-#define FREQ_LO (76U * 16000)
-#define FREQ_HI (108U * 16000)
+#define FREQ_LO ((tea->tea5759 ? 760 : 875) * 1600U)
+#define FREQ_HI ((tea->tea5759 ? 910 : 1080) * 1600U)
/*
* definitions
OpenPOWER on IntegriCloud