diff options
author | Dave Chapman <dave@dchapman.com> | 2008-10-31 00:16:42 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2008-10-31 00:16:42 +0000 |
commit | 42f77d4eb027afed4f4ef80f10c16112c2b7fe2b (patch) | |
tree | 2da09bcab257322dce48ddccc4a71d915318aa3a /firmware/target/arm/i2c-pp.c | |
parent | 324816f0190dec308f3496a288820a47926b1c17 (diff) | |
download | rockbox-42f77d4eb027afed4f4ef80f10c16112c2b7fe2b.tar.gz rockbox-42f77d4eb027afed4f4ef80f10c16112c2b7fe2b.zip |
Abstract the PortalPlayer AS3514 handling with an "ascodec" API - inspired by the wmcodec API used with the Wolfson codecs. The intention is to implement this API for the AS3525 and then share code with the Sansa V2 ports.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18940 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/i2c-pp.c')
-rw-r--r-- | firmware/target/arm/i2c-pp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/target/arm/i2c-pp.c b/firmware/target/arm/i2c-pp.c index 4d83208d91..3db25c027c 100644 --- a/firmware/target/arm/i2c-pp.c +++ b/firmware/target/arm/i2c-pp.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include "logf.h" | 32 | #include "logf.h" |
33 | #include "system.h" | 33 | #include "system.h" |
34 | #include "i2c-pp.h" | 34 | #include "i2c-pp.h" |
35 | #include "ascodec.h" | ||
35 | #include "as3514.h" | 36 | #include "as3514.h" |
36 | 37 | ||
37 | /* Local functions definitions */ | 38 | /* Local functions definitions */ |
@@ -230,7 +231,7 @@ void i2c_init(void) | |||
230 | outl(0, 0x600060a4); | 231 | outl(0, 0x600060a4); |
231 | outl(0x1e, 0x600060a4); | 232 | outl(0x1e, 0x600060a4); |
232 | 233 | ||
233 | pp_i2c_send(AS3514_I2C_ADDR, AS3514_SUPERVISOR, 5); | 234 | ascodec_write(AS3514_SUPERVISOR, 5); |
234 | #endif | 235 | #endif |
235 | #endif | 236 | #endif |
236 | 237 | ||