linux/sound/soc/codecs/wm9081.h

/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef WM9081_H
#define WM9081_H

/*
 * wm9081.c  --  WM9081 ALSA SoC Audio driver
 *
 * Author: Mark Brown
 *
 * Copyright 2009 Wolfson Microelectronics plc
 */

#include <sound/soc.h>

/*
 * SYSCLK sources
 */
#define WM9081_SYSCLK_MCLK
#define WM9081_SYSCLK_FLL_MCLK

/*
 * Register values.
 */
#define WM9081_SOFTWARE_RESET
#define WM9081_ANALOGUE_LINEOUT
#define WM9081_ANALOGUE_SPEAKER_PGA
#define WM9081_VMID_CONTROL
#define WM9081_BIAS_CONTROL_1
#define WM9081_ANALOGUE_MIXER
#define WM9081_ANTI_POP_CONTROL
#define WM9081_ANALOGUE_SPEAKER_1
#define WM9081_ANALOGUE_SPEAKER_2
#define WM9081_POWER_MANAGEMENT
#define WM9081_CLOCK_CONTROL_1
#define WM9081_CLOCK_CONTROL_2
#define WM9081_CLOCK_CONTROL_3
#define WM9081_FLL_CONTROL_1
#define WM9081_FLL_CONTROL_2
#define WM9081_FLL_CONTROL_3
#define WM9081_FLL_CONTROL_4
#define WM9081_FLL_CONTROL_5
#define WM9081_AUDIO_INTERFACE_1
#define WM9081_AUDIO_INTERFACE_2
#define WM9081_AUDIO_INTERFACE_3
#define WM9081_AUDIO_INTERFACE_4
#define WM9081_INTERRUPT_STATUS
#define WM9081_INTERRUPT_STATUS_MASK
#define WM9081_INTERRUPT_POLARITY
#define WM9081_INTERRUPT_CONTROL
#define WM9081_DAC_DIGITAL_1
#define WM9081_DAC_DIGITAL_2
#define WM9081_DRC_1
#define WM9081_DRC_2
#define WM9081_DRC_3
#define WM9081_DRC_4
#define WM9081_WRITE_SEQUENCER_1
#define WM9081_WRITE_SEQUENCER_2
#define WM9081_MW_SLAVE_1
#define WM9081_EQ_1
#define WM9081_EQ_2
#define WM9081_EQ_3
#define WM9081_EQ_4
#define WM9081_EQ_5
#define WM9081_EQ_6
#define WM9081_EQ_7
#define WM9081_EQ_8
#define WM9081_EQ_9
#define WM9081_EQ_10
#define WM9081_EQ_11
#define WM9081_EQ_12
#define WM9081_EQ_13
#define WM9081_EQ_14
#define WM9081_EQ_15
#define WM9081_EQ_16
#define WM9081_EQ_17
#define WM9081_EQ_18
#define WM9081_EQ_19
#define WM9081_EQ_20

#define WM9081_REGISTER_COUNT
#define WM9081_MAX_REGISTER

/*
 * Field Definitions.
 */

/*
 * R0 (0x00) - Software Reset
 */
#define WM9081_SW_RST_DEV_ID1_MASK
#define WM9081_SW_RST_DEV_ID1_SHIFT
#define WM9081_SW_RST_DEV_ID1_WIDTH

/*
 * R2 (0x02) - Analogue Lineout
 */
#define WM9081_LINEOUT_MUTE
#define WM9081_LINEOUT_MUTE_MASK
#define WM9081_LINEOUT_MUTE_SHIFT
#define WM9081_LINEOUT_MUTE_WIDTH
#define WM9081_LINEOUTZC
#define WM9081_LINEOUTZC_MASK
#define WM9081_LINEOUTZC_SHIFT
#define WM9081_LINEOUTZC_WIDTH
#define WM9081_LINEOUT_VOL_MASK
#define WM9081_LINEOUT_VOL_SHIFT
#define WM9081_LINEOUT_VOL_WIDTH

/*
 * R3 (0x03) - Analogue Speaker PGA
 */
