Lines Matching +full:3 +full:- +full:4

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * sma1303.h -- sma1303 ALSA SoC Audio driver
27 #define SMA1303_I2C_RETRY_COUNT 3
122 #define SMA1303_I2S_MODE_MASK (7<<4)
123 #define SMA1303_STANDARD_I2S (0<<4)
124 #define SMA1303_LJ (1<<4)
125 #define SMA1303_RJ_16BIT (4<<4)
126 #define SMA1303_RJ_18BIT (5<<4)
127 #define SMA1303_RJ_20BIT (6<<4)
128 #define SMA1303_RJ_24BIT (7<<4)
130 #define SMA1303_LEFTPOL_MASK (1<<3)
131 #define SMA1303_LOW_FIRST_CH (0<<3)
132 #define SMA1303_HIGH_FIRST_CH (1<<3)
139 #define SMA1303_IMODE_MASK (3<<6)
148 #define SMA1303_PCM_ALAW_MASK (1<<4)
149 #define SMA1303_PCM_U_DECODING (0<<4)
150 #define SMA1303_PCM_A_DECODING (1<<4)
152 #define SMA1303_PCM_COMP_MASK (1<<3)
153 #define SMA1303_PCM_LINEAR (0<<3)
154 #define SMA1303_PCM_COMPANDING (1<<3)
173 #define SMA1303_PCM_N_SLOT4 (3<<0)
174 #define SMA1303_PCM_N_SLOT5 (4<<0)
188 #define SMA1303_PCM1_SLOT_MASK (15<<4)
189 #define SMA1303_PCM1_SLOT1 (0<<4)
190 #define SMA1303_PCM1_SLOT2 (1<<4)
191 #define SMA1303_PCM1_SLOT3 (2<<4)
192 #define SMA1303_PCM1_SLOT4 (3<<4)
193 #define SMA1303_PCM1_SLOT5 (4<<4)
194 #define SMA1303_PCM1_SLOT6 (5<<4)
195 #define SMA1303_PCM1_SLOT7 (6<<4)
196 #define SMA1303_PCM1_SLOT8 (7<<4)
197 #define SMA1303_PCM1_SLOT9 (8<<4)
198 #define SMA1303_PCM1_SLOT10 (9<<4)
199 #define SMA1303_PCM1_SLOT11 (10<<4)
200 #define SMA1303_PCM1_SLOT12 (11<<4)
201 #define SMA1303_PCM1_SLOT13 (12<<4)
202 #define SMA1303_PCM1_SLOT14 (13<<4)
203 #define SMA1303_PCM1_SLOT15 (14<<4)
204 #define SMA1303_PCM1_SLOT16 (15<<4)
210 #define SMA1303_PCM2_SLOT4 (3<<0)
211 #define SMA1303_PCM2_SLOT5 (4<<0)
225 #define SMA1303_PORT_CONFIG_MASK (3<<5)
233 #define SMA1303_SPEAKER_PATH (3<<0)
234 #define SMA1303_POSTSCALER_OUTPUT (4<<0)
237 #define SMA1303_BST_OFF_SLOPE_MASK (3<<6)
241 #define SMA1303_BST_OFF_SLOPE_1_2ns (3<<6)
247 #define SMA1303_BST_FAST_LEBN_MASK (1<<4)
248 #define SMA1303_BST_SHORT_LEB (0<<4)
249 #define SMA1303_BST_LONG_LEB (1<<4)
251 #define SMA1303_HIGH_PGAIN_MASK (1<<3)
252 #define SMA1303_NORMAL_P_GAIN (0<<3)
253 #define SMA1303_HIGH_P_GAIN (1<<3)
268 #define SMA1303_SET_OCP_H_MASK (3<<6)
272 #define SMA1303_HIGH_OCP_0_9_LVL (3<<6)
278 #define SMA1303_LOOP_CHECK_MASK (1<<4)
279 #define SMA1303_BST_LOOP_NORMAL_MODE (0<<4)
280 #define SMA1303_BST_LOOP_CHECK_MODE (1<<4)
282 #define SMA1303_EN_SH_PRT_MASK (1<<3)
283 #define SMA1303_EN_SH_PRT_DISABLE (0<<3)
284 #define SMA1303_EN_SH_PRT_ENABLE (1<<3)
287 #define SMA1303_VREF_MON_MASK (1<<3)
288 #define SMA1303_VREF_NORMAL_MODE (0<<3)
289 #define SMA1303_VREF_V_MON_MODE (1<<3)
295 #define SMA1303_SPK_OFF_SLOPE_MASK (3<<0)
297 #define SMA1303_SPK_OFF_SLOPE_FAST (3<<0)
300 #define SMA1303_VOL_SLOPE_MASK (3<<6)
304 #define SMA1303_VOL_SLOPE_FAST (3<<6)
306 #define SMA1303_MUTE_SLOPE_MASK (3<<4)
307 #define SMA1303_MUTE_SLOPE_OFF (0<<4)
308 #define SMA1303_MUTE_SLOPE_SLOW (1<<4)
309 #define SMA1303_MUTE_SLOPE_MID (2<<4)
310 #define SMA1303_MUTE_SLOPE_FAST (3<<4)
320 #define SMA1303_SPK_STEREO (4<<2)
330 #define SMA1303_LR_DATA_SW_MASK (1<<4)
331 #define SMA1303_LR_DATA_SW_NORMAL (0<<4)
332 #define SMA1303_LR_DATA_SW_SWAP (1<<4)
339 #define SMA1303_INPUT_MASK (3<<6)
343 #define SMA1303_INPUT_INFI_DB (3<<6)
344 #define SMA1303_INPUT_R_MASK (3<<4)
345 #define SMA1303_INPUT_R_0_DB (0<<4)
346 #define SMA1303_INPUT_R_M6_DB (1<<4)
347 #define SMA1303_INPUT_R_M12_DB (2<<4)
348 #define SMA1303_INPUT_R_INFI_DB (3<<4)
351 #define SMA1303_SPK_HYSFB_MASK (3<<6)
355 #define SMA1303_HYSFB_226K (3<<6)
373 #define SMA1303_SPK_OCP_DIS_MASK (1<<3)
374 #define SMA1303_SPK_OCP_ENABLE (0<<3)
375 #define SMA1303_SPK_OCP_DISABLE (1<<3)
381 #define SMA1303_OTP_MODE_MASK (3<<0)
385 #define SMA1303_SHUT_THR1_SHUT_THR2 (3<<0)
388 #define SMA1303_SPK_HSDM_BP_MASK (1<<4)
389 #define SMA1303_SPK_HSDM_ENABLE (0<<4)
390 #define SMA1303_SPK_HSDM_BYPASS (1<<4)
401 #define SMA1303_LOW_POWER_MODE_MASK (1<<3)
402 #define SMA1303_LOW_POWER_MODE_DISABLE (0<<3)
403 #define SMA1303_LOW_POWER_MODE_ENABLE (1<<3)
405 #define SMA1303_THERMAL_ADJUST_MASK (3<<5)
415 #define SMA1303_TRM_LVL_MASK (1<<4)
416 #define SMA1303_TRM_LVL_NORMAL (0<<4)
417 #define SMA1303_TRM_LVL_LOW (1<<4)
419 #define SMA1303_LOW_OCL_MODE_MASK (1<<3)
420 #define SMA1303_LOW_OCL_MODE (0<<3)
421 #define SMA1303_NORMAL_OCL_MODE (1<<3)
433 #define SMA1303_FLT_VDD_GAIN_MASK (15<<4)
434 #define SMA1303_FLT_VDD_GAIN_2P40 (0<<4)
435 #define SMA1303_FLT_VDD_GAIN_2P45 (1<<4)
436 #define SMA1303_FLT_VDD_GAIN_2P50 (2<<4)
437 #define SMA1303_FLT_VDD_GAIN_2P55 (3<<4)
438 #define SMA1303_FLT_VDD_GAIN_2P60 (4<<4)
439 #define SMA1303_FLT_VDD_GAIN_2P65 (5<<4)
440 #define SMA1303_FLT_VDD_GAIN_2P70 (6<<4)
441 #define SMA1303_FLT_VDD_GAIN_2P75 (7<<4)
442 #define SMA1303_FLT_VDD_GAIN_2P80 (8<<4)
443 #define SMA1303_FLT_VDD_GAIN_2P85 (9<<4)
444 #define SMA1303_FLT_VDD_GAIN_2P90 (10<<4)
445 #define SMA1303_FLT_VDD_GAIN_2P95 (11<<4)
446 #define SMA1303_FLT_VDD_GAIN_3P00 (12<<4)
447 #define SMA1303_FLT_VDD_GAIN_3P05 (13<<4)
448 #define SMA1303_FLT_VDD_GAIN_3P10 (14<<4)
449 #define SMA1303_FLT_VDD_GAIN_3P15 (15<<4)
460 #define SMA1303_TRM_VBST_5P8 (3<<2)
461 #define SMA1303_TRM_VBST_5P9 (4<<2)
475 #define SMA1303_PLL_DIV_MASK (3<<4)
476 #define SMA1303_PLL_OUT (0<<4)
477 #define SMA1303_PLL_OUT_2 (1<<4)
478 #define SMA1303_PLL_OUT_4 (2<<4)
479 #define SMA1303_PLL_OUT_8 (3<<4)
481 #define SMA1303_PLL_REF_CLK_MASK (1<<3)
482 #define SMA1303_PLL_REF_CLK1 (0<<3)
483 #define SMA1303_PLL_SCK (1<<3)
506 #define SMA1303_SDO_OUTPUT_MASK (1<<3)
507 #define SMA1303_NORMAL_OUT (0<<3)
508 #define SMA1303_HIGH_Z_OUT (1<<3)
522 #define SMA1303_O_FMT_TDM (4<<5)
524 #define SMA1303_SCK_RATE_MASK (1<<3)
525 #define SMA1303_SCK_64FS (0<<3)
526 #define SMA1303_SCK_32FS (2<<3)
541 #define SMA1303_TDM_SLOT1_RX_POS_MASK (7<<3)
542 #define SMA1303_TDM_SLOT1_RX_POS_0 (0<<3)
543 #define SMA1303_TDM_SLOT1_RX_POS_1 (1<<3)
544 #define SMA1303_TDM_SLOT1_RX_POS_2 (2<<3)
545 #define SMA1303_TDM_SLOT1_RX_POS_3 (3<<3)
546 #define SMA1303_TDM_SLOT1_RX_POS_4 (4<<3)
547 #define SMA1303_TDM_SLOT1_RX_POS_5 (5<<3)
548 #define SMA1303_TDM_SLOT1_RX_POS_6 (6<<3)
549 #define SMA1303_TDM_SLOT1_RX_POS_7 (7<<3)
555 #define SMA1303_TDM_SLOT2_RX_POS_3 (3<<0)
556 #define SMA1303_TDM_SLOT2_RX_POS_4 (4<<0)
570 #define SMA1303_TDM_SLOT1_TX_POS_MASK (7<<3)
571 #define SMA1303_TDM_SLOT1_TX_POS_0 (0<<3)
572 #define SMA1303_TDM_SLOT1_TX_POS_1 (1<<3)
573 #define SMA1303_TDM_SLOT1_TX_POS_2 (2<<3)
574 #define SMA1303_TDM_SLOT1_TX_POS_3 (3<<3)
575 #define SMA1303_TDM_SLOT1_TX_POS_4 (4<<3)
576 #define SMA1303_TDM_SLOT1_TX_POS_5 (5<<3)
577 #define SMA1303_TDM_SLOT1_TX_POS_6 (6<<3)
578 #define SMA1303_TDM_SLOT1_TX_POS_7 (7<<3)
584 #define SMA1303_TDM_SLOT2_TX_POS_3 (3<<0)
585 #define SMA1303_TDM_SLOT2_TX_POS_4 (4<<0)
596 #define SMA1303_OCP_BST_STATUS (1<<4)
603 #define SMA1303_DEVICE_ID (2<<3)
605 #define SMA1303_REV_NUM_STATUS (3<<0)