linux/sound/soc/codecs/rt715-sdca.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * rt715-sdca.h -- RT715 ALSA SoC audio driver header
 *
 * Copyright(c) 2020 Realtek Semiconductor Corp.
 */

#ifndef __RT715_SDCA_H__
#define __RT715_SDCA_H__

#include <linux/regmap.h>
#include <linux/soundwire/sdw.h>
#include <linux/soundwire/sdw_type.h>
#include <sound/soc.h>
#include <linux/workqueue.h>
#include <linux/device.h>

struct rt715_sdca_priv {};

struct rt715_sdca_kcontrol_private {};

/* MIPI Register */
#define RT715_INT_CTRL
#define RT715_INT_MASK

/* NID */
#define RT715_AUDIO_FUNCTION_GROUP
#define RT715_MIC_ADC
#define RT715_LINE_ADC
#define RT715_MIX_ADC
#define RT715_DMIC1
#define RT715_DMIC2
#define RT715_MIC1
#define RT715_MIC2
#define RT715_LINE1
#define RT715_LINE2
#define RT715_DMIC3
#define RT715_DMIC4
#define RT715_VENDOR_REG
#define RT715_MUX_IN1
#define RT715_MUX_IN2
#define RT715_MUX_IN3
#define RT715_MUX_IN4
#define RT715_MIX_ADC2
#define RT715_INLINE_CMD
#define RT715_VENDOR_HDA_CTL

/* Index (NID:20h) */
#define RT715_PRODUCT_NUM
#define RT715_IRQ_CTRL
#define RT715_AD_FUNC_EN
#define RT715_REV_1
#define RT715_SDW_INPUT_SEL
#define RT715_DFLL_VAD
#define RT715_EXT_DMIC_CLK_CTRL2

/* Index (NID:61h) */
#define RT715_HDA_LEGACY_MUX_CTL1

/* SDCA (Function) */
#define FUN_JACK_CODEC
#define FUN_MIC_ARRAY
#define FUN_HID
/* SDCA (Entity) */
#define RT715_SDCA_ST_EN
#define RT715_SDCA_CS_FREQ_IND_EN
#define RT715_SDCA_FU_ADC8_9_VOL
#define RT715_SDCA_SMPU_TRIG_ST_EN
#define RT715_SDCA_FU_ADC10_11_VOL
#define RT715_SDCA_FU_ADC7_27_VOL
#define RT715_SDCA_FU_AMIC_GAIN_EN
#define RT715_SDCA_FU_DMIC_GAIN_EN
#define RT715_SDCA_CX_CLK_SEL_EN
#define RT715_SDCA_CREQ_POW_EN
/* SDCA (Control) */
#define RT715_SDCA_ST_CTRL
#define RT715_SDCA_CX_CLK_SEL_CTRL
#define RT715_SDCA_REQ_POW_CTRL
#define RT715_SDCA_FU_MUTE_CTRL
#define RT715_SDCA_FU_VOL_CTRL
#define RT715_SDCA_FU_DMIC_GAIN_CTRL
#define RT715_SDCA_FREQ_IND_CTRL
#define RT715_SDCA_SMPU_TRIG_EN_CTRL
#define RT715_SDCA_SMPU_TRIG_ST_CTRL
/* SDCA (Channel) */
#define CH_00
#define CH_01
#define CH_02
#define CH_03
#define CH_04
#define CH_05
#define CH_06
#define CH_07
#define CH_08

#define RT715_SDCA_DB_STEP

enum {};

int rt715_sdca_io_init(struct device *dev, struct sdw_slave *slave);
int rt715_sdca_init(struct device *dev, struct regmap *mbq_regmap,
	struct regmap *regmap, struct sdw_slave *slave);

#endif /* __RT715_SDCA_H__ */