summaryrefslogtreecommitdiff
path: root/firmware/tuner_philips.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-09-24 09:06:31 +0000
committerJens Arnold <amiconn@rockbox.org>2005-09-24 09:06:31 +0000
commit524b85fa92afeaf421ec229901e893218135c92e (patch)
tree821830f251485a586d5eec0ae6423fcb3ee7aab4 /firmware/tuner_philips.c
parent9f41c6c11e97afaa60f439a63528c617c54ce2c4 (diff)
downloadrockbox-524b85fa92afeaf421ec229901e893218135c92e.tar.gz
rockbox-524b85fa92afeaf421ec229901e893218135c92e.zip
H1x0: More precise tuning; corrected xtal frequency in comments + #defines.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7553 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/tuner_philips.c')
-rw-r--r--firmware/tuner_philips.c8
1 files changed, 4 insertions, 4 deletions
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)
38 write_bytes[0] = 0x80; /* mute */ 38 write_bytes[0] = 0x80; /* mute */
39 write_bytes[1] = 0x00; 39 write_bytes[1] = 0x00;
40 write_bytes[2] = 0x00; 40 write_bytes[2] = 0x00;
41#if CONFIG_TUNER_XTAL == 32768000 41#if CONFIG_TUNER_XTAL == 32768
42 write_bytes[3] = 0x1A; /* 32.768MHz, soft mute, 42 write_bytes[3] = 0x1A; /* 32.768kHz, soft mute,
43 stereo noise cancelling */ 43 stereo noise cancelling */
44#else 44#else
45 write_bytes[3] = 0x0A; /* soft mute, stereo noise cancelling */ 45 write_bytes[3] = 0x0A; /* soft mute, stereo noise cancelling */
@@ -54,8 +54,8 @@ void philips_set(int setting, int value)
54 case RADIO_FREQUENCY: 54 case RADIO_FREQUENCY:
55 { 55 {
56 int n; 56 int n;
57#if CONFIG_TUNER_XTAL == 32768000 57#if CONFIG_TUNER_XTAL == 32768
58 n = (4 * (value - 225000)) / 32768; 58 n = (4 * (value - 225000) + 16384) / 32768;
59#else 59#else
60 n = (4 * (value - 225000)) / 50000; 60 n = (4 * (value - 225000)) / 50000;
61#endif 61#endif