From c2d2106fd76ae553a9f7b2418265209468cbb9e6 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sun, 11 Mar 2007 06:21:43 +0000 Subject: 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 --- firmware/pcm_playback.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'firmware/pcm_playback.c') 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 @@ #include "kernel.h" #include "logf.h" #include "audio.h" -#if defined(HAVE_WM8975) -#include "wm8975.h" -#elif defined(HAVE_WM8758) -#include "wm8758.h" -#elif defined(HAVE_WM8731) || defined(HAVE_WM8721) -#include "wm8731l.h" -#elif CONFIG_CPU == PNX0101 +#include "sound.h" +#if CONFIG_CPU == PNX0101 #include "string.h" -#include "pnx0101.h" #endif /** @@ -224,6 +218,11 @@ void pcm_init(void) DMAR10(1) |= 1; } +void pcm_postinit(void) +{ + audiohw_postinit(); +} + void pcm_set_frequency(unsigned int frequency) { (void)frequency; -- cgit v1.2.3