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/usbstack | |
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/usbstack')
-rw-r--r-- | firmware/usbstack/usb_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/usbstack/usb_core.c b/firmware/usbstack/usb_core.c index d5e33f1b6b..fa0ff5ea04 100644 --- a/firmware/usbstack/usb_core.c +++ b/firmware/usbstack/usb_core.c | |||
@@ -46,7 +46,7 @@ | |||
46 | /* TODO: Move target-specific stuff somewhere else (serial number reading) */ | 46 | /* TODO: Move target-specific stuff somewhere else (serial number reading) */ |
47 | 47 | ||
48 | #ifdef HAVE_AS3514 | 48 | #ifdef HAVE_AS3514 |
49 | #include "i2c-pp.h" | 49 | #include "ascodec.h" |
50 | #include "as3514.h" | 50 | #include "as3514.h" |
51 | #endif | 51 | #endif |
52 | 52 | ||
@@ -274,7 +274,7 @@ static void set_serial_descriptor(void) | |||
274 | short* p = &usb_string_iSerial.wString[1]; | 274 | short* p = &usb_string_iSerial.wString[1]; |
275 | int i; | 275 | int i; |
276 | 276 | ||
277 | i2c_readbytes(AS3514_I2C_ADDR, AS3514_UID_0, 0x10, serial); | 277 | ascodec_readbytes(AS3514_UID_0, 0x10, serial); |
278 | for (i = 0; i < 16; i++) { | 278 | for (i = 0; i < 16; i++) { |
279 | *p++ = hex[(serial[i] >> 4) & 0xF]; | 279 | *p++ = hex[(serial[i] >> 4) & 0xF]; |
280 | *p++ = hex[(serial[i] >> 0) & 0xF]; | 280 | *p++ = hex[(serial[i] >> 0) & 0xF]; |