From 524b85fa92afeaf421ec229901e893218135c92e Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sat, 24 Sep 2005 09:06:31 +0000 Subject: 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 --- firmware/tuner_philips.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'firmware/tuner_philips.c') 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 -- cgit v1.2.3