summaryrefslogtreecommitdiff
path: root/apps/keymaps/keymap-ipod.c
diff options
context:
space:
mode:
authorBarry Wardell <rockbox@barrywardell.net>2006-12-18 01:52:21 +0000
committerBarry Wardell <rockbox@barrywardell.net>2006-12-18 01:52:21 +0000
commitdf0dc2262ea10f621677c0f97aae1c205e253b87 (patch)
treed25085132fe9f0504d221360092537492cedd3b8 /apps/keymaps/keymap-ipod.c
parent440353a9aa1159584b977a2852e723ae07bad2a6 (diff)
downloadrockbox-df0dc2262ea10f621677c0f97aae1c205e253b87.tar.gz
rockbox-df0dc2262ea10f621677c0f97aae1c205e253b87.zip
FS#6096. Recording on PortalPlayer targets (H10, iPod Video, iPod 4g, iPod Color, iPod Nano).
* Fix failed compile of enc_config.c when HAVE_MPEG2_SAMPR is not defined. * Fix bug in AIFF encoder header creation on little endian targets. * Add recording screen keymaps for H10 and iPod. * Move pcm_playback PP specific code to target tree. * Add recording code to wmcodec drivers. * Add pcm_record code. Some problems still remain: * Playback doesn't work after recording until Rockbox is restarted. * Gain control not implemented. * Only 16-bit/44KHz for now. The hardware should be capable of up to 24-bit/96KHz. * Line-in recording not tested on H10. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11794 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/keymaps/keymap-ipod.c')
-rw-r--r--apps/keymaps/keymap-ipod.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/keymaps/keymap-ipod.c b/apps/keymaps/keymap-ipod.c
index 26189d95fe..8ca0c56831 100644
--- a/apps/keymaps/keymap-ipod.c
+++ b/apps/keymaps/keymap-ipod.c
@@ -166,6 +166,12 @@ static const struct button_mapping button_context_keyboard[] = {
166 LAST_ITEM_IN_LIST 166 LAST_ITEM_IN_LIST
167}; /* button_context_keyboard */ 167}; /* button_context_keyboard */
168 168
169const struct button_mapping button_context_recscreen[] = {
170 { ACTION_REC_PAUSE, BUTTON_PLAY, BUTTON_NONE },
171
172 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_SETTINGS)
173}; /* button_context_recscreen */
174
169/* get_context_mapping returns a pointer to one of the above defined arrays depending on the context */ 175/* get_context_mapping returns a pointer to one of the above defined arrays depending on the context */
170const struct button_mapping* get_context_mapping(int context) 176const struct button_mapping* get_context_mapping(int context)
171{ 177{
@@ -202,6 +208,8 @@ const struct button_mapping* get_context_mapping(int context)
202 return button_context_pitchscreen; 208 return button_context_pitchscreen;
203 case CONTEXT_KEYBOARD: 209 case CONTEXT_KEYBOARD:
204 return button_context_keyboard; 210 return button_context_keyboard;
211 case CONTEXT_RECSCREEN:
212 return button_context_recscreen;
205 default: 213 default:
206 return button_context_standard; 214 return button_context_standard;
207 } 215 }