diff options
author | Mark Arigo <markarigo@gmail.com> | 2009-02-13 03:49:17 +0000 |
---|---|---|
committer | Mark Arigo <markarigo@gmail.com> | 2009-02-13 03:49:17 +0000 |
commit | 802b57ccd7676a9f619e93a4d326cf6f524f2079 (patch) | |
tree | 111cb07148c0956e353f012041ea0e9be1b0ba0d /firmware/drivers/tuner/tea5767.c | |
parent | 311595c60cb8a720e93205218042101b65830b29 (diff) | |
download | rockbox-802b57ccd7676a9f619e93a4d326cf6f524f2079.tar.gz rockbox-802b57ccd7676a9f619e93a4d326cf6f524f2079.zip |
FM radio for Philips HDD1630. Volume was very faint unless recording was enabled, so do that too.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19996 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/tuner/tea5767.c')
-rw-r--r-- | firmware/drivers/tuner/tea5767.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/firmware/drivers/tuner/tea5767.c b/firmware/drivers/tuner/tea5767.c index 2d18a0fdf7..09503455f3 100644 --- a/firmware/drivers/tuner/tea5767.c +++ b/firmware/drivers/tuner/tea5767.c | |||
@@ -28,7 +28,12 @@ | |||
28 | #include "fmradio.h" | 28 | #include "fmradio.h" |
29 | #include "fmradio_i2c.h" /* physical interface driver */ | 29 | #include "fmradio_i2c.h" /* physical interface driver */ |
30 | 30 | ||
31 | #if defined(PHILIPS_HDD1630) | ||
32 | #define I2C_ADR 0x60 | ||
33 | #else | ||
31 | #define I2C_ADR 0xC0 | 34 | #define I2C_ADR 0xC0 |
35 | #endif | ||
36 | |||
32 | static unsigned char write_bytes[5] = { 0x00, 0x00, 0x00, 0x00, 0x00 }; | 37 | static unsigned char write_bytes[5] = { 0x00, 0x00, 0x00, 0x00, 0x00 }; |
33 | 38 | ||
34 | static void tea5767_set_clear(int byte, unsigned char bits, int set) | 39 | static void tea5767_set_clear(int byte, unsigned char bits, int set) |
@@ -87,7 +92,7 @@ int tea5767_set(int setting, int value) | |||
87 | tea5767_set_clear(4, (1<<6), rd->deemphasis); | 92 | tea5767_set_clear(4, (1<<6), rd->deemphasis); |
88 | tea5767_set_clear(3, (1<<5), rd->band); | 93 | tea5767_set_clear(3, (1<<5), rd->band); |
89 | break; | 94 | break; |
90 | } | 95 | } |
91 | case RADIO_FORCE_MONO: | 96 | case RADIO_FORCE_MONO: |
92 | tea5767_set_clear(2, 0x08, value); | 97 | tea5767_set_clear(2, 0x08, value); |
93 | break; | 98 | break; |