From 7da0c40f4b8c22347dd196de1bf60f455089b625 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Sat, 17 Dec 2005 10:13:29 +0000 Subject: [PATCH] Patch #1382969 by Peter D'Hoye - recording for H300 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8252 a1c6a512-1295-4272-9138-f99709370657 --- apps/main.c | 4 ++-- apps/recorder/recording.c | 9 +++++++++ firmware/export/config-h300.h | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/apps/main.c b/apps/main.c index 6985426fbd..44d92c1198 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 4ca4bcb925..6a87388c7d 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 019b090cee..a88fd048c2 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