summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/config-h100.h2
-rw-r--r--firmware/export/config-h120.h2
-rw-r--r--firmware/tuner_philips.c8
3 files changed, 6 insertions, 6 deletions
diff --git a/firmware/export/config-h100.h b/firmware/export/config-h100.h
index 3d8a164442..4917b5c178 100644
--- a/firmware/export/config-h100.h
+++ b/firmware/export/config-h100.h
@@ -48,7 +48,7 @@
#define PLUGIN_BUFFER_SIZE 0xC0000
#define CONFIG_TUNER TEA5767
-#define CONFIG_TUNER_XTAL 32768000
+#define CONFIG_TUNER_XTAL 32768
#ifndef SIMULATOR
diff --git a/firmware/export/config-h120.h b/firmware/export/config-h120.h
index 194c53b93c..9b1b563531 100644
--- a/firmware/export/config-h120.h
+++ b/firmware/export/config-h120.h
@@ -44,7 +44,7 @@
#define PLUGIN_BUFFER_SIZE 0xC0000
#define CONFIG_TUNER TEA5767
-#define CONFIG_TUNER_XTAL 32768000
+#define CONFIG_TUNER_XTAL 32768
#ifndef SIMULATOR
diff --git a/firmware/tuner_philips.c b/firmware/tuner_philips.c
index 72dbf9df5b..2958e9e829 100644
--- a/firmware/tuner_philips.c
+++ b/firmware/tuner_philips.c
@@ -38,8 +38,8 @@ void philips_set(int setting, int value)
write_bytes[0] = 0x80; /* mute */
write_bytes[1] = 0x00;
write_bytes[2] = 0x00;
-#if CONFIG_TUNER_XTAL == 32768000
- write_bytes[3] = 0x1A; /* 32.768MHz, soft mute,
+#if CONFIG_TUNER_XTAL == 32768
+ write_bytes[3] = 0x1A; /* 32.768kHz, soft mute,
stereo noise cancelling */
#else
write_bytes[3] = 0x0A; /* soft mute, stereo noise cancelling */
@@ -54,8 +54,8 @@ void philips_set(int setting, int value)
case RADIO_FREQUENCY:
{
int n;
-#if CONFIG_TUNER_XTAL == 32768000
- n = (4 * (value - 225000)) / 32768;
+#if CONFIG_TUNER_XTAL == 32768
+ n = (4 * (value - 225000) + 16384) / 32768;
#else
n = (4 * (value - 225000)) / 50000;
#endif