diff options
Diffstat (limited to 'firmware/target/arm/imx31/gigabeat-s/pcm-imx31.c')
-rw-r--r-- | firmware/target/arm/imx31/gigabeat-s/pcm-imx31.c | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/firmware/target/arm/imx31/gigabeat-s/pcm-imx31.c b/firmware/target/arm/imx31/gigabeat-s/pcm-imx31.c new file mode 100644 index 0000000000..73bd9fef14 --- /dev/null +++ b/firmware/target/arm/imx31/gigabeat-s/pcm-imx31.c | |||
@@ -0,0 +1,93 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2006 by Michael Sevakis | ||
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 <stdlib.h> | ||
20 | #include "system.h" | ||
21 | #include "kernel.h" | ||
22 | #include "logf.h" | ||
23 | #include "audio.h" | ||
24 | #include "sound.h" | ||
25 | #include "file.h" | ||
26 | #include "mmu-imx31.h" | ||
27 | |||
28 | void fiq_handler(void) __attribute__((naked)); | ||
29 | |||
30 | static void _pcm_apply_settings(void) | ||
31 | { | ||
32 | } | ||
33 | |||
34 | void pcm_apply_settings(void) | ||
35 | { | ||
36 | } | ||
37 | |||
38 | void pcm_init(void) | ||
39 | { | ||
40 | } | ||
41 | |||
42 | void pcm_postinit(void) | ||
43 | { | ||
44 | } | ||
45 | |||
46 | void pcm_play_dma_start(const void *addr, size_t size) | ||
47 | { | ||
48 | (void)addr; | ||
49 | (void)size; | ||
50 | } | ||
51 | |||
52 | static void pcm_play_dma_stop_fiq(void) | ||
53 | { | ||
54 | } | ||
55 | |||
56 | void fiq_handler(void) | ||
57 | { | ||
58 | } | ||
59 | |||
60 | /* Disconnect the DMA and wait for the FIFO to clear */ | ||
61 | void pcm_play_dma_stop(void) | ||
62 | { | ||
63 | } | ||
64 | |||
65 | void pcm_play_pause_pause(void) | ||
66 | { | ||
67 | } | ||
68 | |||
69 | void pcm_play_pause_unpause(void) | ||
70 | { | ||
71 | } | ||
72 | |||
73 | void pcm_set_frequency(unsigned int frequency) | ||
74 | { | ||
75 | (void)frequency; | ||
76 | } | ||
77 | |||
78 | size_t pcm_get_bytes_waiting(void) | ||
79 | { | ||
80 | } | ||
81 | |||
82 | void pcm_mute(bool mute) | ||
83 | { | ||
84 | } | ||
85 | |||
86 | /** | ||
87 | * Return playback peaks - Peaks ahead in the DMA buffer based upon the | ||
88 | * calling period to attempt to compensate for | ||
89 | * delay. | ||
90 | */ | ||
91 | void pcm_calculate_peaks(int *left, int *right) | ||
92 | { | ||
93 | } | ||