summaryrefslogtreecommitdiff
path: root/firmware/target/arm/wmcodec-pp.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/wmcodec-pp.c')
-rw-r--r--firmware/target/arm/wmcodec-pp.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/firmware/target/arm/wmcodec-pp.c b/firmware/target/arm/wmcodec-pp.c
index 455e3e1087..a2c83f33b3 100644
--- a/firmware/target/arm/wmcodec-pp.c
+++ b/firmware/target/arm/wmcodec-pp.c
@@ -25,6 +25,7 @@
25 ****************************************************************************/ 25 ****************************************************************************/
26 26
27#include "system.h" 27#include "system.h"
28#include "audiohw.h"
28#include "i2c-pp.h" 29#include "i2c-pp.h"
29 30
30#if defined(IRIVER_H10) || defined(IRIVER_H10_5GB) 31#if defined(IRIVER_H10) || defined(IRIVER_H10_5GB)
@@ -39,7 +40,7 @@
39/* 40/*
40 * Initialise the PP I2C and I2S. 41 * Initialise the PP I2C and I2S.
41 */ 42 */
42int audiohw_init(void) { 43void audiohw_init(void) {
43 /* reset I2C */ 44 /* reset I2C */
44 i2c_init(); 45 i2c_init();
45 46
@@ -95,12 +96,17 @@ int audiohw_init(void) {
95#endif /* IPOD_1G2G/3G */ 96#endif /* IPOD_1G2G/3G */
96#endif 97#endif
97 98
98 return 0; 99#ifdef HAVE_WM8731
100 audiohw_preinit();
101#endif
102
99} 103}
100 104
105#ifndef HAVE_WM8731
101void audiohw_postinit(void) 106void audiohw_postinit(void)
102{ 107{
103} 108}
109#endif
104 110
105void wmcodec_write(int reg, int data) 111void wmcodec_write(int reg, int data)
106{ 112{