summaryrefslogtreecommitdiff
path: root/firmware/export/as3514.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/as3514.h')
-rw-r--r--firmware/export/as3514.h23
1 files changed, 20 insertions, 3 deletions
diff --git a/firmware/export/as3514.h b/firmware/export/as3514.h
index afc982da39..2db28397f1 100644
--- a/firmware/export/as3514.h
+++ b/firmware/export/as3514.h
@@ -22,6 +22,8 @@
22#ifndef _AS3514_H 22#ifndef _AS3514_H
23#define _AS3514_H 23#define _AS3514_H
24 24
25#include "config.h"
26
25extern int tenthdb2master(int db); 27extern int tenthdb2master(int db);
26 28
27extern void audiohw_set_master_vol(int vol_l, int vol_r); 29extern void audiohw_set_master_vol(int vol_l, int vol_r);
@@ -36,24 +38,32 @@ extern void audiohw_set_lineout_vol(int vol_l, int vol_r);
36#define AS3514_LSP_OUT_L 0x05 38#define AS3514_LSP_OUT_L 0x05
37#define AS3514_MIC1_R 0x06 39#define AS3514_MIC1_R 0x06
38#define AS3514_MIC1_L 0x07 40#define AS3514_MIC1_L 0x07
41#ifndef HAVE_AS3543
39#define AS3514_MIC2_R 0x08 42#define AS3514_MIC2_R 0x08
40#define AS3514_MIC2_L 0x09 43#define AS3514_MIC2_L 0x09
44#endif
41#define AS3514_LINE_IN1_R 0x0a 45#define AS3514_LINE_IN1_R 0x0a
42#define AS3514_LINE_IN1_L 0x0b 46#define AS3514_LINE_IN1_L 0x0b
47#ifndef HAVE_AS3543
43#define AS3514_LINE_IN2_R 0x0c 48#define AS3514_LINE_IN2_R 0x0c
44#define AS3514_LINE_IN2_L 0x0d 49#define AS3514_LINE_IN2_L 0x0d
50#endif
45#define AS3514_DAC_R 0x0e 51#define AS3514_DAC_R 0x0e
46#define AS3514_DAC_L 0x0f 52#define AS3514_DAC_L 0x0f
47#define AS3514_ADC_R 0x10 53#define AS3514_ADC_R 0x10
48#define AS3514_ADC_L 0x11 54#define AS3514_ADC_L 0x11
49#define AS3543_DAC_IF 0x12 /* only in as3543 */ 55#ifdef HAVE_AS3543
56#define AS3543_DAC_IF 0x12
57#endif
50#define AS3514_AUDIOSET1 0x14 58#define AS3514_AUDIOSET1 0x14
51#define AS3514_AUDIOSET2 0x15 59#define AS3514_AUDIOSET2 0x15
52#define AS3514_AUDIOSET3 0x16 60#define AS3514_AUDIOSET3 0x16
53#define AS3517_USB_UTIL 0x17 /* only in as3517+ */ 61#define AS3517_USB_UTIL 0x17 /* only in as3517+ */
54 62
55#define AS3543_BACKLIGHT 0x1b /* only in as3543 */ 63#ifdef HAVE_AS3543
56#define AS3543_PMU_ENABLE 0x1c /* only in as3543 */ 64#define AS3543_BACKLIGHT 0x1b
65#define AS3543_PMU_ENABLE 0x1c
66#endif
57 67
58#define AS3514_PLLMODE 0x1d 68#define AS3514_PLLMODE 0x1d
59 69
@@ -161,6 +171,9 @@ extern void audiohw_set_lineout_vol(int vol_l, int vol_r);
161/* Use AS3514_VOL_MASK */ 171/* Use AS3514_VOL_MASK */
162 172
163/* LINE_IN1_R (0Ah) */ 173/* LINE_IN1_R (0Ah) */
174#ifdef HAVE_AS3543
175#define LINE_IN_R_LINE_SELECT (0x1 << 6)
176#endif
164#define LINE_IN1_R_LI1R_MUTE_off (0x1 << 5) 177#define LINE_IN1_R_LI1R_MUTE_off (0x1 << 5)
165/* Use AS3514_VOL_MASK */ 178/* Use AS3514_VOL_MASK */
166 179
@@ -201,8 +214,12 @@ extern void audiohw_set_lineout_vol(int vol_l, int vol_r);
201/* Use AS3514_VOL_MASK */ 214/* Use AS3514_VOL_MASK */
202 215
203/* ADC_L (11h) */ 216/* ADC_L (11h) */
217#ifdef HAVE_AS3543
218#define ADC_L_ADC_MUTE_off (0x1 << 5)
219#else
204#define ADC_L_FS_2 (0x1 << 7) 220#define ADC_L_FS_2 (0x1 << 7)
205#define ADC_L_ADC_MUTE_off (0x1 << 6) 221#define ADC_L_ADC_MUTE_off (0x1 << 6)
222#endif
206/* Use AS3514_VOL_MASK */ 223/* Use AS3514_VOL_MASK */
207 224
208/* AUDIOSET1 (14h)*/ 225/* AUDIOSET1 (14h)*/