#define WM9081_SPKPGA_MUTE
#define WM9081_SPKPGA_MUTE_MASK
#define WM9081_SPKPGA_MUTE_SHIFT
#define WM9081_SPKPGA_MUTE_WIDTH
#define WM9081_SPKPGAZC
#define WM9081_SPKPGAZC_MASK
#define WM9081_SPKPGAZC_SHIFT
#define WM9081_SPKPGAZC_WIDTH
#define WM9081_SPKPGA_VOL_MASK
#define WM9081_SPKPGA_VOL_SHIFT
#define WM9081_SPKPGA_VOL_WIDTH

/*
 * R4 (0x04) - VMID Control
 */
#define WM9081_VMID_BUF_ENA
#define WM9081_VMID_BUF_ENA_MASK
#define WM9081_VMID_BUF_ENA_SHIFT
#define WM9081_VMID_BUF_ENA_WIDTH
#define WM9081_VMID_RAMP
#define WM9081_VMID_RAMP_MASK
#define WM9081_VMID_RAMP_SHIFT
#define WM9081_VMID_RAMP_WIDTH
#define WM9081_VMID_SEL_MASK
#define WM9081_VMID_SEL_SHIFT
#define WM9081_VMID_SEL_WIDTH
#define WM9081_VMID_FAST_ST
#define WM9081_VMID_FAST_ST_MASK
#define WM9081_VMID_FAST_ST_SHIFT
#define WM9081_VMID_FAST_ST_WIDTH

/*
 * R5 (0x05) - Bias Control 1
 */
#define WM9081_BIAS_SRC
#define WM9081_BIAS_SRC_MASK
#define WM9081_BIAS_SRC_SHIFT
#define WM9081_BIAS_SRC_WIDTH
#define WM9081_STBY_BIAS_LVL
#define WM9081_STBY_BIAS_LVL_MASK
#define WM9081_STBY_BIAS_LVL_SHIFT
#define WM9081_STBY_BIAS_LVL_WIDTH
#define WM9081_STBY_BIAS_ENA
#define WM9081_STBY_BIAS_ENA_MASK
#define WM9081_STBY_BIAS_ENA_SHIFT
#define WM9081_STBY_BIAS_ENA_WIDTH
#define WM9081_BIAS_LVL_MASK
#define WM9081_BIAS_LVL_SHIFT
#define WM9081_BIAS_LVL_WIDTH
#define WM9081_BIAS_ENA
#define WM9081_BIAS_ENA_MASK
#define WM9081_BIAS_ENA_SHIFT
#define WM9081_BIAS_ENA_WIDTH
#define WM9081_STARTUP_BIAS_ENA
#define WM9081_STARTUP_BIAS_ENA_MASK
#define WM9081_STARTUP_BIAS_ENA_SHIFT
#define WM9081_STARTUP_BIAS_ENA_WIDTH

/*
 * R7 (0x07) - Analogue Mixer
 */
#define WM9081_DAC_SEL
#define WM9081_DAC_SEL_MASK
#define WM9081_DAC_SEL_SHIFT
#define WM9081_DAC_SEL_WIDTH
#define WM9081_IN2_VOL
#define WM9081_IN2_VOL_MASK
#define WM9081_IN2_VOL_SHIFT
#define WM9081_IN2_VOL_WIDTH
#define WM9081_IN2_ENA
#define WM9081_IN2_ENA_MASK
#define WM9081_IN2_ENA_SHIFT
#define WM9081_IN2_ENA_WIDTH
#define WM9081_IN1_VOL
#define WM9081_IN1_VOL_MASK
#define WM9081_IN1_VOL_SHIFT
#define WM9081_IN1_VOL_WIDTH
#define WM9081_IN1_ENA
#define WM9081_IN1_ENA_MASK
#define WM9081_IN1_ENA_SHIFT
#define WM9081_IN1_ENA_WIDTH

/*
 * R8 (0x08) - Anti Pop Control
 */
