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/target/arm/pcm-telechips.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/target/arm/pcm-telechips.c')
-rw-r--r-- | firmware/target/arm/pcm-telechips.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/firmware/target/arm/pcm-telechips.c b/firmware/target/arm/pcm-telechips.c index b3fd9216dc..dc77b36f00 100644 --- a/firmware/target/arm/pcm-telechips.c +++ b/firmware/target/arm/pcm-telechips.c | |||
@@ -108,19 +108,18 @@ void pcm_play_dma_init(void) | |||
108 | 108 | ||
109 | /* Initialize default register values. */ | 109 | /* Initialize default register values. */ |
110 | audiohw_init(); | 110 | audiohw_init(); |
111 | 111 | ||
112 | /* Power on */ | ||
113 | audiohw_enable_output(true); | ||
114 | |||
115 | /* Unmute the master channel (DAC should be at zero point now). */ | ||
116 | audiohw_mute(false); | ||
117 | |||
118 | dma_play_data.size = 0; | 112 | dma_play_data.size = 0; |
119 | #if NUM_CORES > 1 | 113 | #if NUM_CORES > 1 |
120 | dma_play_data.core = 0; /* no core in control */ | 114 | dma_play_data.core = 0; /* no core in control */ |
121 | #endif | 115 | #endif |
122 | } | 116 | } |
123 | 117 | ||
118 | void pcm_postinit(void) | ||
119 | { | ||
120 | audiohw_postinit(); | ||
121 | } | ||
122 | |||
124 | void pcm_apply_settings(void) | 123 | void pcm_apply_settings(void) |
125 | { | 124 | { |
126 | pcm_curr_sampr = pcm_freq; | 125 | pcm_curr_sampr = pcm_freq; |