diff options
author | Lorenzo Miori <memorys60@gmail.com> | 2012-04-07 10:30:23 +0200 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2012-05-28 19:39:14 +0200 |
commit | 3cad5573b68917442564dc4f210fac056447c5cd (patch) | |
tree | 16e7f637a7bf9a22b00fde445a97f267b5467cc2 /apps/radio/radio.c | |
parent | 9c33f93c1c9bfd37f33f638eccceefa4c0d5b5e6 (diff) | |
download | rockbox-3cad5573b68917442564dc4f210fac056447c5cd.tar.gz rockbox-3cad5573b68917442564dc4f210fac056447c5cd.zip |
ypr0: This patch adds radio support to Samsung YP-R0
Basically it uses the default SI4700 radio chip driver, the only thing that's different is the I2C access,
written specifically to interact with my kernel module.
Next things to add are:
- RDS support!
Change-Id: I0ed125641e00f93124d7a34f90dd508e7f1db5a4
Signed-off-by: Lorenzo Miori <memorys60@gmail.com>
Diffstat (limited to 'apps/radio/radio.c')
-rw-r--r-- | apps/radio/radio.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/radio/radio.c b/apps/radio/radio.c index 9f139f49a6..326e6a3bb0 100644 --- a/apps/radio/radio.c +++ b/apps/radio/radio.c | |||
@@ -127,6 +127,16 @@ | |||
127 | #define FM_MODE | 127 | #define FM_MODE |
128 | #define FM_STOP | 128 | #define FM_STOP |
129 | 129 | ||
130 | #elif (CONFIG_KEYPAD == SAMSUNG_YPR0_PAD) | ||
131 | #define FM_MENU | ||
132 | #define FM_PRESET | ||
133 | #define FM_STOP | ||
134 | #define FM_MODE | ||
135 | #define FM_EXIT | ||
136 | #define FM_PLAY | ||
137 | #define FM_PREV_PRESET | ||
138 | #define FM_NEXT_PRESET | ||
139 | |||
130 | #endif | 140 | #endif |
131 | 141 | ||
132 | /* presets.c needs these so keep unstatic or redo the whole thing! */ | 142 | /* presets.c needs these so keep unstatic or redo the whole thing! */ |