#define WM9081_LINEOUT_DISCH
#define WM9081_LINEOUT_DISCH_MASK
#define WM9081_LINEOUT_DISCH_SHIFT
#define WM9081_LINEOUT_DISCH_WIDTH
#define WM9081_LINEOUT_VROI
#define WM9081_LINEOUT_VROI_MASK
#define WM9081_LINEOUT_VROI_SHIFT
#define WM9081_LINEOUT_VROI_WIDTH
#define WM9081_LINEOUT_CLAMP
#define WM9081_LINEOUT_CLAMP_MASK
#define WM9081_LINEOUT_CLAMP_SHIFT
#define WM9081_LINEOUT_CLAMP_WIDTH

/*
 * R9 (0x09) - Analogue Speaker 1
 */
#define WM9081_SPK_DCGAIN_MASK
#define WM9081_SPK_DCGAIN_SHIFT
#define WM9081_SPK_DCGAIN_WIDTH
#define WM9081_SPK_ACGAIN_MASK
#define WM9081_SPK_ACGAIN_SHIFT
#define WM9081_SPK_ACGAIN_WIDTH

/*
 * R10 (0x0A) - Analogue Speaker 2
 */
#define WM9081_SPK_MODE
#define WM9081_SPK_MODE_MASK
#define WM9081_SPK_MODE_SHIFT
#define WM9081_SPK_MODE_WIDTH
#define WM9081_SPK_INV_MUTE
#define WM9081_SPK_INV_MUTE_MASK
#define WM9081_SPK_INV_MUTE_SHIFT
#define WM9081_SPK_INV_MUTE_WIDTH
#define WM9081_OUT_SPK_CTRL
#define WM9081_OUT_SPK_CTRL_MASK
#define WM9081_OUT_SPK_CTRL_SHIFT
#define WM9081_OUT_SPK_CTRL_WIDTH

/*
 * R11 (0x0B) - Power Management
 */
#define WM9081_TSHUT_ENA
#define WM9081_TSHUT_ENA_MASK
#define WM9081_TSHUT_ENA_SHIFT
#define WM9081_TSHUT_ENA_WIDTH
#define WM9081_TSENSE_ENA
#define WM9081_TSENSE_ENA_MASK
#define WM9081_TSENSE_ENA_SHIFT
#define WM9081_TSENSE_ENA_WIDTH
#define WM9081_TEMP_SHUT
#define WM9081_TEMP_SHUT_MASK
#define WM9081_TEMP_SHUT_SHIFT
#define WM9081_TEMP_SHUT_WIDTH
#define WM9081_LINEOUT_ENA
#define WM9081_LINEOUT_ENA_MASK
#define WM9081_LINEOUT_ENA_SHIFT
#define WM9081_LINEOUT_ENA_WIDTH
#define WM9081_SPKPGA_ENA
#define WM9081_SPKPGA_ENA_MASK
#define WM9081_SPKPGA_ENA_SHIFT
#define WM9081_SPKPGA_ENA_WIDTH
#define WM9081_SPK_ENA
#define WM9081_SPK_ENA_MASK
#define WM9081_SPK_ENA_SHIFT
#define WM9081_SPK_ENA_WIDTH
#define WM9081_DAC_ENA
#define WM9081_DAC_ENA_MASK
#define WM9081_DAC_ENA_SHIFT
#define WM9081_DAC_ENA_WIDTH

/*
 * R12 (0x0C) - Clock Control 1
 */
#define WM9081_CLK_OP_DIV_MASK
#define WM9081_CLK_OP_DIV_SHIFT
#define WM9081_CLK_OP_DIV_WIDTH
#define WM9081_CLK_TO_DIV_MASK
#define WM9081_CLK_TO_DIV_SHIFT
#define WM9081_CLK_TO_DIV_WIDTH
#define WM9081_MCLKDIV2
#define WM9081_MCLKDIV2_MASK
#define WM9081_MCLKDIV2_SHIFT
#define WM9081_MCLKDIV2_WIDTH

/*
 * R13 (0x0D) - Clock Control 2
 */
#define WM9081_CLK_SYS_RATE_MASK
#define WM9081_CLK_SYS_RATE_SHIFT
#define WM9081_CLK_SYS_RATE_WIDTH
#define WM9081_SAMPLE_RATE_MASK
#define WM9081_SAMPLE_RATE_SHIFT
#define WM9081_SAMPLE_RATE_WIDTH

