linux/sound/soc/codecs/cs4234.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * ALSA SoC Audio driver for CS4234 codec
 *
 * Copyright (C) 2020 Cirrus Logic, Inc. and
 *                    Cirrus Logic International Semiconductor Ltd.
 */

#ifndef CS4234_H
#define CS4234_H

#define CS4234_DEVID_AB
#define CS4234_DEVID_CD
#define CS4234_DEVID_EF
#define CS4234_REVID

#define CS4234_CLOCK_SP
#define CS4234_BASE_RATE_MASK
#define CS4234_BASE_RATE_SHIFT
#define CS4234_SPEED_MODE_MASK
#define CS4234_SPEED_MODE_SHIFT
#define CS4234_MCLK_RATE_MASK
#define CS4234_MCLK_RATE_SHIFT

#define CS4234_SAMPLE_WIDTH
#define CS4234_SDOUTX_SW_MASK
#define CS4234_SDOUTX_SW_SHIFT
#define CS4234_INPUT_SW_MASK
#define CS4234_INPUT_SW_SHIFT
#define CS4234_LOW_LAT_SW_MASK
#define CS4234_LOW_LAT_SW_SHIFT
#define CS4234_DAC5_SW_MASK
#define CS4234_DAC5_SW_SHIFT

#define CS4234_SP_CTRL
#define CS4234_INVT_SCLK_MASK
#define CS4234_INVT_SCLK_SHIFT
#define CS4234_DAC5_SRC_MASK
#define CS4234_DAC5_SRC_SHIFT
#define CS4234_SP_FORMAT_MASK
#define CS4234_SP_FORMAT_SHIFT
#define CS4234_SDO_CHAIN_MASK
#define CS4234_SDO_CHAIN_SHIFT
#define CS4234_MST_SLV_MASK
#define CS4234_MST_SLV_SHIFT

#define CS4234_SP_DATA_SEL
#define CS4234_DAC14_SRC_MASK
#define CS4234_DAC14_SRC_SHIFT
#define CS4234_LL_SRC_MASK
#define CS4234_LL_SRC_SHIFT

#define CS4234_SDIN1_MASK1
#define CS4234_SDIN1_MASK2
#define CS4234_SDIN2_MASK1
#define CS4234_SDIN2_MASK2

#define CS4234_TPS_CTRL
#define CS4234_TPS_MODE_MASK
#define CS4234_TPS_MODE_SHIFT
#define CS4234_TPS_OFST_MASK
#define CS4234_TPS_OFST_SHIFT
#define CS4234_GRP_DELAY_MASK
#define CS4234_GRP_DELAY_SHIFT

#define CS4234_ADC_CTRL1
#define CS4234_VA_SEL_MASK
#define CS4234_VA_SEL_SHIFT
#define CS4234_ENA_HPF_MASK
#define CS4234_ENA_HPF_SHIFT
#define CS4234_INV_ADC_MASK
#define CS4234_INV_ADC4_MASK
#define CS4234_INV_ADC4_SHIFT
#define CS4234_INV_ADC3_MASK
#define CS4234_INV_ADC3_SHIFT
#define CS4234_INV_ADC2_MASK
#define CS4234_INV_ADC2_SHIFT
#define CS4234_INV_ADC1_MASK
#define CS4234_INV_ADC1_SHIFT

#define CS4234_ADC_CTRL2
#define CS4234_MUTE_ADC4_MASK
#define CS4234_MUTE_ADC4_SHIFT
#define CS4234_MUTE_ADC3_MASK
#define CS4234_MUTE_ADC3_SHIFT
#define CS4234_MUTE_ADC2_MASK
#define CS4234_MUTE_ADC2_SHIFT
#define CS4234_MUTE_ADC1_MASK
#define CS4234_MUTE_ADC1_SHIFT
#define CS4234_PDN_ADC4_MASK
#define CS4234_PDN_ADC4_SHIFT
#define CS4234_PDN_ADC3_MASK
#define CS4234_PDN_ADC3_SHIFT
#define CS4234_PDN_ADC2_MASK
#define CS4234_PDN_ADC2_SHIFT
#define CS4234_PDN_ADC1_MASK
#define CS4234_PDN_ADC1_SHIFT

