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/mips/ingenic_jz47xx/pcm-jz4740.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/mips/ingenic_jz47xx/pcm-jz4740.c')
-rw-r--r-- | firmware/target/mips/ingenic_jz47xx/pcm-jz4740.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/pcm-jz4740.c b/firmware/target/mips/ingenic_jz47xx/pcm-jz4740.c index a5cc61b844..cdfb67d7ee 100644 --- a/firmware/target/mips/ingenic_jz47xx/pcm-jz4740.c +++ b/firmware/target/mips/ingenic_jz47xx/pcm-jz4740.c | |||
@@ -50,12 +50,11 @@ void pcm_play_dma_init(void) | |||
50 | 50 | ||
51 | /* Initialize default register values. */ | 51 | /* Initialize default register values. */ |
52 | audiohw_init(); | 52 | audiohw_init(); |
53 | } | ||
53 | 54 | ||
54 | /* Power on */ | 55 | void pcm_postinit(void) |
55 | audiohw_enable_output(true); | 56 | { |
56 | 57 | audiohw_postinit(); | |
57 | /* Unmute the master channel (DAC should be at zero point now). */ | ||
58 | audiohw_mute(false); | ||
59 | } | 58 | } |
60 | 59 | ||
61 | void pcm_apply_settings(void) | 60 | void pcm_apply_settings(void) |