/*
 * R14 (0x0E) - Clock Control 3
 */
#define WM9081_CLK_SRC_SEL
#define WM9081_CLK_SRC_SEL_MASK
#define WM9081_CLK_SRC_SEL_SHIFT
#define WM9081_CLK_SRC_SEL_WIDTH
#define WM9081_CLK_OP_ENA
#define WM9081_CLK_OP_ENA_MASK
#define WM9081_CLK_OP_ENA_SHIFT
#define WM9081_CLK_OP_ENA_WIDTH
#define WM9081_CLK_TO_ENA
#define WM9081_CLK_TO_ENA_MASK
#define WM9081_CLK_TO_ENA_SHIFT
#define WM9081_CLK_TO_ENA_WIDTH
#define WM9081_CLK_DSP_ENA
#define WM9081_CLK_DSP_ENA_MASK
#define WM9081_CLK_DSP_ENA_SHIFT
#define WM9081_CLK_DSP_ENA_WIDTH
#define WM9081_CLK_SYS_ENA
#define WM9081_CLK_SYS_ENA_MASK
#define WM9081_CLK_SYS_ENA_SHIFT
#define WM9081_CLK_SYS_ENA_WIDTH

/*
 * R16 (0x10) - FLL Control 1
 */
#define WM9081_FLL_HOLD
#define WM9081_FLL_HOLD_MASK
#define WM9081_FLL_HOLD_SHIFT
#define WM9081_FLL_HOLD_WIDTH
#define WM9081_FLL_FRAC
#define WM9081_FLL_FRAC_MASK
#define WM9081_FLL_FRAC_SHIFT
#define WM9081_FLL_FRAC_WIDTH
#define WM9081_FLL_ENA
#define WM9081_FLL_ENA_MASK
#define WM9081_FLL_ENA_SHIFT
#define WM9081_FLL_ENA_WIDTH

/*
 * R17 (0x11) - FLL Control 2
 */
#define WM9081_FLL_OUTDIV_MASK
#define WM9081_FLL_OUTDIV_SHIFT
#define WM9081_FLL_OUTDIV_WIDTH
#define WM9081_FLL_CTRL_RATE_MASK
#define WM9081_FLL_CTRL_RATE_SHIFT
#define WM9081_FLL_CTRL_RATE_WIDTH
#define WM9081_FLL_FRATIO_MASK
#define WM9081_FLL_FRATIO_SHIFT
#define WM9081_FLL_FRATIO_WIDTH

/*
 * R18 (0x12) - FLL Control 3
 */
#define WM9081_FLL_K_MASK
#define WM9081_FLL_K_SHIFT
#define WM9081_FLL_K_WIDTH

/*
 * R19 (0x13) - FLL Control 4
 */
#define WM9081_FLL_N_MASK
#define WM9081_FLL_N_SHIFT
#define WM9081_FLL_N_WIDTH
#define WM9081_FLL_GAIN_MASK
#define WM9081_FLL_GAIN_SHIFT
#define WM9081_FLL_GAIN_WIDTH

/*
 * R20 (0x14) - FLL Control 5
 */
#define WM9081_FLL_CLK_REF_DIV_MASK
#define WM9081_FLL_CLK_REF_DIV_SHIFT
#define WM9081_FLL_CLK_REF_DIV_WIDTH
#define WM9081_FLL_CLK_SRC_MASK
#define WM9081_FLL_CLK_SRC_SHIFT
#define WM9081_FLL_CLK_SRC_WIDTH

/*
 * R22 (0x16) - Audio Interface 1
 */
