summaryrefslogtreecommitdiff
path: root/firmware/export/aic3x.h
diff options
context:
space:
mode:
authorTomasz Moń <desowin@gmail.com>2011-11-16 14:08:01 +0000
committerTomasz Moń <desowin@gmail.com>2011-11-16 14:08:01 +0000
commite8a8a1be43afe63079ae48ce1a9eb3052df3b1a4 (patch)
tree084e1cdf27a339ce58e24cff8fec8c31432b52db /firmware/export/aic3x.h
parent992d4eb775cac48e107e18d72783ebfb39c4234f (diff)
downloadrockbox-e8a8a1be43afe63079ae48ce1a9eb3052df3b1a4.tar.gz
rockbox-e8a8a1be43afe63079ae48ce1a9eb3052df3b1a4.zip
Sandisk Sansa Connect port (FS #12363)
Included are drivers for buttons, backlight, lcd, audio and storage. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31000 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/aic3x.h')
-rw-r--r--firmware/export/aic3x.h77
1 files changed, 77 insertions, 0 deletions
diff --git a/firmware/export/aic3x.h b/firmware/export/aic3x.h
new file mode 100644
index 0000000000..17e5ea019a
--- /dev/null
+++ b/firmware/export/aic3x.h
@@ -0,0 +1,77 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id: $
9 *
10 * Copyright (C) 2011 by Tomasz Moń
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 _AIC3X_H_
23#define _AIC3X_H_
24
25#define VOLUME_MIN -630
26#define VOLUME_MAX 0
27
28extern int tenthdb2master(int db);
29
30/*** definitions ***/
31extern void audiohw_set_headphone_vol(int vol_l, int vol_r);
32
33/* Page 0 registers */
34#define AIC3X_PAGE_SELECT 0
35#define AIC3X_SOFT_RESET 1
36#define AIC3X_SMPL_RATE 2
37#define AIC3X_PLL_REG_A 3
38#define AIC3X_PLL_REG_B 4
39#define AIC3X_PLL_REG_C 5
40#define AIC3X_PLL_REG_D 6
41#define AIC3X_DATAPATH 7
42#define AIC3X_DATA_REG_A 8
43#define AIC3X_DATA_REG_B 9
44#define AIC3X_DATA_REG_C 10
45
46#define AIC3X_DAC_POWER 37
47#define AIC3X_HIGH_POWER 38
48
49#define AIC3X_POP_REDUCT 42
50#define AIC3X_LEFT_VOL 43
51#define AIC3X_RIGHT_VOL 44
52
53#define AIC3X_DAC_L1_VOL 47
54#define AIC3X_HPLOUT_LVL 51
55
56#define AIC3X_HPLCOM_LVL 58
57
58#define AIC3X_DAC_R1_VOL 64
59#define AIC3X_HPROUT_LVL 65
60
61#define AIC3X_DAC_L1_MONO_LOP_M_VOL 75
62
63#define AIC3X_DAC_R1_MONO_LOP_M_VOL 76
64
65#define AIC3X_MONO_LOP_M_LVL 79
66
67#define AIC3X_DAC_L1_LEFT_LOP_M_VOL 82
68
69#define AIC3X_LEFT_LOP_M_LVL 86
70
71#define AIC3X_DAC_R1_RIGHT_LOP_M_VOL 92
72#define AIC3X_RIGHT_LOP_M_LVL 93
73#define AIC3X_MOD_POWER 94
74
75#define AIC3X_GPIO1_CTRL 98
76
77#endif /*_AIC3X_H_*/