summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2006-03-21 12:29:30 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2006-03-21 12:29:30 +0000
commit8b61dd1cc553eeeffeebefb33dc88adf6d9bd2a9 (patch)
tree2cef8f04f1498bd97f88fca88c0485fd79823460
parent7664a4f7e098c7d349cb0cd75ce48b10cfd261fd (diff)
downloadrockbox-8b61dd1cc553eeeffeebefb33dc88adf6d9bd2a9.tar.gz
rockbox-8b61dd1cc553eeeffeebefb33dc88adf6d9bd2a9.tar.bz2
rockbox-8b61dd1cc553eeeffeebefb33dc88adf6d9bd2a9.zip
Quick hack to make the application compile for iAudio X5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9160 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/pcm_playback.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/firmware/pcm_playback.c b/firmware/pcm_playback.c
index efe9f0eedf..1b6a1871ad 100644
--- a/firmware/pcm_playback.c
+++ b/firmware/pcm_playback.c
@@ -49,7 +49,7 @@
#include "button.h"
#include <string.h>
-#ifdef HAVE_UDA1380
+#ifdef CPU_COLDFIRE
#ifdef HAVE_SPDIF_OUT
#define EBU_DEFPARM ((7 << 12) | (3 << 8) | (1 << 5) | (5 << 2))
@@ -114,16 +114,22 @@ void pcm_set_frequency(unsigned int frequency)
{
case 11025:
pcm_freq = 0x4;
+#ifdef HAVE_UDA1380
uda1380_set_nsorder(3);
+#endif
break;
case 22050:
pcm_freq = 0x6;
+#ifdef HAVE_UDA1380
uda1380_set_nsorder(3);
+#endif
break;
case 44100:
default:
pcm_freq = 0xC;
+#ifdef HAVE_UDA1380
uda1380_set_nsorder(5);
+#endif
break;
}
}
@@ -154,7 +160,9 @@ size_t pcm_get_bytes_waiting(void)
void pcm_mute(bool mute)
{
+#ifdef HAVE_UDA1380
uda1380_mute(mute);
+#endif
if (mute)
sleep(HZ/16);
}