From 42f77d4eb027afed4f4ef80f10c16112c2b7fe2b Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Fri, 31 Oct 2008 00:16:42 +0000 Subject: 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 --- firmware/target/arm/sandisk/power-c200_e200.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'firmware/target/arm/sandisk/power-c200_e200.c') diff --git a/firmware/target/arm/sandisk/power-c200_e200.c b/firmware/target/arm/sandisk/power-c200_e200.c index a559f65ec4..d6319f44bb 100644 --- a/firmware/target/arm/sandisk/power-c200_e200.c +++ b/firmware/target/arm/sandisk/power-c200_e200.c @@ -22,7 +22,7 @@ #include #include "system.h" #include "cpu.h" -#include "i2c-pp.h" +#include "ascodec.h" #include "tuner.h" #include "as3514.h" #include "power.h" @@ -36,9 +36,9 @@ void power_off(void) char byte; /* Send shutdown command to PMU */ - byte = i2c_readbyte(AS3514_I2C_ADDR, AS3514_SYSTEM); + byte = ascodec_read(AS3514_SYSTEM); byte &= ~0x1; - pp_i2c_send(AS3514_I2C_ADDR, AS3514_SYSTEM, byte); + ascodec_write(AS3514_SYSTEM, byte); /* Stop interrupts on both cores */ disable_interrupt(IRQ_FIQ_STATUS); -- cgit v1.2.3