diff options
Diffstat (limited to 'apps/keymaps')
-rw-r--r-- | apps/keymaps/keymap-rk27xx-generic.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/apps/keymaps/keymap-rk27xx-generic.c b/apps/keymaps/keymap-rk27xx-generic.c index a709df6156..7a4545b246 100644 --- a/apps/keymaps/keymap-rk27xx-generic.c +++ b/apps/keymaps/keymap-rk27xx-generic.c | |||
@@ -66,7 +66,21 @@ static const struct button_mapping button_context_wps[] = { | |||
66 | LAST_ITEM_IN_LIST | 66 | LAST_ITEM_IN_LIST |
67 | }; /* button_context_wps */ | 67 | }; /* button_context_wps */ |
68 | 68 | ||
69 | #ifdef CONFIG_TUNER | ||
70 | static const struct button_mapping button_context_radio[] = { | ||
71 | { ACTION_FM_MENU, BUTTON_M|BUTTON_REPEAT, BUTTON_NONE }, | ||
72 | { ACTION_FM_PLAY, BUTTON_PLAY|BUTTON_REL, BUTTON_PLAY }, | ||
73 | { ACTION_FM_STOP, BUTTON_PLAY|BUTTON_REPEAT, BUTTON_NONE }, | ||
74 | { ACTION_SETTINGS_INC, BUTTON_VOL|BUTTON_FF, BUTTON_NONE }, | ||
75 | { ACTION_SETTINGS_INCREPEAT, BUTTON_VOL|BUTTON_FF|BUTTON_REPEAT, BUTTON_NONE }, | ||
76 | { ACTION_SETTINGS_DEC, BUTTON_VOL|BUTTON_REW, BUTTON_NONE }, | ||
77 | { ACTION_SETTINGS_DECREPEAT, BUTTON_VOL|BUTTON_REW|BUTTON_REPEAT,BUTTON_NONE }, | ||
69 | 78 | ||
79 | { ACTION_FM_EXIT, BUTTON_M|BUTTON_REL, BUTTON_M }, | ||
80 | |||
81 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_SETTINGS) | ||
82 | }; /* button_context_radio */ | ||
83 | #endif | ||
70 | 84 | ||
71 | /* get_context_mapping returns a pointer to one of the above defined arrays depending on the context */ | 85 | /* get_context_mapping returns a pointer to one of the above defined arrays depending on the context */ |
72 | const struct button_mapping* get_context_mapping(int context) | 86 | const struct button_mapping* get_context_mapping(int context) |
@@ -77,7 +91,10 @@ const struct button_mapping* get_context_mapping(int context) | |||
77 | return button_context_standard; | 91 | return button_context_standard; |
78 | case CONTEXT_WPS: | 92 | case CONTEXT_WPS: |
79 | return button_context_wps; | 93 | return button_context_wps; |
80 | 94 | #ifdef CONFIG_TUNER | |
95 | case CONTEXT_FM: | ||
96 | return button_context_radio; | ||
97 | #endif | ||
81 | case CONTEXT_TREE: | 98 | case CONTEXT_TREE: |
82 | case CONTEXT_LIST: | 99 | case CONTEXT_LIST: |
83 | case CONTEXT_MAINMENU: | 100 | case CONTEXT_MAINMENU: |