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/export/audiohw.h | |
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/export/audiohw.h')
-rw-r--r-- | firmware/export/audiohw.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/firmware/export/audiohw.h b/firmware/export/audiohw.h index 171358c325..b82c27e2fb 100644 --- a/firmware/export/audiohw.h +++ b/firmware/export/audiohw.h | |||
@@ -150,12 +150,13 @@ extern const struct sound_settings_info audiohw_settings[]; | |||
150 | */ | 150 | */ |
151 | 151 | ||
152 | /** | 152 | /** |
153 | * Initialize audio codec to a well defined state. | 153 | * Initialize audio codec to a well defined state. Includes SoC-specific |
154 | * setup. | ||
154 | */ | 155 | */ |
155 | void audiohw_init(void); | 156 | void audiohw_init(void); |
156 | 157 | ||
157 | /** | 158 | /** |
158 | * Do initial audio codec setup. | 159 | * Do initial audio codec setup. Usually called from audiohw_init. |
159 | */ | 160 | */ |
160 | void audiohw_preinit(void); | 161 | void audiohw_preinit(void); |
161 | 162 | ||
@@ -207,12 +208,6 @@ void audiohw_set_balance(int val); | |||
207 | */ | 208 | */ |
208 | void audiohw_mute(bool mute); | 209 | void audiohw_mute(bool mute); |
209 | 210 | ||
210 | /** | ||
211 | * Silently en/disable audio output. | ||
212 | * @param enable true or false. | ||
213 | */ | ||
214 | void audiohw_enable_output(bool enable); | ||
215 | |||
216 | #ifdef AUDIOHW_HAVE_TREBLE | 211 | #ifdef AUDIOHW_HAVE_TREBLE |
217 | /** | 212 | /** |
218 | * Set new treble value. | 213 | * Set new treble value. |