diff options
Diffstat (limited to 'firmware/target/coldfire/pcm-coldfire.c')
-rw-r--r-- | firmware/target/coldfire/pcm-coldfire.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/target/coldfire/pcm-coldfire.c b/firmware/target/coldfire/pcm-coldfire.c index b52e5e09b5..dc40dacf0e 100644 --- a/firmware/target/coldfire/pcm-coldfire.c +++ b/firmware/target/coldfire/pcm-coldfire.c | |||
@@ -22,7 +22,7 @@ | |||
22 | #include "logf.h" | 22 | #include "logf.h" |
23 | #include "audio.h" | 23 | #include "audio.h" |
24 | #include "sound.h" | 24 | #include "sound.h" |
25 | #if defined(HAVE_SPDIF_IN) || defined(HAVE_SPDIF_OUT) | 25 | #if defined(HAVE_SPDIF_REC) || defined(HAVE_SPDIF_OUT) |
26 | #include "spdif.h" | 26 | #include "spdif.h" |
27 | #endif | 27 | #endif |
28 | 28 | ||
@@ -276,7 +276,7 @@ void pcm_init(void) | |||
276 | audiohw_set_frequency(freq_ent[FPARM_FSEL]); | 276 | audiohw_set_frequency(freq_ent[FPARM_FSEL]); |
277 | coldfire_set_pllcr_audio_bits(PLLCR_SET_AUDIO_BITS_DEFPARM); | 277 | coldfire_set_pllcr_audio_bits(PLLCR_SET_AUDIO_BITS_DEFPARM); |
278 | 278 | ||
279 | #if defined(HAVE_SPDIF_IN) || defined(HAVE_SPDIF_OUT) | 279 | #if defined(HAVE_SPDIF_REC) || defined(HAVE_SPDIF_OUT) |
280 | spdif_init(); | 280 | spdif_init(); |
281 | #endif | 281 | #endif |
282 | /* Enable interrupt at level 6, priority 0 */ | 282 | /* Enable interrupt at level 6, priority 0 */ |
@@ -365,7 +365,7 @@ void pcm_rec_dma_start(void *addr, size_t size) | |||
365 | _pcm_apply_settings(!is_playback_monitoring()); | 365 | _pcm_apply_settings(!is_playback_monitoring()); |
366 | 366 | ||
367 | /* Start the DMA transfer.. */ | 367 | /* Start the DMA transfer.. */ |
368 | #ifdef HAVE_SPDIF_IN | 368 | #ifdef HAVE_SPDIF_REC |
369 | /* clear: ebu1cnew, valnogood, symbolerr, parityerr */ | 369 | /* clear: ebu1cnew, valnogood, symbolerr, parityerr */ |
370 | INTERRUPTCLEAR = (1 << 25) | (1 << 24) | (1 << 23) | (1 << 22); | 370 | INTERRUPTCLEAR = (1 << 25) | (1 << 24) | (1 << 23) | (1 << 22); |
371 | #endif | 371 | #endif |
@@ -462,7 +462,7 @@ void DMA1(void) | |||
462 | logf(" DCR1: %08x", DCR1); | 462 | logf(" DCR1: %08x", DCR1); |
463 | #endif | 463 | #endif |
464 | } | 464 | } |
465 | #ifdef HAVE_SPDIF_IN | 465 | #ifdef HAVE_SPDIF_REC |
466 | else if (DATAINCONTROL == 0xc038 && | 466 | else if (DATAINCONTROL == 0xc038 && |
467 | (INTERRUPTSTAT & ((1 << 24) | (1 << 23) | (1 << 22)))) | 467 | (INTERRUPTSTAT & ((1 << 24) | (1 << 23) | (1 << 22)))) |
468 | { | 468 | { |