#define WM9081_AIFDAC_CHAN
#define WM9081_AIFDAC_CHAN_MASK
#define WM9081_AIFDAC_CHAN_SHIFT
#define WM9081_AIFDAC_CHAN_WIDTH
#define WM9081_AIFDAC_TDM_SLOT_MASK
#define WM9081_AIFDAC_TDM_SLOT_SHIFT
#define WM9081_AIFDAC_TDM_SLOT_WIDTH
#define WM9081_AIFDAC_TDM_MODE_MASK
#define WM9081_AIFDAC_TDM_MODE_SHIFT
#define WM9081_AIFDAC_TDM_MODE_WIDTH
#define WM9081_DAC_COMP
#define WM9081_DAC_COMP_MASK
#define WM9081_DAC_COMP_SHIFT
#define WM9081_DAC_COMP_WIDTH
#define WM9081_DAC_COMPMODE
#define WM9081_DAC_COMPMODE_MASK
#define WM9081_DAC_COMPMODE_SHIFT
#define WM9081_DAC_COMPMODE_WIDTH

/*
 * R23 (0x17) - Audio Interface 2
 */
#define WM9081_AIF_TRIS
#define WM9081_AIF_TRIS_MASK
#define WM9081_AIF_TRIS_SHIFT
#define WM9081_AIF_TRIS_WIDTH
#define WM9081_DAC_DAT_INV
#define WM9081_DAC_DAT_INV_MASK
#define WM9081_DAC_DAT_INV_SHIFT
#define WM9081_DAC_DAT_INV_WIDTH
#define WM9081_AIF_BCLK_INV
#define WM9081_AIF_BCLK_INV_MASK
#define WM9081_AIF_BCLK_INV_SHIFT
#define WM9081_AIF_BCLK_INV_WIDTH
#define WM9081_BCLK_DIR
#define WM9081_BCLK_DIR_MASK
#define WM9081_BCLK_DIR_SHIFT
#define WM9081_BCLK_DIR_WIDTH
#define WM9081_LRCLK_DIR
#define WM9081_LRCLK_DIR_MASK
#define WM9081_LRCLK_DIR_SHIFT
#define WM9081_LRCLK_DIR_WIDTH
#define WM9081_AIF_LRCLK_INV
#define WM9081_AIF_LRCLK_INV_MASK
#define WM9081_AIF_LRCLK_INV_SHIFT
#define WM9081_AIF_LRCLK_INV_WIDTH
#define WM9081_AIF_WL_MASK
#define WM9081_AIF_WL_SHIFT
#define WM9081_AIF_WL_WIDTH
#define WM9081_AIF_FMT_MASK
#define WM9081_AIF_FMT_SHIFT
#define WM9081_AIF_FMT_WIDTH

/*
 * R24 (0x18) - Audio Interface 3
 */
#define WM9081_BCLK_DIV_MASK
#define WM9081_BCLK_DIV_SHIFT
#define WM9081_BCLK_DIV_WIDTH

/*
 * R25 (0x19) - Audio Interface 4
 */
#define WM9081_LRCLK_RATE_MASK
#define WM9081_LRCLK_RATE_SHIFT
#define WM9081_LRCLK_RATE_WIDTH

/*
 * R26 (0x1A) - Interrupt Status
 */
#define WM9081_WSEQ_BUSY_EINT
#define WM9081_WSEQ_BUSY_EINT_MASK
#define WM9081_WSEQ_BUSY_EINT_SHIFT
#define WM9081_WSEQ_BUSY_EINT_WIDTH
#define WM9081_TSHUT_EINT
#define WM9081_TSHUT_EINT_MASK
#define WM9081_TSHUT_EINT_SHIFT
#define WM9081_TSHUT_EINT_WIDTH

/*
 * R27 (0x1B) - Interrupt Status Mask
 */
#define WM9081_IM_WSEQ_BUSY_EINT
#define WM9081_IM_WSEQ_BUSY_EINT_MASK
#define WM9081_IM_WSEQ_BUSY_EINT_SHIFT
#define WM9081_IM_WSEQ_BUSY_EINT_WIDTH
#define WM9081_IM_TSHUT_EINT
#define WM9081_IM_TSHUT_EINT_MASK
#define WM9081_IM_TSHUT_EINT_SHIFT
#define WM9081_IM_TSHUT_EINT_WIDTH

/*
 * R28 (0x1C) - Interrupt Polarity
 */
