summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx31
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx31')
-rw-r--r--firmware/target/arm/imx31/gigabeat-s/pcm-imx31.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/target/arm/imx31/gigabeat-s/pcm-imx31.c b/firmware/target/arm/imx31/gigabeat-s/pcm-imx31.c
index 3820f2ba56..ed3650cd60 100644
--- a/firmware/target/arm/imx31/gigabeat-s/pcm-imx31.c
+++ b/firmware/target/arm/imx31/gigabeat-s/pcm-imx31.c
@@ -215,11 +215,13 @@ static void play_start_pcm(void)
215 dma_play_data.state = 1; 215 dma_play_data.state = 1;
216 216
217 /* Fill the FIFO or start when data is used up */ 217 /* Fill the FIFO or start when data is used up */
218 SSI_SCR1 |= SSI_SCR_SSIEN; /* Enable SSI */
219
218 while (1) 220 while (1)
219 { 221 {
220 if (SSI_SFCSR_TFCNT0r(SSI_SFCSR1) > 6 || dma_play_data.size == 0) 222 if (SSI_SFCSR_TFCNT0r(SSI_SFCSR1) > 6 || dma_play_data.size == 0)
221 { 223 {
222 SSI_SCR1 |= (SSI_SCR_TE | SSI_SCR_SSIEN); /* Start transmitting */ 224 SSI_SCR1 |= SSI_SCR_TE; /* Start transmitting */
223 return; 225 return;
224 } 226 }
225 227