diff options
author | Karl Kurbjun <kkurbjun@gmail.com> | 2009-12-02 04:30:08 +0000 |
---|---|---|
committer | Karl Kurbjun <kkurbjun@gmail.com> | 2009-12-02 04:30:08 +0000 |
commit | 30c3382a48904b4620d6803ea55f615748b5c231 (patch) | |
tree | 67fc628808bf1c317bd9b2e19ae8d0f744ee6ff2 /firmware/target/arm/tms320dm320/dsp/main.c | |
parent | f0092e739e9810903812f7cf131ebc66d96d18bf (diff) | |
download | rockbox-30c3382a48904b4620d6803ea55f615748b5c231.tar.gz rockbox-30c3382a48904b4620d6803ea55f615748b5c231.zip |
M:Robe 500: Improve audio DMA shutdown for Pause/Stop and significantly reduce the size of the DSP code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23817 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/tms320dm320/dsp/main.c')
-rw-r--r-- | firmware/target/arm/tms320dm320/dsp/main.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/firmware/target/arm/tms320dm320/dsp/main.c b/firmware/target/arm/tms320dm320/dsp/main.c index 8c36e6a88b..a62bb50ba2 100644 --- a/firmware/target/arm/tms320dm320/dsp/main.c +++ b/firmware/target/arm/tms320dm320/dsp/main.c | |||
@@ -24,7 +24,6 @@ | |||
24 | #include "ipc.h" | 24 | #include "ipc.h" |
25 | #include "dma.h" | 25 | #include "dma.h" |
26 | #include "audio.h" | 26 | #include "audio.h" |
27 | #include <math.h> | ||
28 | 27 | ||
29 | void main(void) { | 28 | void main(void) { |
30 | TCR = 1 << 4; /* Stop the timer. */ | 29 | TCR = 1 << 4; /* Stop the timer. */ |
@@ -36,7 +35,9 @@ void main(void) { | |||
36 | 35 | ||
37 | dma_init(); | 36 | dma_init(); |
38 | 37 | ||
38 | #if defined(HAVE_DEBUG) | ||
39 | debugf("DSP inited..."); | 39 | debugf("DSP inited..."); |
40 | #endif | ||
40 | 41 | ||
41 | for (;;) { | 42 | for (;;) { |
42 | asm(" IDLE 1"); | 43 | asm(" IDLE 1"); |
@@ -45,13 +46,6 @@ void main(void) { | |||
45 | } | 46 | } |
46 | 47 | ||
47 | /* Obsoleted/testing snippets: */ | 48 | /* Obsoleted/testing snippets: */ |
48 | #ifdef REMAP_VECTORS | ||
49 | /* Remap vectors to 0x3F80 (set in linker.cmd). */ | ||
50 | PMST = (PMST & 0x7f) | 0x3F80; | ||
51 | |||
52 | /* Make sure working interrupts aren't a fluke. */ | ||
53 | memset((unsigned short *)0x7f80, 0, 0x80); | ||
54 | #endif | ||
55 | 49 | ||
56 | #ifdef DATA_32_SINE | 50 | #ifdef DATA_32_SINE |
57 | for (i = 0; i < 32; i++) { | 51 | for (i = 0; i < 32; i++) { |