#define WM9081_TSHUT_INV
#define WM9081_TSHUT_INV_MASK
#define WM9081_TSHUT_INV_SHIFT
#define WM9081_TSHUT_INV_WIDTH

/*
 * R29 (0x1D) - Interrupt Control
 */
#define WM9081_IRQ_POL
#define WM9081_IRQ_POL_MASK
#define WM9081_IRQ_POL_SHIFT
#define WM9081_IRQ_POL_WIDTH
#define WM9081_IRQ_OP_CTRL
#define WM9081_IRQ_OP_CTRL_MASK
#define WM9081_IRQ_OP_CTRL_SHIFT
#define WM9081_IRQ_OP_CTRL_WIDTH

/*
 * R30 (0x1E) - DAC Digital 1
 */
#define WM9081_DAC_VOL_MASK
#define WM9081_DAC_VOL_SHIFT
#define WM9081_DAC_VOL_WIDTH

/*
 * R31 (0x1F) - DAC Digital 2
 */
#define WM9081_DAC_MUTERATE
#define WM9081_DAC_MUTERATE_MASK
#define WM9081_DAC_MUTERATE_SHIFT
#define WM9081_DAC_MUTERATE_WIDTH
#define WM9081_DAC_MUTEMODE
#define WM9081_DAC_MUTEMODE_MASK
#define WM9081_DAC_MUTEMODE_SHIFT
#define WM9081_DAC_MUTEMODE_WIDTH
#define WM9081_DAC_MUTE
#define WM9081_DAC_MUTE_MASK
#define WM9081_DAC_MUTE_SHIFT
#define WM9081_DAC_MUTE_WIDTH
#define WM9081_DEEMPH_MASK
#define WM9081_DEEMPH_SHIFT
#define WM9081_DEEMPH_WIDTH

/*
 * R32 (0x20) - DRC 1
 */
#define WM9081_DRC_ENA
#define WM9081_DRC_ENA_MASK
#define WM9081_DRC_ENA_SHIFT
#define WM9081_DRC_ENA_WIDTH
#define WM9081_DRC_STARTUP_GAIN_MASK
#define WM9081_DRC_STARTUP_GAIN_SHIFT
#define WM9081_DRC_STARTUP_GAIN_WIDTH
#define WM9081_DRC_FF_DLY
#define WM9081_DRC_FF_DLY_MASK
#define WM9081_DRC_FF_DLY_SHIFT
#define WM9081_DRC_FF_DLY_WIDTH
#define WM9081_DRC_QR
#define WM9081_DRC_QR_MASK
#define WM9081_DRC_QR_SHIFT
#define WM9081_DRC_QR_WIDTH
#define WM9081_DRC_ANTICLIP
#define WM9081_DRC_ANTICLIP_MASK
#define WM9081_DRC_ANTICLIP_SHIFT
#define WM9081_DRC_ANTICLIP_WIDTH

/*
 * R33 (0x21) - DRC 2
 */
#define WM9081_DRC_ATK_MASK
#define WM9081_DRC_ATK_SHIFT
#define WM9081_DRC_ATK_WIDTH
#define WM9081_DRC_DCY_MASK
#define WM9081_DRC_DCY_SHIFT
#define WM9081_DRC_DCY_WIDTH
#define WM9081_DRC_QR_THR_MASK
#define WM9081_DRC_QR_THR_SHIFT
#define WM9081_DRC_QR_THR_WIDTH
#define WM9081_DRC_QR_DCY_MASK
#define WM9081_DRC_QR_DCY_SHIFT
#define WM9081_DRC_QR_DCY_WIDTH
#define WM9081_DRC_MINGAIN_MASK
#define WM9081_DRC_MINGAIN_SHIFT
#define WM9081_DRC_MINGAIN_WIDTH
#define WM9081_DRC_MAXGAIN_MASK
#define WM9081_DRC_MAXGAIN_SHIFT
#define WM9081_DRC_MAXGAIN_WIDTH

/*
 * R34 (0x22) - DRC 3
 */
