diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2007-03-11 06:21:43 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2007-03-11 06:21:43 +0000 |
commit | c2d2106fd76ae553a9f7b2418265209468cbb9e6 (patch) | |
tree | c6cb223091ed8dfeb943ede41a5d3e59efeeeade /firmware/pcm_playback.c | |
parent | c5cd27f5d1d601e109d6884fe689ec876fc28561 (diff) | |
download | rockbox-c2d2106fd76ae553a9f7b2418265209468cbb9e6.tar.gz rockbox-c2d2106fd76ae553a9f7b2418265209468cbb9e6.zip |
Audio Init: Just can't stand that heirarchy. Add one level of abstraction. Might come in handy anyhow. Use sound.h instead of the conditional includes for audio hardware headers. If someone doesn't like that, yell at my evil twin. :)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12718 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/pcm_playback.c')
-rw-r--r-- | firmware/pcm_playback.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/firmware/pcm_playback.c b/firmware/pcm_playback.c index eb5404c1a8..66a6fdc957 100644 --- a/firmware/pcm_playback.c +++ b/firmware/pcm_playback.c | |||
@@ -20,15 +20,9 @@ | |||
20 | #include "kernel.h" | 20 | #include "kernel.h" |
21 | #include "logf.h" | 21 | #include "logf.h" |
22 | #include "audio.h" | 22 | #include "audio.h" |
23 | #if defined(HAVE_WM8975) | 23 | #include "sound.h" |
24 | #include "wm8975.h" | 24 | #if CONFIG_CPU == PNX0101 |
25 | #elif defined(HAVE_WM8758) | ||
26 | #include "wm8758.h" | ||
27 | #elif defined(HAVE_WM8731) || defined(HAVE_WM8721) | ||
28 | #include "wm8731l.h" | ||
29 | #elif CONFIG_CPU == PNX0101 | ||
30 | #include "string.h" | 25 | #include "string.h" |
31 | #include "pnx0101.h" | ||
32 | #endif | 26 | #endif |
33 | 27 | ||
34 | /** | 28 | /** |
@@ -224,6 +218,11 @@ void pcm_init(void) | |||
224 | DMAR10(1) |= 1; | 218 | DMAR10(1) |= 1; |
225 | } | 219 | } |
226 | 220 | ||
221 | void pcm_postinit(void) | ||
222 | { | ||
223 | audiohw_postinit(); | ||
224 | } | ||
225 | |||
227 | void pcm_set_frequency(unsigned int frequency) | 226 | void pcm_set_frequency(unsigned int frequency) |
228 | { | 227 | { |
229 | (void)frequency; | 228 | (void)frequency; |