1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Dave Chapman 2008-10-31 00:16:42 +00:00
parent 324816f019
commit 42f77d4eb0
15 changed files with 196 additions and 61 deletions

View file

@ -32,6 +32,7 @@
#include "logf.h"
#include "system.h"
#include "i2c-pp.h"
#include "ascodec.h"
#include "as3514.h"
/* Local functions definitions */
@ -230,7 +231,7 @@ void i2c_init(void)
outl(0, 0x600060a4);
outl(0x1e, 0x600060a4);
pp_i2c_send(AS3514_I2C_ADDR, AS3514_SUPERVISOR, 5);
ascodec_write(AS3514_SUPERVISOR, 5);
#endif
#endif