linux/sound/soc/codecs/da732x.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * da732x.h -- Dialog DA732X ALSA SoC Audio Driver Header File
 *
 * Copyright (C) 2012 Dialog Semiconductor GmbH
 *
 * Author: Michal Hajduk <[email protected]>
 */

#ifndef __DA732X_H_
#define __DA732X_H_

#include <sound/soc.h>

/* General */
#define DA732X_U8_MASK
#define DA732X_4BYTES
#define DA732X_3BYTES
#define DA732X_2BYTES
#define DA732X_1BYTE
#define DA732X_1BYTE_SHIFT
#define DA732X_2BYTES_SHIFT
#define DA732X_3BYTES_SHIFT
#define DA732X_4BYTES_SHIFT

#define DA732X_DACS_DIS
#define DA732X_HP_DIS
#define DA732X_CLEAR_REG

/* Calibration */
#define DA732X_DAC_OFFSET_STEP
#define DA732X_OUTPUT_OFFSET_STEP
#define DA732X_HP_OUT_TRIM_VAL
#define DA732X_WAIT_FOR_STABILIZATION
#define DA732X_HPL_DAC
#define DA732X_HPR_DAC
#define DA732X_HP_DACS
#define DA732X_HPL_AMP
#define DA732X_HPR_AMP
#define DA732X_HP_AMPS

/* Clock settings */
#define DA732X_STARTUP_DELAY
#define DA732X_PLL_OUT_196608
#define DA732X_PLL_OUT_180634
#define DA732X_PLL_OUT_SRM
#define DA732X_MCLK_10MHZ
#define DA732X_MCLK_20MHZ
#define DA732X_MCLK_40MHZ
#define DA732X_MCLK_54MHZ
#define DA732X_MCLK_VAL_0_10MHZ
#define DA732X_MCLK_VAL_10_20MHZ
#define DA732X_MCLK_VAL_20_40MHZ
#define DA732X_MCLK_VAL_40_54MHZ
#define DA732X_DAI_ID1
#define DA732X_DAI_ID2
#define DA732X_SRCCLK_PLL
#define DA732X_SRCCLK_MCLK

#define DA732X_LIN_LP_VOL
#define DA732X_LP_VOL

/* Kcontrols */
#define DA732X_DAC_EN_MAX
#define DA732X_ADCL_MUX_MAX
#define DA732X_ADCR_MUX_MAX
#define DA732X_HPF_MODE_MAX
#define DA732X_HPF_MODE_SHIFT
#define DA732X_HPF_MUSIC_SHIFT
#define DA732X_HPF_MUSIC_MAX
#define DA732X_HPF_VOICE_SHIFT
#define DA732X_HPF_VOICE_MAX
#define DA732X_EQ_EN_MAX
#define DA732X_HPF_VOICE
#define DA732X_HPF_MUSIC
#define DA732X_HPF_DISABLED
#define DA732X_NO_INVERT
#define DA732X_INVERT
#define DA732X_SWITCH_MAX
#define DA732X_ENABLE_CP
#define DA732X_DISABLE_CP
#define DA732X_DISABLE_ALL_CLKS
#define DA732X_RESET_ADCS

/* dB values */
#define DA732X_MIC_VOL_DB_MIN
#define DA732X_MIC_VOL_DB_INC
#define DA732X_MIC_PRE_VOL_DB_MIN
#define DA732X_MIC_PRE_VOL_DB_INC
#define DA732X_AUX_VOL_DB_MIN
#define DA732X_AUX_VOL_DB_INC
#define DA732X_HP_VOL_DB_MIN
#define DA732X_HP_VOL_DB_INC
#define DA732X_LIN2_VOL_DB_MIN
#define DA732X_LIN2_VOL_DB_INC
#define DA732X_LIN3_VOL_DB_MIN
#define DA732X_LIN3_VOL_DB_INC
#define DA732X_LIN4_VOL_DB_MIN
#define DA732X_LIN4_VOL_DB_INC
#define DA732X_EQ_BAND_VOL_DB_MIN
#define DA732X_EQ_BAND_VOL_DB_INC
#define DA732X_DAC_VOL_DB_MIN
#define DA732X_DAC_VOL_DB_INC
#define DA732X_ADC_VOL_DB_MIN
#define DA732X_ADC_VOL_DB_INC
#define DA732X_EQ_OVERALL_VOL_DB_MIN
#define DA732X_EQ_OVERALL_VOL_DB_INC

enum da732x_sysctl {};

#endif /* __DA732X_H_ */