summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/rolo.c8
-rw-r--r--firmware/sound.c12
-rw-r--r--firmware/timer.c6
3 files changed, 19 insertions, 7 deletions
diff --git a/firmware/rolo.c b/firmware/rolo.c
index cecfa19045..958db56322 100644
--- a/firmware/rolo.c
+++ b/firmware/rolo.c
@@ -29,8 +29,8 @@
#include "string.h"
#include "buffer.h"
-#if CONFIG_CPU != TCC730
-/* FIX: this doesn't work on Gmini yet */
+#if (CONFIG_CPU != TCC730) && !defined(IRIVER_IFP7XX_SERIES)
+/* FIX: this doesn't work on Gmini and iFP yet */
#define IRQ0_EDGE_TRIGGER 0x80
@@ -210,7 +210,7 @@ int rolo_load(const char* filename)
return 0; /* this is never reached */
}
-#else /* CONFIG_CPU != TCC730 */
+#else /* (CONFIG_CPU != TCC730) && !defined(IRIVER_IFP7XX_SERIES) */
int rolo_load(const char* filename)
{
/* dummy */
@@ -218,4 +218,4 @@ int rolo_load(const char* filename)
return 0;
}
-#endif /* ! CONFIG_CPU != TCC730 */
+#endif /* (CONFIG_CPU != TCC730) && !defined(IRIVER_IFP7XX_SERIES) */
diff --git a/firmware/sound.c b/firmware/sound.c
index 41212e72b9..7c961afc97 100644
--- a/firmware/sound.c
+++ b/firmware/sound.c
@@ -471,6 +471,9 @@ void sound_set_volume(int value)
#elif (CONFIG_CODEC == MAS3507D) || defined HAVE_UDA1380 || defined HAVE_WM8975
current_volume = value * 10; /* tenth of dB */
set_prescaled_volume();
+#elif CONFIG_CPU == PNX0101
+ /* TODO: implement for iFP */
+ (void)value;
#endif
}
@@ -484,6 +487,9 @@ void sound_set_balance(int value)
#elif CONFIG_CODEC == MAS3507D || defined HAVE_UDA1380 || defined HAVE_WM8975
current_balance = value * VOLUME_RANGE / 100; /* tenth of dB */
set_prescaled_volume();
+#elif CONFIG_CPU == PNX0101
+ /* TODO: implement for iFP */
+ (void)value;
#endif
}
@@ -506,6 +512,9 @@ void sound_set_bass(int value)
current_bass = value * 10;
wm8975_set_bass(value);
set_prescaled_volume();
+#elif CONFIG_CPU == PNX0101
+ /* TODO: implement for iFP */
+ (void)value;
#endif
}
@@ -528,6 +537,9 @@ void sound_set_treble(int value)
wm8975_set_treble(value);
current_treble = value * 10;
set_prescaled_volume();
+#elif CONFIG_CPU == PNX0101
+ /* TODO: implement for iFP */
+ (void)value;
#endif
}
diff --git a/firmware/timer.c b/firmware/timer.c
index cdbd928d67..d4ce069637 100644
--- a/firmware/timer.c
+++ b/firmware/timer.c
@@ -56,8 +56,8 @@ static bool timer_set(long cycles, bool start)
int phi = 0; /* bits for the prescaler */
int prescale = 1;
-#if CONFIG_CPU==PP5020
- /* TODO: Implement for iPod */
+#if (CONFIG_CPU==PP5020) || (CONFIG_CPU==PNX0101)
+ /* TODO: Implement for iPod and iFP */
(void)start;
(void)phi;
#endif
@@ -162,7 +162,7 @@ bool timer_register(int reg_prio, void (*unregister_callback)(void),
if (reg_prio <= timer_prio || cycles == 0)
return false;
-#if CONFIG_CPU==PP5020
+#if (CONFIG_CPU==PP5020) || (CONFIG_CPU==PNX0101)
/* TODO: Implement for iPod */
(void)int_prio;
#endif