Go to the documentation of this file.
21 #define WM8523_DEVICE_ID 0x00
22 #define WM8523_REVISION 0x01
23 #define WM8523_PSCTRL1 0x02
24 #define WM8523_AIF_CTRL1 0x03
25 #define WM8523_AIF_CTRL2 0x04
26 #define WM8523_DAC_CTRL3 0x05
27 #define WM8523_DAC_GAINL 0x06
28 #define WM8523_DAC_GAINR 0x07
29 #define WM8523_ZERO_DETECT 0x08
31 #define WM8523_REGISTER_COUNT 9
32 #define WM8523_MAX_REGISTER 0x08
41 #define WM8523_CHIP_ID_MASK 0xFFFF
42 #define WM8523_CHIP_ID_SHIFT 0
43 #define WM8523_CHIP_ID_WIDTH 16
48 #define WM8523_CHIP_REV_MASK 0x0007
49 #define WM8523_CHIP_REV_SHIFT 0
50 #define WM8523_CHIP_REV_WIDTH 3
55 #define WM8523_SYS_ENA_MASK 0x0003
56 #define WM8523_SYS_ENA_SHIFT 0
57 #define WM8523_SYS_ENA_WIDTH 2
62 #define WM8523_TDM_MODE_MASK 0x1800
63 #define WM8523_TDM_MODE_SHIFT 11
64 #define WM8523_TDM_MODE_WIDTH 2
65 #define WM8523_TDM_SLOT_MASK 0x0600
66 #define WM8523_TDM_SLOT_SHIFT 9
67 #define WM8523_TDM_SLOT_WIDTH 2
68 #define WM8523_DEEMPH 0x0100
69 #define WM8523_DEEMPH_MASK 0x0100
70 #define WM8523_DEEMPH_SHIFT 8
71 #define WM8523_DEEMPH_WIDTH 1
72 #define WM8523_AIF_MSTR 0x0080
73 #define WM8523_AIF_MSTR_MASK 0x0080
74 #define WM8523_AIF_MSTR_SHIFT 7
75 #define WM8523_AIF_MSTR_WIDTH 1
76 #define WM8523_LRCLK_INV 0x0040
77 #define WM8523_LRCLK_INV_MASK 0x0040
78 #define WM8523_LRCLK_INV_SHIFT 6
79 #define WM8523_LRCLK_INV_WIDTH 1
80 #define WM8523_BCLK_INV 0x0020
81 #define WM8523_BCLK_INV_MASK 0x0020
82 #define WM8523_BCLK_INV_SHIFT 5
83 #define WM8523_BCLK_INV_WIDTH 1
84 #define WM8523_WL_MASK 0x0018
85 #define WM8523_WL_SHIFT 3
86 #define WM8523_WL_WIDTH 2
87 #define WM8523_FMT_MASK 0x0007
88 #define WM8523_FMT_SHIFT 0
89 #define WM8523_FMT_WIDTH 3
94 #define WM8523_DAC_OP_MUX_MASK 0x00C0
95 #define WM8523_DAC_OP_MUX_SHIFT 6
96 #define WM8523_DAC_OP_MUX_WIDTH 2
97 #define WM8523_BCLKDIV_MASK 0x0038
98 #define WM8523_BCLKDIV_SHIFT 3
99 #define WM8523_BCLKDIV_WIDTH 3
100 #define WM8523_SR_MASK 0x0007
101 #define WM8523_SR_SHIFT 0
102 #define WM8523_SR_WIDTH 3
107 #define WM8523_ZC 0x0010
108 #define WM8523_ZC_MASK 0x0010
109 #define WM8523_ZC_SHIFT 4
110 #define WM8523_ZC_WIDTH 1
111 #define WM8523_DACR 0x0008
112 #define WM8523_DACR_MASK 0x0008
113 #define WM8523_DACR_SHIFT 3
114 #define WM8523_DACR_WIDTH 1
115 #define WM8523_DACL 0x0004
116 #define WM8523_DACL_MASK 0x0004
117 #define WM8523_DACL_SHIFT 2
118 #define WM8523_DACL_WIDTH 1
119 #define WM8523_VOL_UP_RAMP 0x0002
120 #define WM8523_VOL_UP_RAMP_MASK 0x0002
121 #define WM8523_VOL_UP_RAMP_SHIFT 1
122 #define WM8523_VOL_UP_RAMP_WIDTH 1
123 #define WM8523_VOL_DOWN_RAMP 0x0001
124 #define WM8523_VOL_DOWN_RAMP_MASK 0x0001
125 #define WM8523_VOL_DOWN_RAMP_SHIFT 0
126 #define WM8523_VOL_DOWN_RAMP_WIDTH 1
131 #define WM8523_DACL_VU 0x0200
132 #define WM8523_DACL_VU_MASK 0x0200
133 #define WM8523_DACL_VU_SHIFT 9
134 #define WM8523_DACL_VU_WIDTH 1
135 #define WM8523_DACL_VOL_MASK 0x01FF
136 #define WM8523_DACL_VOL_SHIFT 0
137 #define WM8523_DACL_VOL_WIDTH 9
142 #define WM8523_DACR_VU 0x0200
143 #define WM8523_DACR_VU_MASK 0x0200
144 #define WM8523_DACR_VU_SHIFT 9
145 #define WM8523_DACR_VU_WIDTH 1
146 #define WM8523_DACR_VOL_MASK 0x01FF
147 #define WM8523_DACR_VOL_SHIFT 0
148 #define WM8523_DACR_VOL_WIDTH 9
153 #define WM8523_ZD_COUNT_MASK 0x0003
154 #define WM8523_ZD_COUNT_SHIFT 0
155 #define WM8523_ZD_COUNT_WIDTH 2