diff options
Diffstat (limited to 'firmware/pcm_playback.c')
-rw-r--r-- | firmware/pcm_playback.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/firmware/pcm_playback.c b/firmware/pcm_playback.c index b35b22f730..a2d09e7c8d 100644 --- a/firmware/pcm_playback.c +++ b/firmware/pcm_playback.c | |||
@@ -61,7 +61,7 @@ void pcm_play_pause_unpause(void); | |||
61 | 61 | ||
62 | #ifndef CPU_COLDFIRE | 62 | #ifndef CPU_COLDFIRE |
63 | 63 | ||
64 | #if (CONFIG_CPU == S3C2440) | 64 | #if (CONFIG_CPU == S3C2440) |
65 | 65 | ||
66 | /* TODO: Implement for Gigabeat | 66 | /* TODO: Implement for Gigabeat |
67 | For now, just implement some dummy functions. | 67 | For now, just implement some dummy functions. |
@@ -99,7 +99,8 @@ size_t pcm_get_bytes_waiting(void) | |||
99 | } | 99 | } |
100 | 100 | ||
101 | #elif defined(HAVE_WM8975) || defined(HAVE_WM8758) \ | 101 | #elif defined(HAVE_WM8975) || defined(HAVE_WM8758) \ |
102 | || defined(HAVE_WM8731) || defined(HAVE_WM8721) | 102 | || defined(HAVE_WM8731) || defined(HAVE_WM8721) \ |
103 | || defined(HAVE_PP5024_CODEC) | ||
103 | 104 | ||
104 | /* We need to unify this code with the uda1380 code as much as possible, but | 105 | /* We need to unify this code with the uda1380 code as much as possible, but |
105 | we will keep it separate during early development. | 106 | we will keep it separate during early development. |
@@ -393,6 +394,11 @@ void fiq(void) | |||
393 | } | 394 | } |
394 | #endif /* CONFIG_CPU == PP5020 || CONFIG_CPU == PP5002 */ | 395 | #endif /* CONFIG_CPU == PP5020 || CONFIG_CPU == PP5002 */ |
395 | 396 | ||
397 | #ifdef HAVE_PP5024_CODEC | ||
398 | void pcm_init(void) | ||
399 | { | ||
400 | } | ||
401 | #else | ||
396 | void pcm_init(void) | 402 | void pcm_init(void) |
397 | { | 403 | { |
398 | pcm_playing = false; | 404 | pcm_playing = false; |
@@ -411,7 +417,7 @@ void pcm_init(void) | |||
411 | /* Call pcm_play_dma_stop to initialize everything. */ | 417 | /* Call pcm_play_dma_stop to initialize everything. */ |
412 | pcm_play_dma_stop(); | 418 | pcm_play_dma_stop(); |
413 | } | 419 | } |
414 | 420 | #endif /* HAVE_PP5024_CODEC */ | |
415 | #elif (CONFIG_CPU == PNX0101) | 421 | #elif (CONFIG_CPU == PNX0101) |
416 | 422 | ||
417 | #define DMA_BUF_SAMPLES 0x100 | 423 | #define DMA_BUF_SAMPLES 0x100 |
@@ -633,7 +639,7 @@ void pcm_calculate_peaks(int *left, int *right) | |||
633 | { | 639 | { |
634 | #if defined(HAVE_WM8975) || defined(HAVE_WM8758) \ | 640 | #if defined(HAVE_WM8975) || defined(HAVE_WM8758) \ |
635 | || defined(HAVE_WM8731) || defined(HAVE_WM8721) \ | 641 | || defined(HAVE_WM8731) || defined(HAVE_WM8721) \ |
636 | || (CONFIG_CPU == PNX0101) | 642 | || (CONFIG_CPU == PNX0101) || defined(HAVE_PP5024_CODEC) |
637 | size_t samples = p_size / 4; | 643 | size_t samples = p_size / 4; |
638 | addr = p; | 644 | addr = p; |
639 | #endif | 645 | #endif |