summaryrefslogtreecommitdiff
path: root/apps/radio
diff options
context:
space:
mode:
authorLorenzo Miori <memorys60@gmail.com>2012-04-07 10:30:23 +0200
committerThomas Martitz <kugel@rockbox.org>2012-05-28 19:39:14 +0200
commit3cad5573b68917442564dc4f210fac056447c5cd (patch)
tree16e7f637a7bf9a22b00fde445a97f267b5467cc2 /apps/radio
parent9c33f93c1c9bfd37f33f638eccceefa4c0d5b5e6 (diff)
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')
-rw-r--r--apps/radio/radio.c10
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 @@
#define FM_MODE
#define FM_STOP
+#elif (CONFIG_KEYPAD == SAMSUNG_YPR0_PAD)
+#define FM_MENU
+#define FM_PRESET
+#define FM_STOP
+#define FM_MODE
+#define FM_EXIT
+#define FM_PLAY
+#define FM_PREV_PRESET
+#define FM_NEXT_PRESET
+
#endif
/* presets.c needs these so keep unstatic or redo the whole thing! */