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/export | |
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/export')
-rw-r--r-- | firmware/export/as3514.h | 4 | ||||
-rw-r--r-- | firmware/export/ascodec.h | 27 |
2 files changed, 27 insertions, 4 deletions
diff --git a/firmware/export/as3514.h b/firmware/export/as3514.h index aa9847c6a1..9585f5e0ef 100644 --- a/firmware/export/as3514.h +++ b/firmware/export/as3514.h | |||
@@ -79,8 +79,4 @@ extern void audiohw_set_sample_rate(int sampling_control); | |||
79 | #define VOLUME_MIN -735 | 79 | #define VOLUME_MIN -735 |
80 | #define VOLUME_MAX 60 | 80 | #define VOLUME_MAX 60 |
81 | 81 | ||
82 | #if defined(SANSA_E200) || defined(SANSA_C200) || defined(PHILIPS_SA9200) | ||
83 | #define AS3514_I2C_ADDR 0x46 | ||
84 | #endif | ||
85 | |||
86 | #endif /* _AS3514_H */ | 82 | #endif /* _AS3514_H */ |
diff --git a/firmware/export/ascodec.h b/firmware/export/ascodec.h new file mode 100644 index 0000000000..b8bab8a640 --- /dev/null +++ b/firmware/export/ascodec.h | |||
@@ -0,0 +1,27 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2008 by Dave Chapman | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version 2 | ||
15 | * of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ****************************************************************************/ | ||
21 | |||
22 | #ifndef _ASCODEC_H | ||
23 | #define _ASCODEC_H | ||
24 | |||
25 | #include "ascodec-target.h" | ||
26 | |||
27 | #endif | ||