#define CS4234_LOW_LAT_CTRL1
#define CS4234_LL_NG_MASK
#define CS4234_LL_NG_SHIFT
#define CS4234_INV_LL_MASK
#define CS4234_INV_LL4_MASK
#define CS4234_INV_LL4_SHIFT
#define CS4234_INV_LL3_MASK
#define CS4234_INV_LL3_SHIFT
#define CS4234_INV_LL2_MASK
#define CS4234_INV_LL2_SHIFT
#define CS4234_INV_LL1_MASK
#define CS4234_INV_LL1_SHIFT

#define CS4234_DAC_CTRL1
#define CS4234_DAC14_NG_MASK
#define CS4234_DAC14_NG_SHIFT
#define CS4234_DAC14_DE_MASK
#define CS4234_DAC14_DE_SHIFT
#define CS4234_DAC5_DE_MASK
#define CS4234_DAC5_DE_SHIFT
#define CS4234_DAC5_MVC_MASK
#define CS4234_DAC5_MVC_SHIFT
#define CS4234_DAC5_CFG_FLTR_MASK
#define CS4234_DAC5_CFG_FLTR_SHIFT

#define CS4234_DAC_CTRL2
#define CS4234_DAC5_NG_MASK
#define CS4234_DAC5_NG_SHIFT
#define CS4234_INV_DAC_MASK
#define CS4234_INV_DAC5_MASK
#define CS4234_INV_DAC5_SHIFT
#define CS4234_INV_DAC4_MASK
#define CS4234_INV_DAC4_SHIFT
#define CS4234_INV_DAC3_MASK
#define CS4234_INV_DAC3_SHIFT
#define CS4234_INV_DAC2_MASK
#define CS4234_INV_DAC2_SHIFT
#define CS4234_INV_DAC1_MASK
#define CS4234_INV_DAC1_SHIFT

#define CS4234_DAC_CTRL3
#define CS4234_DAC5_ATT_MASK
#define CS4234_DAC5_ATT_SHIFT
#define CS4234_DAC14_ATT_MASK
#define CS4234_DAC14_ATT_SHIFT
#define CS4234_MUTE_LL_MASK
#define CS4234_MUTE_LL_SHIFT
#define CS4234_MUTE_DAC5_MASK
#define CS4234_MUTE_DAC5_SHIFT
#define CS4234_MUTE_DAC4_MASK
#define CS4234_MUTE_DAC4_SHIFT
#define CS4234_MUTE_DAC3_MASK
#define CS4234_MUTE_DAC3_SHIFT
#define CS4234_MUTE_DAC2_MASK
#define CS4234_MUTE_DAC2_SHIFT
#define CS4234_MUTE_DAC1_MASK
#define CS4234_MUTE_DAC1_SHIFT

#define CS4234_DAC_CTRL4
#define CS4234_VQ_RAMP_MASK
#define CS4234_VQ_RAMP_SHIFT
#define CS4234_TPS_GAIN_MASK
#define CS4234_TPS_GAIN_SHIFT
#define CS4234_PDN_DAC5_MASK
#define CS4234_PDN_DAC5_SHIFT
#define CS4234_PDN_DAC4_MASK
#define CS4234_PDN_DAC4_SHIFT
#define CS4234_PDN_DAC3_MASK
#define CS4234_PDN_DAC3_SHIFT
#define CS4234_PDN_DAC2_MASK
#define CS4234_PDN_DAC2_SHIFT
#define CS4234_PDN_DAC1_MASK
#define CS4234_PDN_DAC1_SHIFT

#define CS4234_VOLUME_MODE
#define CS4234_MUTE_DELAY_MASK
#define CS4234_MUTE_DELAY_SHIFT
#define CS4234_MIN_DELAY_MASK
#define CS4234_MIN_DELAY_SHIFT
#define CS4234_MAX_DELAY_MASK
#define CS4234_MAX_DELAY_SHIFT

