diff options
Diffstat (limited to 'firmware/target/arm/tcc780x/pcm-tcc780x.c')
-rw-r--r-- | firmware/target/arm/tcc780x/pcm-tcc780x.c | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/firmware/target/arm/tcc780x/pcm-tcc780x.c b/firmware/target/arm/tcc780x/pcm-tcc780x.c new file mode 100644 index 0000000000..a9312749c8 --- /dev/null +++ b/firmware/target/arm/tcc780x/pcm-tcc780x.c | |||
@@ -0,0 +1,86 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2007 by Karl Kurbjun | ||
11 | * | ||
12 | * All files in this archive are subject to the GNU General Public License. | ||
13 | * See the file COPYING in the source tree root for full license agreement. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | #include "system.h" | ||
20 | #include "kernel.h" | ||
21 | #include "logf.h" | ||
22 | #include "audio.h" | ||
23 | #include "sound.h" | ||
24 | #include "file.h" | ||
25 | |||
26 | void pcm_postinit(void) | ||
27 | { | ||
28 | } | ||
29 | |||
30 | const void * pcm_play_dma_get_peak_buffer(int *count) | ||
31 | { | ||
32 | (void) count; | ||
33 | return 0; | ||
34 | } | ||
35 | |||
36 | void pcm_play_dma_init(void) | ||
37 | { | ||
38 | } | ||
39 | |||
40 | void pcm_apply_settings(void) | ||
41 | { | ||
42 | } | ||
43 | |||
44 | void pcm_set_frequency(unsigned int frequency) | ||
45 | { | ||
46 | (void) frequency; | ||
47 | } | ||
48 | |||
49 | void pcm_play_dma_start(const void *addr, size_t size) | ||
50 | { | ||
51 | (void) addr; | ||
52 | (void) size; | ||
53 | } | ||
54 | |||
55 | void pcm_play_dma_stop(void) | ||
56 | { | ||
57 | } | ||
58 | |||
59 | void pcm_play_lock(void) | ||
60 | { | ||
61 | } | ||
62 | |||
63 | void pcm_play_unlock(void) | ||
64 | { | ||
65 | } | ||
66 | |||
67 | void pcm_play_dma_pause(bool pause) | ||
68 | { | ||
69 | (void) pause; | ||
70 | } | ||
71 | |||
72 | size_t pcm_get_bytes_waiting(void) | ||
73 | { | ||
74 | return 0; | ||
75 | } | ||
76 | |||
77 | void fiq_handler(void) | ||
78 | { | ||
79 | /* Clear FIQ status */ | ||
80 | CREQ = DAI_TX_IRQ_MASK | DAI_RX_IRQ_MASK; | ||
81 | |||
82 | /* Return from FIQ */ | ||
83 | asm volatile ( | ||
84 | "subs pc, lr, #4 \r\n" | ||
85 | ); | ||
86 | } | ||