#define WM9081_DRC_HI_COMP_MASK
#define WM9081_DRC_HI_COMP_SHIFT
#define WM9081_DRC_HI_COMP_WIDTH
#define WM9081_DRC_LO_COMP_MASK
#define WM9081_DRC_LO_COMP_SHIFT
#define WM9081_DRC_LO_COMP_WIDTH

/*
 * R35 (0x23) - DRC 4
 */
#define WM9081_DRC_KNEE_IP_MASK
#define WM9081_DRC_KNEE_IP_SHIFT
#define WM9081_DRC_KNEE_IP_WIDTH
#define WM9081_DRC_KNEE_OP_MASK
#define WM9081_DRC_KNEE_OP_SHIFT
#define WM9081_DRC_KNEE_OP_WIDTH

/*
 * R38 (0x26) - Write Sequencer 1
 */
#define WM9081_WSEQ_ENA
#define WM9081_WSEQ_ENA_MASK
#define WM9081_WSEQ_ENA_SHIFT
#define WM9081_WSEQ_ENA_WIDTH
#define WM9081_WSEQ_ABORT
#define WM9081_WSEQ_ABORT_MASK
#define WM9081_WSEQ_ABORT_SHIFT
#define WM9081_WSEQ_ABORT_WIDTH
#define WM9081_WSEQ_START
#define WM9081_WSEQ_START_MASK
#define WM9081_WSEQ_START_SHIFT
#define WM9081_WSEQ_START_WIDTH
#define WM9081_WSEQ_START_INDEX_MASK
#define WM9081_WSEQ_START_INDEX_SHIFT
#define WM9081_WSEQ_START_INDEX_WIDTH

/*
 * R39 (0x27) - Write Sequencer 2
 */
#define WM9081_WSEQ_CURRENT_INDEX_MASK
#define WM9081_WSEQ_CURRENT_INDEX_SHIFT
#define WM9081_WSEQ_CURRENT_INDEX_WIDTH
#define WM9081_WSEQ_BUSY
#define WM9081_WSEQ_BUSY_MASK
#define WM9081_WSEQ_BUSY_SHIFT
#define WM9081_WSEQ_BUSY_WIDTH

/*
 * R40 (0x28) - MW Slave 1
 */
#define WM9081_SPI_CFG
#define WM9081_SPI_CFG_MASK
#define WM9081_SPI_CFG_SHIFT
#define WM9081_SPI_CFG_WIDTH
#define WM9081_SPI_4WIRE
#define WM9081_SPI_4WIRE_MASK
#define WM9081_SPI_4WIRE_SHIFT
#define WM9081_SPI_4WIRE_WIDTH
#define WM9081_ARA_ENA
#define WM9081_ARA_ENA_MASK
#define WM9081_ARA_ENA_SHIFT
#define WM9081_ARA_ENA_WIDTH
#define WM9081_AUTO_INC
#define WM9081_AUTO_INC_MASK
#define WM9081_AUTO_INC_SHIFT
#define WM9081_AUTO_INC_WIDTH

/*
 * R42 (0x2A) - EQ 1
 */
#define WM9081_EQ_B1_GAIN_MASK
#define WM9081_EQ_B1_GAIN_SHIFT
#define WM9081_EQ_B1_GAIN_WIDTH
#define WM9081_EQ_B2_GAIN_MASK
#define WM9081_EQ_B2_GAIN_SHIFT
#define WM9081_EQ_B2_GAIN_WIDTH
#define WM9081_EQ_B4_GAIN_MASK
#define WM9081_EQ_B4_GAIN_SHIFT
#define WM9081_EQ_B4_GAIN_WIDTH
#define WM9081_EQ_ENA
#define WM9081_EQ_ENA_MASK
#define WM9081_EQ_ENA_SHIFT
#define WM9081_EQ_ENA_WIDTH

/*
 * R43 (0x2B) - EQ 2
 */
#define WM9081_EQ_B3_GAIN_MASK
#define WM9081_EQ_B3_GAIN_SHIFT
#define WM9081_EQ_B3_GAIN_WIDTH
#define WM9081_EQ_B5_GAIN_MASK
#define WM9081_EQ_B5_GAIN_SHIFT
#define WM9081_EQ_B5_GAIN_WIDTH

