summaryrefslogtreecommitdiff
path: root/firmware/drivers/audio/wm8731.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2008-11-26 14:25:45 +0000
committerMichael Sevakis <jethead71@rockbox.org>2008-11-26 14:25:45 +0000
commit888451fb0f3f8b8a3e6e81a087e4545eeba7a774 (patch)
treec10cba5f31fd4b0e33d1c54c43289247aa6f6590 /firmware/drivers/audio/wm8731.c
parente73383ea324e5f86105cc74983a88452bb261033 (diff)
downloadrockbox-888451fb0f3f8b8a3e6e81a087e4545eeba7a774.tar.gz
rockbox-888451fb0f3f8b8a3e6e81a087e4545eeba7a774.zip
Get rid of remaining audiohw_enable_output style codec setup and use pre/post split initialization. Move some SoC-specific code like i2s_reset out of the codec drivers. Helps to unify drivers and it was only ever used to enable. I cannot possibly test everything so report (I'll be on call ;) or fix problems if any crop up.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19228 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/audio/wm8731.c')
-rw-r--r--firmware/drivers/audio/wm8731.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/firmware/drivers/audio/wm8731.c b/firmware/drivers/audio/wm8731.c
index d6e21c34de..2f882e8fe1 100644
--- a/firmware/drivers/audio/wm8731.c
+++ b/firmware/drivers/audio/wm8731.c
@@ -33,7 +33,6 @@
33 33
34#include "wmcodec.h" 34#include "wmcodec.h"
35#include "audiohw.h" 35#include "audiohw.h"
36#include "i2s.h"
37#include "sound.h" 36#include "sound.h"
38 37
39const struct sound_settings_info audiohw_settings[] = { 38const struct sound_settings_info audiohw_settings[] = {
@@ -150,8 +149,6 @@ static void codec_set_active(int active)
150 149
151void audiohw_preinit(void) 150void audiohw_preinit(void)
152{ 151{
153 i2s_reset();
154
155 /* POWER UP SEQUENCE */ 152 /* POWER UP SEQUENCE */
156 /* 1) Switch on power supplies. By default the WM8731 is in Standby Mode, 153 /* 1) Switch on power supplies. By default the WM8731 is in Standby Mode,
157 * the DAC is digitally muted and the Audio Interface and Outputs are 154 * the DAC is digitally muted and the Audio Interface and Outputs are