summaryrefslogtreecommitdiff
path: root/apps/keymaps
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/keymaps
parent9c33f93c1c9bfd37f33f638eccceefa4c0d5b5e6 (diff)
downloadrockbox-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/keymaps')
-rw-r--r--apps/keymaps/keymap-ypr0.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/apps/keymaps/keymap-ypr0.c b/apps/keymaps/keymap-ypr0.c
index b5706760ba..306fd91e34 100644
--- a/apps/keymaps/keymap-ypr0.c
+++ b/apps/keymaps/keymap-ypr0.c
@@ -212,7 +212,24 @@ static const struct button_mapping button_context_keyboard[] = {
212}; /* button_context_keyboard */ 212}; /* button_context_keyboard */
213 213
214static const struct button_mapping button_context_radio[] = { 214static const struct button_mapping button_context_radio[] = {
215 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_SETTINGS) 215 { ACTION_FM_MENU, BUTTON_SELECT | BUTTON_REPEAT, BUTTON_NONE },
216 { ACTION_FM_PRESET, BUTTON_MENU | BUTTON_REPEAT, BUTTON_NONE },
217 { ACTION_FM_STOP, BUTTON_POWER | BUTTON_REL, BUTTON_POWER },
218 { ACTION_FM_MODE, BUTTON_MENU | BUTTON_REL, BUTTON_MENU },
219 { ACTION_FM_EXIT, BUTTON_BACK | BUTTON_REL, BUTTON_BACK },
220 { ACTION_FM_PLAY, BUTTON_SELECT | BUTTON_REL, BUTTON_SELECT },
221 { ACTION_FM_NEXT_PRESET, BUTTON_USER | BUTTON_RIGHT, BUTTON_NONE },
222 { ACTION_FM_PREV_PRESET, BUTTON_USER | BUTTON_LEFT, BUTTON_NONE },
223 /* Volume */
224 { ACTION_SETTINGS_INC, BUTTON_UP | BUTTON_REPEAT, BUTTON_NONE },
225 { ACTION_SETTINGS_INCREPEAT, BUTTON_UP, BUTTON_NONE },
226 { ACTION_SETTINGS_DEC, BUTTON_DOWN | BUTTON_REPEAT, BUTTON_NONE },
227 { ACTION_SETTINGS_DECREPEAT, BUTTON_DOWN, BUTTON_NONE },
228 /* Tuning */
229 { ACTION_STD_PREV, BUTTON_LEFT, BUTTON_NONE },
230 { ACTION_STD_PREVREPEAT, BUTTON_LEFT | BUTTON_REPEAT, BUTTON_NONE },
231 { ACTION_STD_NEXT, BUTTON_RIGHT, BUTTON_NONE },
232 { ACTION_STD_NEXTREPEAT, BUTTON_RIGHT | BUTTON_REPEAT, BUTTON_NONE },
216}; /* button_context_radio */ 233}; /* button_context_radio */
217 234
218const struct button_mapping* get_context_mapping(int context) 235const struct button_mapping* get_context_mapping(int context)