/*
 * R44 (0x2C) - EQ 3
 */
#define WM9081_EQ_B1_A_MASK
#define WM9081_EQ_B1_A_SHIFT
#define WM9081_EQ_B1_A_WIDTH

/*
 * R45 (0x2D) - EQ 4
 */
#define WM9081_EQ_B1_B_MASK
#define WM9081_EQ_B1_B_SHIFT
#define WM9081_EQ_B1_B_WIDTH

/*
 * R46 (0x2E) - EQ 5
 */
#define WM9081_EQ_B1_PG_MASK
#define WM9081_EQ_B1_PG_SHIFT
#define WM9081_EQ_B1_PG_WIDTH

/*
 * R47 (0x2F) - EQ 6
 */
#define WM9081_EQ_B2_A_MASK
#define WM9081_EQ_B2_A_SHIFT
#define WM9081_EQ_B2_A_WIDTH

/*
 * R48 (0x30) - EQ 7
 */
#define WM9081_EQ_B2_B_MASK
#define WM9081_EQ_B2_B_SHIFT
#define WM9081_EQ_B2_B_WIDTH

/*
 * R49 (0x31) - EQ 8
 */
#define WM9081_EQ_B2_C_MASK
#define WM9081_EQ_B2_C_SHIFT
#define WM9081_EQ_B2_C_WIDTH

/*
 * R50 (0x32) - EQ 9
 */
#define WM9081_EQ_B2_PG_MASK
#define WM9081_EQ_B2_PG_SHIFT
#define WM9081_EQ_B2_PG_WIDTH

/*
 * R51 (0x33) - EQ 10
 */
#define WM9081_EQ_B4_A_MASK
#define WM9081_EQ_B4_A_SHIFT
#define WM9081_EQ_B4_A_WIDTH

/*
 * R52 (0x34) - EQ 11
 */
#define WM9081_EQ_B4_B_MASK
#define WM9081_EQ_B4_B_SHIFT
#define WM9081_EQ_B4_B_WIDTH

/*
 * R53 (0x35) - EQ 12
 */
#define WM9081_EQ_B4_C_MASK
#define WM9081_EQ_B4_C_SHIFT
#define WM9081_EQ_B4_C_WIDTH

/*
 * R54 (0x36) - EQ 13
 */
#define WM9081_EQ_B4_PG_MASK
#define WM9081_EQ_B4_PG_SHIFT
#define WM9081_EQ_B4_PG_WIDTH

/*
 * R55 (0x37) - EQ 14
 */
#define WM9081_EQ_B3_A_MASK
#define WM9081_EQ_B3_A_SHIFT
#define WM9081_EQ_B3_A_WIDTH

/*
 * R56 (0x38) - EQ 15
 */
#define WM9081_EQ_B3_B_MASK
#define WM9081_EQ_B3_B_SHIFT
#define WM9081_EQ_B3_B_WIDTH

/*
 * R57 (0x39) - EQ 16
 */
#define WM9081_EQ_B3_C_MASK
#define WM9081_EQ_B3_C_SHIFT
#define WM9081_EQ_B3_C_WIDTH

/*
 * R58 (0x3A) - EQ 17
 */
#define WM9081_EQ_B3_PG_MASK
#define WM9081_EQ_B3_PG_SHIFT
#define WM9081_EQ_B3_PG_WIDTH

/*
 * R59 (0x3B) - EQ 18
 */
#define WM9081_EQ_B5_A_MASK
#define WM9081_EQ_B5_A_SHIFT
#define WM9081_EQ_B5_A_WIDTH

/*
 * R60 (0x3C) - EQ 19
 */
#define WM9081_EQ_B5_B_MASK
#define WM9081_EQ_B5_B_SHIFT
#define WM9081_EQ_B5_B_WIDTH

/*
 * R61 (0x3D) - EQ 20
 */
#define WM9081_EQ_B5_PG_MASK
#define WM9081_EQ_B5_PG_SHIFT
#define WM9081_EQ_B5_PG_WIDTH


#endif