linux/sound/soc/codecs/rt298.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * rt298.h  --  RT298 ALSA SoC audio driver
 *
 * Copyright 2011 Realtek Microelectronics
 * Author: Johnny Hsu <[email protected]>
 */

#ifndef __RT298_H__
#define __RT298_H__

#define VERB_CMD(V, N, D)

#define RT298_AUDIO_FUNCTION_GROUP
#define RT298_DAC_OUT1
#define RT298_DAC_OUT2
#define RT298_DIG_CVT
#define RT298_ADC_IN1
#define RT298_ADC_IN2
#define RT298_MIXER_IN
#define RT298_MIXER_OUT1
#define RT298_MIXER_OUT2
#define RT298_DMIC1
#define RT298_DMIC2
#define RT298_SPK_OUT
#define RT298_MIC1
#define RT298_LINE1
#define RT298_BEEP
#define RT298_SPDIF
#define RT298_VENDOR_REGISTERS
#define RT298_HP_OUT
#define RT298_MIXER_IN1
#define RT298_MIXER_IN2
#define RT298_INLINE_CMD

#define RT298_SET_PIN_SFT
#define RT298_SET_PIN_ENABLE
#define RT298_SET_PIN_DISABLE
#define RT298_SET_EAPD_HIGH
#define RT298_SET_EAPD_LOW

#define RT298_MUTE_SFT

/* Verb commands */
#define RT298_GET_PARAM(NID, PARAM)
#define RT298_SET_POWER(NID)
#define RT298_SET_AUDIO_POWER
#define RT298_SET_HPO_POWER
#define RT298_SET_SPK_POWER
#define RT298_SET_DMIC1_POWER
#define RT298_SPK_MUX
#define RT298_HPO_MUX
#define RT298_ADC0_MUX
#define RT298_ADC1_MUX
#define RT298_SET_MIC1
#define RT298_SET_PIN_HPO
#define RT298_SET_PIN_SPK
#define RT298_SET_PIN_DMIC1
#define RT298_SET_PIN_SPDIF
#define RT298_SET_PIN_DIG_CVT
#define RT298_SPK_EAPD
#define RT298_SET_AMP_GAIN_HPO
#define RT298_SET_AMP_GAIN_ADC_IN1
#define RT298_SET_AMP_GAIN_ADC_IN2
#define RT298_GET_HP_SENSE
#define RT298_GET_MIC1_SENSE
#define RT298_SET_DMIC2_DEFAULT
#define RT298_SET_SPDIF_DEFAULT
#define RT298_DACL_GAIN
#define RT298_DACR_GAIN
#define RT298_ADCL_GAIN
#define RT298_ADCR_GAIN
#define RT298_MIC_GAIN
#define RT298_SPOL_GAIN
#define RT298_SPOR_GAIN
#define RT298_HPOL_GAIN
#define RT298_HPOR_GAIN
#define RT298_F_DAC_SWITCH
#define RT298_F_RECMIX_SWITCH
#define RT298_REC_MIC_SWITCH
#define RT298_REC_I2S_SWITCH
#define RT298_REC_LINE_SWITCH
#define RT298_REC_BEEP_SWITCH
#define RT298_DAC_FORMAT
#define RT298_ADC_FORMAT
#define RT298_COEF_INDEX
#define RT298_PROC_COEF
#define RT298_UNSOLICITED_INLINE_CMD
#define RT298_UNSOLICITED_HP_OUT
#define RT298_UNSOLICITED_MIC1

/* Index registers */
#define RT298_A_BIAS_CTRL1
#define RT298_A_BIAS_CTRL2
#define RT298_POWER_CTRL1
#define RT298_A_BIAS_CTRL3
#define RT298_D_FILTER_CTRL
#define RT298_POWER_CTRL2
#define RT298_I2S_CTRL1
#define RT298_I2S_CTRL2
#define RT298_CLK_DIV
#define RT298_DC_GAIN
#define RT298_POWER_CTRL3
#define RT298_MIC1_DET_CTRL
#define RT298_MISC_CTRL1
#define RT298_IRQ_CTRL
#define RT298_WIND_FILTER_CTRL
#define RT298_PLL_CTRL1
#define RT298_VAD_CTRL
#define RT298_CBJ_CTRL1
#define RT298_CBJ_CTRL2
#define RT298_PLL_CTRL
#define RT298_DEPOP_CTRL1
#define RT298_DEPOP_CTRL2
#define RT298_DEPOP_CTRL3
#define RT298_DEPOP_CTRL4
#define RT298_IRQ_FLAG_CTRL

/* SPDIF (0x06) */
#define RT298_SPDIF_SEL_SFT
#define RT298_SPDIF_SEL_PCM0
#define RT298_SPDIF_SEL_PCM1
#define RT298_SPDIF_SEL_SPOUT
#define RT298_SPDIF_SEL_PP

/* RECMIX (0x0b) */
#define RT298_M_REC_BEEP_SFT
#define RT298_M_REC_LINE1_SFT
#define RT298_M_REC_MIC1_SFT
#define RT298_M_REC_I2S_SFT

/* Front (0x0c) */
#define RT298_M_FRONT_DAC_SFT
#define RT298_M_FRONT_REC_SFT

/* SPK-OUT (0x14) */
#define RT298_M_SPK_MUX_SFT
#define RT298_SPK_SEL_MASK
#define RT298_SPK_SEL_SFT
#define RT298_SPK_SEL_F
#define RT298_SPK_SEL_S

/* HP-OUT (0x21) */
#define RT298_M_HP_MUX_SFT
#define RT298_HP_SEL_MASK
#define RT298_HP_SEL_SFT
#define RT298_HP_SEL_F
#define RT298_HP_SEL_S

/* ADC (0x22) (0x23) */
#define RT298_ADC_SEL_MASK
#define RT298_ADC_SEL_SFT
#define RT298_ADC_SEL_SURR
#define RT298_ADC_SEL_FRONT
#define RT298_ADC_SEL_DMIC
#define RT298_ADC_SEL_BEEP
#define RT298_ADC_SEL_LINE1
#define RT298_ADC_SEL_I2S
#define RT298_ADC_SEL_MIC1

#define RT298_SCLK_S_MCLK
#define RT298_SCLK_S_PLL

enum {};

#endif /* __RT298_H__ */