Go to the documentation of this file.
12 #ifndef _TLV320AIC23_H
13 #define _TLV320AIC23_H
16 #define TLV320AIC23_LINVOL 0x00
17 #define TLV320AIC23_RINVOL 0x01
18 #define TLV320AIC23_LCHNVOL 0x02
19 #define TLV320AIC23_RCHNVOL 0x03
20 #define TLV320AIC23_ANLG 0x04
21 #define TLV320AIC23_DIGT 0x05
22 #define TLV320AIC23_PWR 0x06
23 #define TLV320AIC23_DIGT_FMT 0x07
24 #define TLV320AIC23_SRATE 0x08
25 #define TLV320AIC23_ACTIVE 0x09
26 #define TLV320AIC23_RESET 0x0F
29 #define TLV320AIC23_LRS_ENABLED 0x0100
30 #define TLV320AIC23_LIM_MUTED 0x0080
31 #define TLV320AIC23_LIV_DEFAULT 0x0017
32 #define TLV320AIC23_LIV_MAX 0x001f
33 #define TLV320AIC23_LIV_MIN 0x0000
36 #define TLV320AIC23_LZC_ON 0x0080
37 #define TLV320AIC23_LHV_DEFAULT 0x0079
38 #define TLV320AIC23_LHV_MAX 0x007f
39 #define TLV320AIC23_LHV_MIN 0x0000
42 #define TLV320AIC23_STA_REG(x) ((x)<<6)
43 #define TLV320AIC23_STE_ENABLED 0x0020
44 #define TLV320AIC23_DAC_SELECTED 0x0010
45 #define TLV320AIC23_BYPASS_ON 0x0008
46 #define TLV320AIC23_INSEL_MIC 0x0004
47 #define TLV320AIC23_MICM_MUTED 0x0002
48 #define TLV320AIC23_MICB_20DB 0x0001
51 #define TLV320AIC23_DACM_MUTE 0x0008
52 #define TLV320AIC23_DEEMP_32K 0x0002
53 #define TLV320AIC23_DEEMP_44K 0x0004
54 #define TLV320AIC23_DEEMP_48K 0x0006
55 #define TLV320AIC23_ADCHP_ON 0x0001
58 #define TLV320AIC23_DEVICE_PWR_OFF 0x0080
59 #define TLV320AIC23_CLK_OFF 0x0040
60 #define TLV320AIC23_OSC_OFF 0x0020
61 #define TLV320AIC23_OUT_OFF 0x0010
62 #define TLV320AIC23_DAC_OFF 0x0008
63 #define TLV320AIC23_ADC_OFF 0x0004
64 #define TLV320AIC23_MIC_OFF 0x0002
65 #define TLV320AIC23_LINE_OFF 0x0001
68 #define TLV320AIC23_MS_MASTER 0x0040
69 #define TLV320AIC23_LRSWAP_ON 0x0020
70 #define TLV320AIC23_LRP_ON 0x0010
71 #define TLV320AIC23_IWL_16 0x0000
72 #define TLV320AIC23_IWL_20 0x0004
73 #define TLV320AIC23_IWL_24 0x0008
74 #define TLV320AIC23_IWL_32 0x000C
75 #define TLV320AIC23_FOR_I2S 0x0002
76 #define TLV320AIC23_FOR_DSP 0x0003
77 #define TLV320AIC23_FOR_LJUST 0x0001
80 #define TLV320AIC23_CLKOUT_HALF 0x0080
81 #define TLV320AIC23_CLKIN_HALF 0x0040
82 #define TLV320AIC23_BOSR_384fs 0x0002
83 #define TLV320AIC23_USB_CLK_ON 0x0001
84 #define TLV320AIC23_SR_MASK 0xf
85 #define TLV320AIC23_CLKOUT_SHIFT 7
86 #define TLV320AIC23_CLKIN_SHIFT 6
87 #define TLV320AIC23_SR_SHIFT 2
88 #define TLV320AIC23_BOSR_SHIFT 1
91 #define TLV320AIC23_ACT_ON 0x0001
97 #define TLV320AIC23_DEFAULT_OUT_VOL 0x70
98 #define TLV320AIC23_DEFAULT_IN_VOLUME 0x10
100 #define TLV320AIC23_OUT_VOL_MIN TLV320AIC23_LHV_MIN
101 #define TLV320AIC23_OUT_VOL_MAX TLV320AIC23_LHV_MAX
102 #define TLV320AIC23_OUT_VO_RANGE (TLV320AIC23_OUT_VOL_MAX - \
103 TLV320AIC23_OUT_VOL_MIN)
104 #define TLV320AIC23_OUT_VOL_MASK TLV320AIC23_OUT_VOL_MAX
106 #define TLV320AIC23_IN_VOL_MIN TLV320AIC23_LIV_MIN
107 #define TLV320AIC23_IN_VOL_MAX TLV320AIC23_LIV_MAX
108 #define TLV320AIC23_IN_VOL_RANGE (TLV320AIC23_IN_VOL_MAX - \
109 TLV320AIC23_IN_VOL_MIN)
110 #define TLV320AIC23_IN_VOL_MASK TLV320AIC23_IN_VOL_MAX
112 #define TLV320AIC23_SIDETONE_MASK 0x1c0
113 #define TLV320AIC23_SIDETONE_0 0x100
114 #define TLV320AIC23_SIDETONE_6 0x000
115 #define TLV320AIC23_SIDETONE_9 0x040
116 #define TLV320AIC23_SIDETONE_12 0x080
117 #define TLV320AIC23_SIDETONE_18 0x0c0