linux/sound/soc/codecs/ad193x.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * AD193X Audio Codec driver
 *
 * Copyright 2010 Analog Devices Inc.
 */

#ifndef __AD193X_H__
#define __AD193X_H__

#include <linux/regmap.h>

struct device;

enum ad193x_type {};

extern const struct regmap_config ad193x_regmap_config;
int ad193x_probe(struct device *dev, struct regmap *regmap,
		 enum ad193x_type type);

#define AD193X_PLL_CLK_CTRL0
#define AD193X_PLL_POWERDOWN
#define AD193X_PLL_INPUT_MASK
#define AD193X_PLL_INPUT_256
#define AD193X_PLL_INPUT_384
#define AD193X_PLL_INPUT_512
#define AD193X_PLL_INPUT_768
#define AD193X_PLL_CLK_CTRL1
#define AD193X_PLL_SRC_MASK
#define AD193X_PLL_DAC_SRC_PLL
#define AD193X_PLL_DAC_SRC_MCLK
#define AD193X_PLL_CLK_SRC_PLL
#define AD193X_PLL_CLK_SRC_MCLK
#define AD193X_DAC_CTRL0
#define AD193X_DAC_POWERDOWN
#define AD193X_DAC_SR_MASK
#define AD193X_DAC_SR_48
#define AD193X_DAC_SR_96
#define AD193X_DAC_SR_192
#define AD193X_DAC_SERFMT_MASK
#define AD193X_DAC_SERFMT_STEREO
#define AD193X_DAC_SERFMT_TDM
#define AD193X_DAC_CTRL1
#define AD193X_DAC_CHAN_SHFT
#define AD193X_DAC_CHAN_MASK
#define AD193X_DAC_LCR_MASTER
#define AD193X_DAC_BCLK_MASTER
#define AD193X_DAC_LEFT_HIGH
#define AD193X_DAC_BCLK_INV
#define AD193X_DAC_FMT_MASK
#define AD193X_DAC_CTRL2
#define AD193X_DAC_WORD_LEN_SHFT
#define AD193X_DAC_WORD_LEN_MASK
#define AD193X_DAC_MASTER_MUTE
#define AD193X_DAC_CHNL_MUTE
#define AD193X_DACL1_MUTE
#define AD193X_DACR1_MUTE
#define AD193X_DACL2_MUTE
#define AD193X_DACR2_MUTE
#define AD193X_DACL3_MUTE
#define AD193X_DACR3_MUTE
#define AD193X_DACL4_MUTE
#define AD193X_DACR4_MUTE
#define AD193X_DAC_L1_VOL
#define AD193X_DAC_R1_VOL
#define AD193X_DAC_L2_VOL
#define AD193X_DAC_R2_VOL
#define AD193X_DAC_L3_VOL
#define AD193X_DAC_R3_VOL
#define AD193X_DAC_L4_VOL
#define AD193X_DAC_R4_VOL
#define AD193X_ADC_CTRL0
#define AD193X_ADC_POWERDOWN
#define AD193X_ADC_HIGHPASS_FILTER
#define AD193X_ADCL1_MUTE
#define AD193X_ADCR1_MUTE
#define AD193X_ADCL2_MUTE
#define AD193X_ADCR2_MUTE
#define AD193X_ADC_CTRL1
#define AD193X_ADC_SERFMT_MASK
#define AD193X_ADC_SERFMT_STEREO
#define AD193X_ADC_SERFMT_TDM
#define AD193X_ADC_SERFMT_AUX
#define AD193X_ADC_WORD_LEN_MASK
#define AD193X_ADC_CTRL2
#define AD193X_ADC_CHAN_SHFT
#define AD193X_ADC_CHAN_MASK
#define AD193X_ADC_LCR_MASTER
#define AD193X_ADC_BCLK_MASTER
#define AD193X_ADC_LEFT_HIGH
#define AD193X_ADC_BCLK_INV
#define AD193X_ADC_FMT_MASK

#define AD193X_2_CHANNELS
#define AD193X_4_CHANNELS
#define AD193X_8_CHANNELS
#define AD193X_16_CHANNELS

#define AD193X_NUM_REGS

#define AD193X_SYSCLK_PLL
#define AD193X_SYSCLK_MCLK

#endif