summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-07-18 15:55:56 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-07-18 15:55:56 +0000
commit4c5f25d5232d24ad8710bcdf8714c5a88622ce97 (patch)
treee663041eb7a94d9ee2691cbbaef9eb876fe52b5b
parentaa1042286aa05f04d1d832759d8ff18e8dea1113 (diff)
downloadrockbox-4c5f25d5232d24ad8710bcdf8714c5a88622ce97.tar.gz
rockbox-4c5f25d5232d24ad8710bcdf8714c5a88622ce97.tar.bz2
rockbox-4c5f25d5232d24ad8710bcdf8714c5a88622ce97.zip
iriver: set the S/PDIF Validity flag correctly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7189 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/pcm_playback.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/pcm_playback.c b/firmware/pcm_playback.c
index da04795d80..3a68db4d0c 100644
--- a/firmware/pcm_playback.c
+++ b/firmware/pcm_playback.c
@@ -70,7 +70,7 @@ static void dma_start(const void *addr, long size)
/* Enable the FIFO and force one write to it */
IIS2CONFIG = (pcm_freq << 12) | 0x300 | 4 << 2;
/* Also send the audio to S/PDIF */
- EBU1CONFIG = 7 << 12 | 3 << 8 | 5 << 2;
+ EBU1CONFIG = (7 << 12) | (3 << 8) | (1 << 5) | (5 << 2);
DCR0 = DMA_INT | DMA_EEXT | DMA_CS | DMA_SINC | DMA_START;
}
@@ -241,7 +241,7 @@ void pcm_play_pause(bool play)
//BCR0 = next_size;
/* Enable the FIFO and force one write to it */
IIS2CONFIG = (pcm_freq << 12) | 0x300 | 4 << 2;
- EBU1CONFIG = 7 << 12 | 3 << 8 | 5 << 2;
+ EBU1CONFIG = (7 << 12) | (3 << 8) | (1 << 5) | (5 << 2);
DCR0 |= DMA_EEXT | DMA_START;
uda1380_mute(false);