diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2008-11-26 14:25:45 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2008-11-26 14:25:45 +0000 |
commit | 888451fb0f3f8b8a3e6e81a087e4545eeba7a774 (patch) | |
tree | c10cba5f31fd4b0e33d1c54c43289247aa6f6590 /firmware/drivers/audio/wm8758.c | |
parent | e73383ea324e5f86105cc74983a88452bb261033 (diff) | |
download | rockbox-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/wm8758.c')
-rw-r--r-- | firmware/drivers/audio/wm8758.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/firmware/drivers/audio/wm8758.c b/firmware/drivers/audio/wm8758.c index e9d4b5c5c7..8ebfbe8e26 100644 --- a/firmware/drivers/audio/wm8758.c +++ b/firmware/drivers/audio/wm8758.c | |||
@@ -31,7 +31,6 @@ | |||
31 | 31 | ||
32 | #include "wmcodec.h" | 32 | #include "wmcodec.h" |
33 | #include "audiohw.h" | 33 | #include "audiohw.h" |
34 | #include "i2s.h" | ||
35 | 34 | ||
36 | const struct sound_settings_info audiohw_settings[] = { | 35 | const struct sound_settings_info audiohw_settings[] = { |
37 | [SOUND_VOLUME] = {"dB", 0, 1, -58, 6, -25}, | 36 | [SOUND_VOLUME] = {"dB", 0, 1, -58, 6, -25}, |
@@ -95,8 +94,6 @@ void audiohw_mute(bool mute) | |||
95 | 94 | ||
96 | void audiohw_preinit(void) | 95 | void audiohw_preinit(void) |
97 | { | 96 | { |
98 | i2s_reset(); | ||
99 | |||
100 | wmcodec_write(RESET, RESET_RESET); | 97 | wmcodec_write(RESET, RESET_RESET); |
101 | 98 | ||
102 | wmcodec_write(PWRMGMT1, PWRMGMT1_PLLEN | PWRMGMT1_BIASEN | 99 | wmcodec_write(PWRMGMT1, PWRMGMT1_PLLEN | PWRMGMT1_BIASEN |