diff options
Diffstat (limited to 'firmware/target/arm')
-rw-r--r-- | firmware/target/arm/wmcodec-pp.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/target/arm/wmcodec-pp.c b/firmware/target/arm/wmcodec-pp.c index 7d00369bf0..455e3e1087 100644 --- a/firmware/target/arm/wmcodec-pp.c +++ b/firmware/target/arm/wmcodec-pp.c | |||
@@ -74,6 +74,11 @@ int audiohw_init(void) { | |||
74 | /* GPIO D06 enable for output */ | 74 | /* GPIO D06 enable for output */ |
75 | outl(inl(0xcf00000c) | 0x40, 0xcf00000c); | 75 | outl(inl(0xcf00000c) | 0x40, 0xcf00000c); |
76 | outl(inl(0xcf00001c) & ~0x40, 0xcf00001c); | 76 | outl(inl(0xcf00001c) & ~0x40, 0xcf00001c); |
77 | #ifdef IPOD_1G2G | ||
78 | /* bits 11,10 == 10 */ | ||
79 | outl(inl(0xcf004040) & ~0x400, 0xcf004040); | ||
80 | outl(inl(0xcf004040) | 0x800, 0xcf004040); | ||
81 | #else /* IPOD_3G */ | ||
77 | /* bits 11,10 == 01 */ | 82 | /* bits 11,10 == 01 */ |
78 | outl(inl(0xcf004040) | 0x400, 0xcf004040); | 83 | outl(inl(0xcf004040) | 0x400, 0xcf004040); |
79 | outl(inl(0xcf004040) & ~0x800, 0xcf004040); | 84 | outl(inl(0xcf004040) & ~0x800, 0xcf004040); |
@@ -87,6 +92,7 @@ int audiohw_init(void) { | |||
87 | outl(inl(0xcf000008) | 0x8, 0xcf000008); | 92 | outl(inl(0xcf000008) | 0x8, 0xcf000008); |
88 | outl(inl(0xcf000018) | 0x8, 0xcf000018); | 93 | outl(inl(0xcf000018) | 0x8, 0xcf000018); |
89 | outl(inl(0xcf000028) & ~0x8, 0xcf000028); | 94 | outl(inl(0xcf000028) & ~0x8, 0xcf000028); |
95 | #endif /* IPOD_1G2G/3G */ | ||
90 | #endif | 96 | #endif |
91 | 97 | ||
92 | return 0; | 98 | return 0; |