#define CS4234_MASTER_VOL
#define CS4234_DAC1_VOL
#define CS4234_DAC2_VOL
#define CS4234_DAC3_VOL
#define CS4234_DAC4_VOL
#define CS4234_DAC5_VOL

#define CS4234_INT_CTRL
#define CS4234_INT_MODE_MASK
#define CS4234_INT_MODE_SHIFT
#define CS4234_INT_PIN_MASK
#define CS4234_INT_PIN_SHIFT

#define CS4234_INT_MASK1
#define CS4234_MSK_TST_MODE_MASK
#define CS4234_MSK_TST_MODE_ERR_SHIFT
#define CS4234_MSK_SP_ERR_MASK
#define CS4234_MSK_SP_ERR_SHIFT
#define CS4234_MSK_CLK_ERR_MASK
#define CS4234_MSK_CLK_ERR_SHIFT
#define CS4234_MSK_ADC4_OVFL_MASK
#define CS4234_MSK_ADC4_OVFL_SHIFT
#define CS4234_MSK_ADC3_OVFL_MASK
#define CS4234_MSK_ADC3_OVFL_SHIFT
#define CS4234_MSK_ADC2_OVFL_MASK
#define CS4234_MSK_ADC2_OVFL_SHIFT
#define CS4234_MSK_ADC1_OVFL_MASK
#define CS4234_MSK_ADC1_OVFL_SHIFT

#define CS4234_INT_MASK2
#define CS4234_MSK_DAC5_CLIP_MASK
#define CS4234_MSK_DAC5_CLIP_SHIFT
#define CS4234_MSK_DAC4_CLIP_MASK
#define CS4234_MSK_DAC4_CLIP_SHIFT
#define CS4234_MSK_DAC3_CLIP_MASK
#define CS4234_MSK_DAC3_CLIP_SHIFT
#define CS4234_MSK_DAC2_CLIP_MASK
#define CS4234_MSK_DAC2_CLIP_SHIFT
#define CS4234_MSK_DAC1_CLIP_MASK
#define CS4234_MSK_DAC1_CLIP_SHIFT

#define CS4234_INT_NOTIFY1
#define CS4234_TST_MODE_MASK
#define CS4234_TST_MODE_SHIFT
#define CS4234_SP_ERR_MASK
#define CS4234_SP_ERR_SHIFT
#define CS4234_CLK_MOD_ERR_MASK
#define CS4234_CLK_MOD_ERR_SHIFT
#define CS4234_ADC4_OVFL_MASK
#define CS4234_ADC4_OVFL_SHIFT
#define CS4234_ADC3_OVFL_MASK
#define CS4234_ADC3_OVFL_SHIFT
#define CS4234_ADC2_OVFL_MASK
#define CS4234_ADC2_OVFL_SHIFT
#define CS4234_ADC1_OVFL_MASK
#define CS4234_ADC1_OVFL_SHIFT

#define CS4234_INT_NOTIFY2
#define CS4234_DAC5_CLIP_MASK
#define CS4234_DAC5_CLIP_SHIFT
#define CS4234_DAC4_CLIP_MASK
#define CS4234_DAC4_CLIP_SHIFT
#define CS4234_DAC3_CLIP_MASK
#define CS4234_DAC3_CLIP_SHIFT
#define CS4234_DAC2_CLIP_MASK
#define CS4234_DAC2_CLIP_SHIFT
#define CS4234_DAC1_CLIP_MASK
#define CS4234_DAC1_CLIP_SHIFT

#define CS4234_MAX_REGISTER

#define CS4234_SUPPORTED_ID
#define CS4234_BOOT_TIME_US
#define CS4234_HOLD_RESET_TIME_US
#define CS4234_VQ_CHARGE_MS

#define CS4234_PCM_RATES

#define CS4234_FORMATS

enum cs4234_supplies {};

enum cs4234_va_sel {};

enum cs4234_sp_format {};

enum cs4234_base_rate_advisory {};

#endif