diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-12-17 10:13:29 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-12-17 10:13:29 +0000 |
| commit | 7da0c40f4b8c22347dd196de1bf60f455089b625 (patch) | |
| tree | c79af3710462d4068b9eaaaad7c7e9ac3738b678 | |
| parent | a6a0c4b2d5a208bc9034292f1b0045d42faf7ead (diff) | |
| download | rockbox-7da0c40f4b8c22347dd196de1bf60f455089b625.zip rockbox-7da0c40f4b8c22347dd196de1bf60f455089b625.tar.gz rockbox-7da0c40f4b8c22347dd196de1bf60f455089b625.tar.bz2 rockbox-7da0c40f4b8c22347dd196de1bf60f455089b625.tar.xz | |
Patch #1382969 by Peter D'Hoye - recording for H300
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8252 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/main.c | 4 | ||||
| -rw-r--r-- | apps/recorder/recording.c | 9 | ||||
| -rw-r--r-- | firmware/export/config-h300.h | 2 |
3 files changed, 12 insertions, 3 deletions
diff --git a/apps/main.c b/apps/main.c index 6985426..44d92c1 100644 --- a/apps/main.c +++ b/apps/main.c @@ -69,7 +69,7 @@ #else #define pcmbuf_init() #endif -#if defined(IRIVER_H100_SERIES) && !defined(SIMULATOR) +#if (defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES)) && !defined(SIMULATOR) #include "pcm_record.h" #define SETTINGS_RESET BUTTON_REC #endif @@ -363,7 +363,7 @@ void init(void) #if (CONFIG_CODEC == SWCODEC) sound_settings_apply(); #endif -#if defined(IRIVER_H100_SERIES) && !defined(SIMULATOR) +#if (defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES)) && !defined(SIMULATOR) pcm_rec_init(); #endif talk_init(); diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index 4ca4bcb..6a87388 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c @@ -93,6 +93,15 @@ #define REC_PREV BUTTON_UP #define REC_SETTINGS BUTTON_MODE +#elif CONFIG_KEYPAD == IRIVER_H300_PAD +#define REC_STOPEXIT BUTTON_OFF +#define REC_RECPAUSE BUTTON_REC +#define REC_INC BUTTON_RIGHT +#define REC_DEC BUTTON_LEFT +#define REC_NEXT BUTTON_DOWN +#define REC_PREV BUTTON_UP +#define REC_SETTINGS BUTTON_MODE + #elif CONFIG_KEYPAD == GMINI100_PAD #define REC_STOPEXIT BUTTON_OFF #define REC_RECPAUSE BUTTON_ON diff --git a/firmware/export/config-h300.h b/firmware/export/config-h300.h index 019b090..a88fd04 100644 --- a/firmware/export/config-h300.h +++ b/firmware/export/config-h300.h @@ -7,7 +7,7 @@ #define MODEL_NUMBER 2 /* define this if you have recording possibility */ -/*#define HAVE_RECORDING 1*/ +#define HAVE_RECORDING 1 /* define this if you have a bitmap LCD display */ #define HAVE_LCD_BITMAP 1 |