xref: /linux/sound/soc/codecs/cs4234.h (revision d4edae9c508c845d92bd59c60c4089c3addad6a8)
1*d4edae9cSLucas Tanure /* SPDX-License-Identifier: GPL-2.0-only */
2*d4edae9cSLucas Tanure /*
3*d4edae9cSLucas Tanure  * ALSA SoC Audio driver for CS4234 codec
4*d4edae9cSLucas Tanure  *
5*d4edae9cSLucas Tanure  * Copyright (C) 2020 Cirrus Logic, Inc. and
6*d4edae9cSLucas Tanure  *                    Cirrus Logic International Semiconductor Ltd.
7*d4edae9cSLucas Tanure  */
8*d4edae9cSLucas Tanure 
9*d4edae9cSLucas Tanure #ifndef CS4234_H
10*d4edae9cSLucas Tanure #define CS4234_H
11*d4edae9cSLucas Tanure 
12*d4edae9cSLucas Tanure #define CS4234_DEVID_AB			0x01
13*d4edae9cSLucas Tanure #define CS4234_DEVID_CD			0x02
14*d4edae9cSLucas Tanure #define CS4234_DEVID_EF			0x03
15*d4edae9cSLucas Tanure #define CS4234_REVID			0x05
16*d4edae9cSLucas Tanure 
17*d4edae9cSLucas Tanure #define CS4234_CLOCK_SP			0x06
18*d4edae9cSLucas Tanure #define CS4234_BASE_RATE_MASK		0xC0
19*d4edae9cSLucas Tanure #define CS4234_BASE_RATE_SHIFT		6
20*d4edae9cSLucas Tanure #define CS4234_SPEED_MODE_MASK		0x30
21*d4edae9cSLucas Tanure #define CS4234_SPEED_MODE_SHIFT		4
22*d4edae9cSLucas Tanure #define CS4234_MCLK_RATE_MASK		0x0E
23*d4edae9cSLucas Tanure #define CS4234_MCLK_RATE_SHIFT		1
24*d4edae9cSLucas Tanure 
25*d4edae9cSLucas Tanure #define CS4234_SAMPLE_WIDTH		0x07
26*d4edae9cSLucas Tanure #define CS4234_SDOUTX_SW_MASK		0xC0
27*d4edae9cSLucas Tanure #define CS4234_SDOUTX_SW_SHIFT		6
28*d4edae9cSLucas Tanure #define CS4234_INPUT_SW_MASK		0x30
29*d4edae9cSLucas Tanure #define CS4234_INPUT_SW_SHIFT		4
30*d4edae9cSLucas Tanure #define CS4234_LOW_LAT_SW_MASK		0x0C
31*d4edae9cSLucas Tanure #define CS4234_LOW_LAT_SW_SHIFT		2
32*d4edae9cSLucas Tanure #define CS4234_DAC5_SW_MASK		0x03
33*d4edae9cSLucas Tanure #define CS4234_DAC5_SW_SHIFT		0
34*d4edae9cSLucas Tanure 
35*d4edae9cSLucas Tanure #define CS4234_SP_CTRL			0x08
36*d4edae9cSLucas Tanure #define CS4234_INVT_SCLK_MASK		0x80
37*d4edae9cSLucas Tanure #define CS4234_INVT_SCLK_SHIFT		7
38*d4edae9cSLucas Tanure #define CS4234_DAC5_SRC_MASK		0x70
39*d4edae9cSLucas Tanure #define CS4234_DAC5_SRC_SHIFT		4
40*d4edae9cSLucas Tanure #define CS4234_SP_FORMAT_MASK		0x0C
41*d4edae9cSLucas Tanure #define CS4234_SP_FORMAT_SHIFT		2
42*d4edae9cSLucas Tanure #define CS4234_SDO_CHAIN_MASK		0x02
43*d4edae9cSLucas Tanure #define CS4234_SDO_CHAIN_SHIFT		1
44*d4edae9cSLucas Tanure #define CS4234_MST_SLV_MASK		0x01
45*d4edae9cSLucas Tanure #define CS4234_MST_SLV_SHIFT		0
46*d4edae9cSLucas Tanure 
47*d4edae9cSLucas Tanure #define CS4234_SP_DATA_SEL		0x09
48*d4edae9cSLucas Tanure #define CS4234_DAC14_SRC_MASK		0x38
49*d4edae9cSLucas Tanure #define CS4234_DAC14_SRC_SHIFT		3
50*d4edae9cSLucas Tanure #define CS4234_LL_SRC_MASK		0x07
51*d4edae9cSLucas Tanure #define CS4234_LL_SRC_SHIFT		0
52*d4edae9cSLucas Tanure 
53*d4edae9cSLucas Tanure #define CS4234_SDIN1_MASK1		0x0A
54*d4edae9cSLucas Tanure #define CS4234_SDIN1_MASK2		0x0B
55*d4edae9cSLucas Tanure #define CS4234_SDIN2_MASK1		0x0C
56*d4edae9cSLucas Tanure #define CS4234_SDIN2_MASK2		0x0D
57*d4edae9cSLucas Tanure 
58*d4edae9cSLucas Tanure #define CS4234_TPS_CTRL			0x0E
59*d4edae9cSLucas Tanure #define CS4234_TPS_MODE_MASK		0x80
60*d4edae9cSLucas Tanure #define CS4234_TPS_MODE_SHIFT		7
61*d4edae9cSLucas Tanure #define CS4234_TPS_OFST_MASK		0x70
62*d4edae9cSLucas Tanure #define CS4234_TPS_OFST_SHIFT		4
63*d4edae9cSLucas Tanure #define CS4234_GRP_DELAY_MASK		0x0F
64*d4edae9cSLucas Tanure #define CS4234_GRP_DELAY_SHIFT		0
65*d4edae9cSLucas Tanure 
66*d4edae9cSLucas Tanure #define CS4234_ADC_CTRL1		0x0F
67*d4edae9cSLucas Tanure #define CS4234_VA_SEL_MASK		0x20
68*d4edae9cSLucas Tanure #define CS4234_VA_SEL_SHIFT		5
69*d4edae9cSLucas Tanure #define CS4234_ENA_HPF_MASK		0x10
70*d4edae9cSLucas Tanure #define CS4234_ENA_HPF_SHIFT		4
71*d4edae9cSLucas Tanure #define CS4234_INV_ADC_MASK		0x0F
72*d4edae9cSLucas Tanure #define CS4234_INV_ADC4_MASK		0x08
73*d4edae9cSLucas Tanure #define CS4234_INV_ADC4_SHIFT		3
74*d4edae9cSLucas Tanure #define CS4234_INV_ADC3_MASK		0x04
75*d4edae9cSLucas Tanure #define CS4234_INV_ADC3_SHIFT		2
76*d4edae9cSLucas Tanure #define CS4234_INV_ADC2_MASK		0x02
77*d4edae9cSLucas Tanure #define CS4234_INV_ADC2_SHIFT		1
78*d4edae9cSLucas Tanure #define CS4234_INV_ADC1_MASK		0x01
79*d4edae9cSLucas Tanure #define CS4234_INV_ADC1_SHIFT		0
80*d4edae9cSLucas Tanure 
81*d4edae9cSLucas Tanure #define CS4234_ADC_CTRL2		0x10
82*d4edae9cSLucas Tanure #define CS4234_MUTE_ADC4_MASK		0x80
83*d4edae9cSLucas Tanure #define CS4234_MUTE_ADC4_SHIFT		7
84*d4edae9cSLucas Tanure #define CS4234_MUTE_ADC3_MASK		0x40
85*d4edae9cSLucas Tanure #define CS4234_MUTE_ADC3_SHIFT		6
86*d4edae9cSLucas Tanure #define CS4234_MUTE_ADC2_MASK		0x20
87*d4edae9cSLucas Tanure #define CS4234_MUTE_ADC2_SHIFT		5
88*d4edae9cSLucas Tanure #define CS4234_MUTE_ADC1_MASK		0x10
89*d4edae9cSLucas Tanure #define CS4234_MUTE_ADC1_SHIFT		4
90*d4edae9cSLucas Tanure #define CS4234_PDN_ADC4_MASK		0x08
91*d4edae9cSLucas Tanure #define CS4234_PDN_ADC4_SHIFT		3
92*d4edae9cSLucas Tanure #define CS4234_PDN_ADC3_MASK		0x04
93*d4edae9cSLucas Tanure #define CS4234_PDN_ADC3_SHIFT		2
94*d4edae9cSLucas Tanure #define CS4234_PDN_ADC2_MASK		0x02
95*d4edae9cSLucas Tanure #define CS4234_PDN_ADC2_SHIFT		1
96*d4edae9cSLucas Tanure #define CS4234_PDN_ADC1_MASK		0x01
97*d4edae9cSLucas Tanure #define CS4234_PDN_ADC1_SHIFT		0
98*d4edae9cSLucas Tanure 
99*d4edae9cSLucas Tanure #define CS4234_LOW_LAT_CTRL1		0x11
100*d4edae9cSLucas Tanure #define CS4234_LL_NG_MASK		0xE0
101*d4edae9cSLucas Tanure #define CS4234_LL_NG_SHIFT		5
102*d4edae9cSLucas Tanure #define CS4234_INV_LL_MASK		0x0F
103*d4edae9cSLucas Tanure #define CS4234_INV_LL4_MASK		0x08
104*d4edae9cSLucas Tanure #define CS4234_INV_LL4_SHIFT		3
105*d4edae9cSLucas Tanure #define CS4234_INV_LL3_MASK		0x04
106*d4edae9cSLucas Tanure #define CS4234_INV_LL3_SHIFT		2
107*d4edae9cSLucas Tanure #define CS4234_INV_LL2_MASK		0x02
108*d4edae9cSLucas Tanure #define CS4234_INV_LL2_SHIFT		1
109*d4edae9cSLucas Tanure #define CS4234_INV_LL1_MASK		0x01
110*d4edae9cSLucas Tanure #define CS4234_INV_LL1_SHIFT		0
111*d4edae9cSLucas Tanure 
112*d4edae9cSLucas Tanure #define CS4234_DAC_CTRL1		0x12
113*d4edae9cSLucas Tanure #define CS4234_DAC14_NG_MASK		0xE0
114*d4edae9cSLucas Tanure #define CS4234_DAC14_NG_SHIFT		5
115*d4edae9cSLucas Tanure #define CS4234_DAC14_DE_MASK		0x10
116*d4edae9cSLucas Tanure #define CS4234_DAC14_DE_SHIFT		4
117*d4edae9cSLucas Tanure #define CS4234_DAC5_DE_MASK		0x08
118*d4edae9cSLucas Tanure #define CS4234_DAC5_DE_SHIFT		3
119*d4edae9cSLucas Tanure #define CS4234_DAC5_MVC_MASK		0x04
120*d4edae9cSLucas Tanure #define CS4234_DAC5_MVC_SHIFT		2
121*d4edae9cSLucas Tanure #define CS4234_DAC5_CFG_FLTR_MASK	0x03
122*d4edae9cSLucas Tanure #define CS4234_DAC5_CFG_FLTR_SHIFT	0
123*d4edae9cSLucas Tanure 
124*d4edae9cSLucas Tanure #define CS4234_DAC_CTRL2		0x13
125*d4edae9cSLucas Tanure #define CS4234_DAC5_NG_MASK		0xE0
126*d4edae9cSLucas Tanure #define CS4234_DAC5_NG_SHIFT		5
127*d4edae9cSLucas Tanure #define CS4234_INV_DAC_MASK		0x1F
128*d4edae9cSLucas Tanure #define CS4234_INV_DAC5_MASK		0x10
129*d4edae9cSLucas Tanure #define CS4234_INV_DAC5_SHIFT		4
130*d4edae9cSLucas Tanure #define CS4234_INV_DAC4_MASK		0x08
131*d4edae9cSLucas Tanure #define CS4234_INV_DAC4_SHIFT		3
132*d4edae9cSLucas Tanure #define CS4234_INV_DAC3_MASK		0x04
133*d4edae9cSLucas Tanure #define CS4234_INV_DAC3_SHIFT		2
134*d4edae9cSLucas Tanure #define CS4234_INV_DAC2_MASK		0x02
135*d4edae9cSLucas Tanure #define CS4234_INV_DAC2_SHIFT		1
136*d4edae9cSLucas Tanure #define CS4234_INV_DAC1_MASK		0x01
137*d4edae9cSLucas Tanure #define CS4234_INV_DAC1_SHIFT		0
138*d4edae9cSLucas Tanure 
139*d4edae9cSLucas Tanure #define CS4234_DAC_CTRL3		0x14
140*d4edae9cSLucas Tanure #define CS4234_DAC5_ATT_MASK		0x80
141*d4edae9cSLucas Tanure #define CS4234_DAC5_ATT_SHIFT		7
142*d4edae9cSLucas Tanure #define CS4234_DAC14_ATT_MASK		0x40
143*d4edae9cSLucas Tanure #define CS4234_DAC14_ATT_SHIFT		6
144*d4edae9cSLucas Tanure #define CS4234_MUTE_LL_MASK		0x20
145*d4edae9cSLucas Tanure #define CS4234_MUTE_LL_SHIFT		5
146*d4edae9cSLucas Tanure #define CS4234_MUTE_DAC5_MASK		0x10
147*d4edae9cSLucas Tanure #define CS4234_MUTE_DAC5_SHIFT		4
148*d4edae9cSLucas Tanure #define CS4234_MUTE_DAC4_MASK		0x08
149*d4edae9cSLucas Tanure #define CS4234_MUTE_DAC4_SHIFT		3
150*d4edae9cSLucas Tanure #define CS4234_MUTE_DAC3_MASK		0x04
151*d4edae9cSLucas Tanure #define CS4234_MUTE_DAC3_SHIFT		2
152*d4edae9cSLucas Tanure #define CS4234_MUTE_DAC2_MASK		0x02
153*d4edae9cSLucas Tanure #define CS4234_MUTE_DAC2_SHIFT		1
154*d4edae9cSLucas Tanure #define CS4234_MUTE_DAC1_MASK		0x01
155*d4edae9cSLucas Tanure #define CS4234_MUTE_DAC1_SHIFT		0
156*d4edae9cSLucas Tanure 
157*d4edae9cSLucas Tanure #define CS4234_DAC_CTRL4		0x15
158*d4edae9cSLucas Tanure #define CS4234_VQ_RAMP_MASK		0x80
159*d4edae9cSLucas Tanure #define CS4234_VQ_RAMP_SHIFT		7
160*d4edae9cSLucas Tanure #define CS4234_TPS_GAIN_MASK		0x40
161*d4edae9cSLucas Tanure #define CS4234_TPS_GAIN_SHIFT		6
162*d4edae9cSLucas Tanure #define CS4234_PDN_DAC5_MASK		0x10
163*d4edae9cSLucas Tanure #define CS4234_PDN_DAC5_SHIFT		4
164*d4edae9cSLucas Tanure #define CS4234_PDN_DAC4_MASK		0x08
165*d4edae9cSLucas Tanure #define CS4234_PDN_DAC4_SHIFT		3
166*d4edae9cSLucas Tanure #define CS4234_PDN_DAC3_MASK		0x04
167*d4edae9cSLucas Tanure #define CS4234_PDN_DAC3_SHIFT		2
168*d4edae9cSLucas Tanure #define CS4234_PDN_DAC2_MASK		0x02
169*d4edae9cSLucas Tanure #define CS4234_PDN_DAC2_SHIFT		1
170*d4edae9cSLucas Tanure #define CS4234_PDN_DAC1_MASK		0x01
171*d4edae9cSLucas Tanure #define CS4234_PDN_DAC1_SHIFT		0
172*d4edae9cSLucas Tanure 
173*d4edae9cSLucas Tanure #define CS4234_VOLUME_MODE		0x16
174*d4edae9cSLucas Tanure #define CS4234_MUTE_DELAY_MASK		0xC0
175*d4edae9cSLucas Tanure #define CS4234_MUTE_DELAY_SHIFT		6
176*d4edae9cSLucas Tanure #define CS4234_MIN_DELAY_MASK		0x38
177*d4edae9cSLucas Tanure #define CS4234_MIN_DELAY_SHIFT		3
178*d4edae9cSLucas Tanure #define CS4234_MAX_DELAY_MASK		0x07
179*d4edae9cSLucas Tanure #define CS4234_MAX_DELAY_SHIFT		0
180*d4edae9cSLucas Tanure 
181*d4edae9cSLucas Tanure #define CS4234_MASTER_VOL		0x17
182*d4edae9cSLucas Tanure #define CS4234_DAC1_VOL			0x18
183*d4edae9cSLucas Tanure #define CS4234_DAC2_VOL			0x19
184*d4edae9cSLucas Tanure #define CS4234_DAC3_VOL			0x1A
185*d4edae9cSLucas Tanure #define CS4234_DAC4_VOL			0x1B
186*d4edae9cSLucas Tanure #define CS4234_DAC5_VOL			0x1C
187*d4edae9cSLucas Tanure 
188*d4edae9cSLucas Tanure #define CS4234_INT_CTRL			0x1E
189*d4edae9cSLucas Tanure #define CS4234_INT_MODE_MASK		0x80
190*d4edae9cSLucas Tanure #define CS4234_INT_MODE_SHIFT		7
191*d4edae9cSLucas Tanure #define CS4234_INT_PIN_MASK		0x60
192*d4edae9cSLucas Tanure #define CS4234_INT_PIN_SHIFT		5
193*d4edae9cSLucas Tanure 
194*d4edae9cSLucas Tanure #define CS4234_INT_MASK1		0x1F
195*d4edae9cSLucas Tanure #define CS4234_MSK_TST_MODE_MASK	0x80
196*d4edae9cSLucas Tanure #define CS4234_MSK_TST_MODE_ERR_SHIFT	7
197*d4edae9cSLucas Tanure #define CS4234_MSK_SP_ERR_MASK		0x40
198*d4edae9cSLucas Tanure #define CS4234_MSK_SP_ERR_SHIFT		6
199*d4edae9cSLucas Tanure #define CS4234_MSK_CLK_ERR_MASK		0x08
200*d4edae9cSLucas Tanure #define CS4234_MSK_CLK_ERR_SHIFT	5
201*d4edae9cSLucas Tanure #define CS4234_MSK_ADC4_OVFL_MASK	0x08
202*d4edae9cSLucas Tanure #define CS4234_MSK_ADC4_OVFL_SHIFT	3
203*d4edae9cSLucas Tanure #define CS4234_MSK_ADC3_OVFL_MASK	0x04
204*d4edae9cSLucas Tanure #define CS4234_MSK_ADC3_OVFL_SHIFT	2
205*d4edae9cSLucas Tanure #define CS4234_MSK_ADC2_OVFL_MASK	0x02
206*d4edae9cSLucas Tanure #define CS4234_MSK_ADC2_OVFL_SHIFT	1
207*d4edae9cSLucas Tanure #define CS4234_MSK_ADC1_OVFL_MASK	0x01
208*d4edae9cSLucas Tanure #define CS4234_MSK_ADC1_OVFL_SHIFT	0
209*d4edae9cSLucas Tanure 
210*d4edae9cSLucas Tanure #define CS4234_INT_MASK2		0x20
211*d4edae9cSLucas Tanure #define CS4234_MSK_DAC5_CLIP_MASK	0x10
212*d4edae9cSLucas Tanure #define CS4234_MSK_DAC5_CLIP_SHIFT	4
213*d4edae9cSLucas Tanure #define CS4234_MSK_DAC4_CLIP_MASK	0x08
214*d4edae9cSLucas Tanure #define CS4234_MSK_DAC4_CLIP_SHIFT	3
215*d4edae9cSLucas Tanure #define CS4234_MSK_DAC3_CLIP_MASK	0x04
216*d4edae9cSLucas Tanure #define CS4234_MSK_DAC3_CLIP_SHIFT	2
217*d4edae9cSLucas Tanure #define CS4234_MSK_DAC2_CLIP_MASK	0x02
218*d4edae9cSLucas Tanure #define CS4234_MSK_DAC2_CLIP_SHIFT	1
219*d4edae9cSLucas Tanure #define CS4234_MSK_DAC1_CLIP_MASK	0x01
220*d4edae9cSLucas Tanure #define CS4234_MSK_DAC1_CLIP_SHIFT	0
221*d4edae9cSLucas Tanure 
222*d4edae9cSLucas Tanure #define CS4234_INT_NOTIFY1		0x21
223*d4edae9cSLucas Tanure #define CS4234_TST_MODE_MASK		0x80
224*d4edae9cSLucas Tanure #define CS4234_TST_MODE_SHIFT		7
225*d4edae9cSLucas Tanure #define CS4234_SP_ERR_MASK		0x40
226*d4edae9cSLucas Tanure #define CS4234_SP_ERR_SHIFT		6
227*d4edae9cSLucas Tanure #define CS4234_CLK_MOD_ERR_MASK		0x08
228*d4edae9cSLucas Tanure #define CS4234_CLK_MOD_ERR_SHIFT	5
229*d4edae9cSLucas Tanure #define CS4234_ADC4_OVFL_MASK		0x08
230*d4edae9cSLucas Tanure #define CS4234_ADC4_OVFL_SHIFT		3
231*d4edae9cSLucas Tanure #define CS4234_ADC3_OVFL_MASK		0x04
232*d4edae9cSLucas Tanure #define CS4234_ADC3_OVFL_SHIFT		2
233*d4edae9cSLucas Tanure #define CS4234_ADC2_OVFL_MASK		0x02
234*d4edae9cSLucas Tanure #define CS4234_ADC2_OVFL_SHIFT		1
235*d4edae9cSLucas Tanure #define CS4234_ADC1_OVFL_MASK		0x01
236*d4edae9cSLucas Tanure #define CS4234_ADC1_OVFL_SHIFT		0
237*d4edae9cSLucas Tanure 
238*d4edae9cSLucas Tanure #define CS4234_INT_NOTIFY2		0x22
239*d4edae9cSLucas Tanure #define CS4234_DAC5_CLIP_MASK		0x10
240*d4edae9cSLucas Tanure #define CS4234_DAC5_CLIP_SHIFT		4
241*d4edae9cSLucas Tanure #define CS4234_DAC4_CLIP_MASK		0x08
242*d4edae9cSLucas Tanure #define CS4234_DAC4_CLIP_SHIFT		3
243*d4edae9cSLucas Tanure #define CS4234_DAC3_CLIP_MASK		0x04
244*d4edae9cSLucas Tanure #define CS4234_DAC3_CLIP_SHIFT		2
245*d4edae9cSLucas Tanure #define CS4234_DAC2_CLIP_MASK		0x02
246*d4edae9cSLucas Tanure #define CS4234_DAC2_CLIP_SHIFT		1
247*d4edae9cSLucas Tanure #define CS4234_DAC1_CLIP_MASK		0x01
248*d4edae9cSLucas Tanure #define CS4234_DAC1_CLIP_SHIFT		0
249*d4edae9cSLucas Tanure 
250*d4edae9cSLucas Tanure #define CS4234_MAX_REGISTER		CS4234_INT_NOTIFY2
251*d4edae9cSLucas Tanure 
252*d4edae9cSLucas Tanure #define CS4234_SUPPORTED_ID		0x423400
253*d4edae9cSLucas Tanure #define CS4234_BOOT_TIME_US		3000
254*d4edae9cSLucas Tanure #define CS4234_HOLD_RESET_TIME_US	1000
255*d4edae9cSLucas Tanure #define CS4234_VQ_CHARGE_MS		1000
256*d4edae9cSLucas Tanure 
257*d4edae9cSLucas Tanure #define CS4234_PCM_RATES	(SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 | \
258*d4edae9cSLucas Tanure 				 SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_64000 | \
259*d4edae9cSLucas Tanure 				 SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000)
260*d4edae9cSLucas Tanure 
261*d4edae9cSLucas Tanure #define CS4234_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S18_3LE | \
262*d4edae9cSLucas Tanure 			SNDRV_PCM_FMTBIT_S20_LE | SNDRV_PCM_FMTBIT_S24_LE | \
263*d4edae9cSLucas Tanure 			SNDRV_PCM_FMTBIT_S24_3LE)
264*d4edae9cSLucas Tanure 
265*d4edae9cSLucas Tanure enum cs4234_supplies {
266*d4edae9cSLucas Tanure 	CS4234_SUPPLY_VA = 0,
267*d4edae9cSLucas Tanure 	CS4234_SUPPLY_VL,
268*d4edae9cSLucas Tanure };
269*d4edae9cSLucas Tanure 
270*d4edae9cSLucas Tanure enum cs4234_va_sel {
271*d4edae9cSLucas Tanure 	CS4234_3V3 = 0,
272*d4edae9cSLucas Tanure 	CS4234_5V,
273*d4edae9cSLucas Tanure };
274*d4edae9cSLucas Tanure 
275*d4edae9cSLucas Tanure enum cs4234_sp_format {
276*d4edae9cSLucas Tanure 	CS4234_LEFT_J = 0,
277*d4edae9cSLucas Tanure 	CS4234_I2S,
278*d4edae9cSLucas Tanure 	CS4234_TDM,
279*d4edae9cSLucas Tanure };
280*d4edae9cSLucas Tanure 
281*d4edae9cSLucas Tanure enum cs4234_base_rate_advisory {
282*d4edae9cSLucas Tanure 	CS4234_48K = 0,
283*d4edae9cSLucas Tanure 	CS4234_44K1,
284*d4edae9cSLucas Tanure 	CS4234_32K,
285*d4edae9cSLucas Tanure };
286*d4edae9cSLucas Tanure 
287*d4edae9cSLucas Tanure #endif
288