139b8eab7SMark Brown /* 239b8eab7SMark Brown * ALSA SoC WM9090 driver 339b8eab7SMark Brown * 439b8eab7SMark Brown * Copyright 2009 Wolfson Microelectronics 539b8eab7SMark Brown * 639b8eab7SMark Brown * Author: Mark Brown <broonie@opensource.wolfsonmicro.com> 739b8eab7SMark Brown * 839b8eab7SMark Brown * This program is free software; you can redistribute it and/or 939b8eab7SMark Brown * modify it under the terms of the GNU General Public License 1039b8eab7SMark Brown * version 2 as published by the Free Software Foundation. 1139b8eab7SMark Brown * 1239b8eab7SMark Brown * This program is distributed in the hope that it will be useful, but 1339b8eab7SMark Brown * WITHOUT ANY WARRANTY; without even the implied warranty of 1439b8eab7SMark Brown * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1539b8eab7SMark Brown * General Public License for more details. 1639b8eab7SMark Brown * 1739b8eab7SMark Brown * You should have received a copy of the GNU General Public License 1839b8eab7SMark Brown * along with this program; if not, write to the Free Software 1939b8eab7SMark Brown * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 2039b8eab7SMark Brown * 02110-1301 USA 2139b8eab7SMark Brown */ 2239b8eab7SMark Brown 2339b8eab7SMark Brown #ifndef __WM9090_H 2439b8eab7SMark Brown #define __WM9090_H 2539b8eab7SMark Brown 2639b8eab7SMark Brown extern struct snd_soc_codec_device soc_codec_dev_wm9090; 2739b8eab7SMark Brown 2839b8eab7SMark Brown /* 2939b8eab7SMark Brown * Register values. 3039b8eab7SMark Brown */ 3139b8eab7SMark Brown #define WM9090_SOFTWARE_RESET 0x00 3239b8eab7SMark Brown #define WM9090_POWER_MANAGEMENT_1 0x01 3339b8eab7SMark Brown #define WM9090_POWER_MANAGEMENT_2 0x02 3439b8eab7SMark Brown #define WM9090_POWER_MANAGEMENT_3 0x03 3539b8eab7SMark Brown #define WM9090_CLOCKING_1 0x06 3639b8eab7SMark Brown #define WM9090_IN1_LINE_CONTROL 0x16 3739b8eab7SMark Brown #define WM9090_IN2_LINE_CONTROL 0x17 3839b8eab7SMark Brown #define WM9090_IN1_LINE_INPUT_A_VOLUME 0x18 3939b8eab7SMark Brown #define WM9090_IN1_LINE_INPUT_B_VOLUME 0x19 4039b8eab7SMark Brown #define WM9090_IN2_LINE_INPUT_A_VOLUME 0x1A 4139b8eab7SMark Brown #define WM9090_IN2_LINE_INPUT_B_VOLUME 0x1B 4239b8eab7SMark Brown #define WM9090_LEFT_OUTPUT_VOLUME 0x1C 4339b8eab7SMark Brown #define WM9090_RIGHT_OUTPUT_VOLUME 0x1D 4439b8eab7SMark Brown #define WM9090_SPKMIXL_ATTENUATION 0x22 4539b8eab7SMark Brown #define WM9090_SPKOUT_MIXERS 0x24 4639b8eab7SMark Brown #define WM9090_CLASSD3 0x25 4739b8eab7SMark Brown #define WM9090_SPEAKER_VOLUME_LEFT 0x26 4839b8eab7SMark Brown #define WM9090_OUTPUT_MIXER1 0x2D 4939b8eab7SMark Brown #define WM9090_OUTPUT_MIXER2 0x2E 5039b8eab7SMark Brown #define WM9090_OUTPUT_MIXER3 0x2F 5139b8eab7SMark Brown #define WM9090_OUTPUT_MIXER4 0x30 5239b8eab7SMark Brown #define WM9090_SPEAKER_MIXER 0x36 5339b8eab7SMark Brown #define WM9090_ANTIPOP2 0x39 5439b8eab7SMark Brown #define WM9090_WRITE_SEQUENCER_0 0x46 5539b8eab7SMark Brown #define WM9090_WRITE_SEQUENCER_1 0x47 5639b8eab7SMark Brown #define WM9090_WRITE_SEQUENCER_2 0x48 5739b8eab7SMark Brown #define WM9090_WRITE_SEQUENCER_3 0x49 5839b8eab7SMark Brown #define WM9090_WRITE_SEQUENCER_4 0x4A 5939b8eab7SMark Brown #define WM9090_WRITE_SEQUENCER_5 0x4B 6039b8eab7SMark Brown #define WM9090_CHARGE_PUMP_1 0x4C 6139b8eab7SMark Brown #define WM9090_DC_SERVO_0 0x54 6239b8eab7SMark Brown #define WM9090_DC_SERVO_1 0x55 6339b8eab7SMark Brown #define WM9090_DC_SERVO_3 0x57 6439b8eab7SMark Brown #define WM9090_DC_SERVO_READBACK_0 0x58 6539b8eab7SMark Brown #define WM9090_DC_SERVO_READBACK_1 0x59 6639b8eab7SMark Brown #define WM9090_DC_SERVO_READBACK_2 0x5A 6739b8eab7SMark Brown #define WM9090_ANALOGUE_HP_0 0x60 6839b8eab7SMark Brown #define WM9090_AGC_CONTROL_0 0x62 6939b8eab7SMark Brown #define WM9090_AGC_CONTROL_1 0x63 7039b8eab7SMark Brown #define WM9090_AGC_CONTROL_2 0x64 7139b8eab7SMark Brown 7239b8eab7SMark Brown #define WM9090_REGISTER_COUNT 40 7339b8eab7SMark Brown #define WM9090_MAX_REGISTER 0x64 7439b8eab7SMark Brown 7539b8eab7SMark Brown /* 7639b8eab7SMark Brown * Field Definitions. 7739b8eab7SMark Brown */ 7839b8eab7SMark Brown 7939b8eab7SMark Brown /* 8039b8eab7SMark Brown * R0 (0x00) - Software Reset 8139b8eab7SMark Brown */ 8239b8eab7SMark Brown #define WM9090_SW_RESET_MASK 0xFFFF /* SW_RESET - [15:0] */ 8339b8eab7SMark Brown #define WM9090_SW_RESET_SHIFT 0 /* SW_RESET - [15:0] */ 8439b8eab7SMark Brown #define WM9090_SW_RESET_WIDTH 16 /* SW_RESET - [15:0] */ 8539b8eab7SMark Brown 8639b8eab7SMark Brown /* 8739b8eab7SMark Brown * R1 (0x01) - Power Management (1) 8839b8eab7SMark Brown */ 8939b8eab7SMark Brown #define WM9090_SPKOUTL_ENA 0x1000 /* SPKOUTL_ENA */ 9039b8eab7SMark Brown #define WM9090_SPKOUTL_ENA_MASK 0x1000 /* SPKOUTL_ENA */ 9139b8eab7SMark Brown #define WM9090_SPKOUTL_ENA_SHIFT 12 /* SPKOUTL_ENA */ 9239b8eab7SMark Brown #define WM9090_SPKOUTL_ENA_WIDTH 1 /* SPKOUTL_ENA */ 9339b8eab7SMark Brown #define WM9090_HPOUT1L_ENA 0x0200 /* HPOUT1L_ENA */ 9439b8eab7SMark Brown #define WM9090_HPOUT1L_ENA_MASK 0x0200 /* HPOUT1L_ENA */ 9539b8eab7SMark Brown #define WM9090_HPOUT1L_ENA_SHIFT 9 /* HPOUT1L_ENA */ 9639b8eab7SMark Brown #define WM9090_HPOUT1L_ENA_WIDTH 1 /* HPOUT1L_ENA */ 9739b8eab7SMark Brown #define WM9090_HPOUT1R_ENA 0x0100 /* HPOUT1R_ENA */ 9839b8eab7SMark Brown #define WM9090_HPOUT1R_ENA_MASK 0x0100 /* HPOUT1R_ENA */ 9939b8eab7SMark Brown #define WM9090_HPOUT1R_ENA_SHIFT 8 /* HPOUT1R_ENA */ 10039b8eab7SMark Brown #define WM9090_HPOUT1R_ENA_WIDTH 1 /* HPOUT1R_ENA */ 10139b8eab7SMark Brown #define WM9090_OSC_ENA 0x0008 /* OSC_ENA */ 10239b8eab7SMark Brown #define WM9090_OSC_ENA_MASK 0x0008 /* OSC_ENA */ 10339b8eab7SMark Brown #define WM9090_OSC_ENA_SHIFT 3 /* OSC_ENA */ 10439b8eab7SMark Brown #define WM9090_OSC_ENA_WIDTH 1 /* OSC_ENA */ 10539b8eab7SMark Brown #define WM9090_VMID_RES_MASK 0x0006 /* VMID_RES - [2:1] */ 10639b8eab7SMark Brown #define WM9090_VMID_RES_SHIFT 1 /* VMID_RES - [2:1] */ 10739b8eab7SMark Brown #define WM9090_VMID_RES_WIDTH 2 /* VMID_RES - [2:1] */ 10839b8eab7SMark Brown #define WM9090_BIAS_ENA 0x0001 /* BIAS_ENA */ 10939b8eab7SMark Brown #define WM9090_BIAS_ENA_MASK 0x0001 /* BIAS_ENA */ 11039b8eab7SMark Brown #define WM9090_BIAS_ENA_SHIFT 0 /* BIAS_ENA */ 11139b8eab7SMark Brown #define WM9090_BIAS_ENA_WIDTH 1 /* BIAS_ENA */ 11239b8eab7SMark Brown 11339b8eab7SMark Brown /* 11439b8eab7SMark Brown * R2 (0x02) - Power Management (2) 11539b8eab7SMark Brown */ 11639b8eab7SMark Brown #define WM9090_TSHUT 0x8000 /* TSHUT */ 11739b8eab7SMark Brown #define WM9090_TSHUT_MASK 0x8000 /* TSHUT */ 11839b8eab7SMark Brown #define WM9090_TSHUT_SHIFT 15 /* TSHUT */ 11939b8eab7SMark Brown #define WM9090_TSHUT_WIDTH 1 /* TSHUT */ 12039b8eab7SMark Brown #define WM9090_TSHUT_ENA 0x4000 /* TSHUT_ENA */ 12139b8eab7SMark Brown #define WM9090_TSHUT_ENA_MASK 0x4000 /* TSHUT_ENA */ 12239b8eab7SMark Brown #define WM9090_TSHUT_ENA_SHIFT 14 /* TSHUT_ENA */ 12339b8eab7SMark Brown #define WM9090_TSHUT_ENA_WIDTH 1 /* TSHUT_ENA */ 12439b8eab7SMark Brown #define WM9090_TSHUT_OPDIS 0x2000 /* TSHUT_OPDIS */ 12539b8eab7SMark Brown #define WM9090_TSHUT_OPDIS_MASK 0x2000 /* TSHUT_OPDIS */ 12639b8eab7SMark Brown #define WM9090_TSHUT_OPDIS_SHIFT 13 /* TSHUT_OPDIS */ 12739b8eab7SMark Brown #define WM9090_TSHUT_OPDIS_WIDTH 1 /* TSHUT_OPDIS */ 12839b8eab7SMark Brown #define WM9090_IN1A_ENA 0x0080 /* IN1A_ENA */ 12939b8eab7SMark Brown #define WM9090_IN1A_ENA_MASK 0x0080 /* IN1A_ENA */ 13039b8eab7SMark Brown #define WM9090_IN1A_ENA_SHIFT 7 /* IN1A_ENA */ 13139b8eab7SMark Brown #define WM9090_IN1A_ENA_WIDTH 1 /* IN1A_ENA */ 13239b8eab7SMark Brown #define WM9090_IN1B_ENA 0x0040 /* IN1B_ENA */ 13339b8eab7SMark Brown #define WM9090_IN1B_ENA_MASK 0x0040 /* IN1B_ENA */ 13439b8eab7SMark Brown #define WM9090_IN1B_ENA_SHIFT 6 /* IN1B_ENA */ 13539b8eab7SMark Brown #define WM9090_IN1B_ENA_WIDTH 1 /* IN1B_ENA */ 13639b8eab7SMark Brown #define WM9090_IN2A_ENA 0x0020 /* IN2A_ENA */ 13739b8eab7SMark Brown #define WM9090_IN2A_ENA_MASK 0x0020 /* IN2A_ENA */ 13839b8eab7SMark Brown #define WM9090_IN2A_ENA_SHIFT 5 /* IN2A_ENA */ 13939b8eab7SMark Brown #define WM9090_IN2A_ENA_WIDTH 1 /* IN2A_ENA */ 14039b8eab7SMark Brown #define WM9090_IN2B_ENA 0x0010 /* IN2B_ENA */ 14139b8eab7SMark Brown #define WM9090_IN2B_ENA_MASK 0x0010 /* IN2B_ENA */ 14239b8eab7SMark Brown #define WM9090_IN2B_ENA_SHIFT 4 /* IN2B_ENA */ 14339b8eab7SMark Brown #define WM9090_IN2B_ENA_WIDTH 1 /* IN2B_ENA */ 14439b8eab7SMark Brown 14539b8eab7SMark Brown /* 14639b8eab7SMark Brown * R3 (0x03) - Power Management (3) 14739b8eab7SMark Brown */ 14839b8eab7SMark Brown #define WM9090_AGC_ENA 0x4000 /* AGC_ENA */ 14939b8eab7SMark Brown #define WM9090_AGC_ENA_MASK 0x4000 /* AGC_ENA */ 15039b8eab7SMark Brown #define WM9090_AGC_ENA_SHIFT 14 /* AGC_ENA */ 15139b8eab7SMark Brown #define WM9090_AGC_ENA_WIDTH 1 /* AGC_ENA */ 15239b8eab7SMark Brown #define WM9090_SPKLVOL_ENA 0x0100 /* SPKLVOL_ENA */ 15339b8eab7SMark Brown #define WM9090_SPKLVOL_ENA_MASK 0x0100 /* SPKLVOL_ENA */ 15439b8eab7SMark Brown #define WM9090_SPKLVOL_ENA_SHIFT 8 /* SPKLVOL_ENA */ 15539b8eab7SMark Brown #define WM9090_SPKLVOL_ENA_WIDTH 1 /* SPKLVOL_ENA */ 15639b8eab7SMark Brown #define WM9090_MIXOUTL_ENA 0x0020 /* MIXOUTL_ENA */ 15739b8eab7SMark Brown #define WM9090_MIXOUTL_ENA_MASK 0x0020 /* MIXOUTL_ENA */ 15839b8eab7SMark Brown #define WM9090_MIXOUTL_ENA_SHIFT 5 /* MIXOUTL_ENA */ 15939b8eab7SMark Brown #define WM9090_MIXOUTL_ENA_WIDTH 1 /* MIXOUTL_ENA */ 16039b8eab7SMark Brown #define WM9090_MIXOUTR_ENA 0x0010 /* MIXOUTR_ENA */ 16139b8eab7SMark Brown #define WM9090_MIXOUTR_ENA_MASK 0x0010 /* MIXOUTR_ENA */ 16239b8eab7SMark Brown #define WM9090_MIXOUTR_ENA_SHIFT 4 /* MIXOUTR_ENA */ 16339b8eab7SMark Brown #define WM9090_MIXOUTR_ENA_WIDTH 1 /* MIXOUTR_ENA */ 16439b8eab7SMark Brown #define WM9090_SPKMIX_ENA 0x0008 /* SPKMIX_ENA */ 16539b8eab7SMark Brown #define WM9090_SPKMIX_ENA_MASK 0x0008 /* SPKMIX_ENA */ 16639b8eab7SMark Brown #define WM9090_SPKMIX_ENA_SHIFT 3 /* SPKMIX_ENA */ 16739b8eab7SMark Brown #define WM9090_SPKMIX_ENA_WIDTH 1 /* SPKMIX_ENA */ 16839b8eab7SMark Brown 16939b8eab7SMark Brown /* 17039b8eab7SMark Brown * R6 (0x06) - Clocking 1 17139b8eab7SMark Brown */ 17239b8eab7SMark Brown #define WM9090_TOCLK_RATE 0x8000 /* TOCLK_RATE */ 17339b8eab7SMark Brown #define WM9090_TOCLK_RATE_MASK 0x8000 /* TOCLK_RATE */ 17439b8eab7SMark Brown #define WM9090_TOCLK_RATE_SHIFT 15 /* TOCLK_RATE */ 17539b8eab7SMark Brown #define WM9090_TOCLK_RATE_WIDTH 1 /* TOCLK_RATE */ 17639b8eab7SMark Brown #define WM9090_TOCLK_ENA 0x4000 /* TOCLK_ENA */ 17739b8eab7SMark Brown #define WM9090_TOCLK_ENA_MASK 0x4000 /* TOCLK_ENA */ 17839b8eab7SMark Brown #define WM9090_TOCLK_ENA_SHIFT 14 /* TOCLK_ENA */ 17939b8eab7SMark Brown #define WM9090_TOCLK_ENA_WIDTH 1 /* TOCLK_ENA */ 18039b8eab7SMark Brown 18139b8eab7SMark Brown /* 18239b8eab7SMark Brown * R22 (0x16) - IN1 Line Control 18339b8eab7SMark Brown */ 18439b8eab7SMark Brown #define WM9090_IN1_DIFF 0x0002 /* IN1_DIFF */ 18539b8eab7SMark Brown #define WM9090_IN1_DIFF_MASK 0x0002 /* IN1_DIFF */ 18639b8eab7SMark Brown #define WM9090_IN1_DIFF_SHIFT 1 /* IN1_DIFF */ 18739b8eab7SMark Brown #define WM9090_IN1_DIFF_WIDTH 1 /* IN1_DIFF */ 18839b8eab7SMark Brown #define WM9090_IN1_CLAMP 0x0001 /* IN1_CLAMP */ 18939b8eab7SMark Brown #define WM9090_IN1_CLAMP_MASK 0x0001 /* IN1_CLAMP */ 19039b8eab7SMark Brown #define WM9090_IN1_CLAMP_SHIFT 0 /* IN1_CLAMP */ 19139b8eab7SMark Brown #define WM9090_IN1_CLAMP_WIDTH 1 /* IN1_CLAMP */ 19239b8eab7SMark Brown 19339b8eab7SMark Brown /* 19439b8eab7SMark Brown * R23 (0x17) - IN2 Line Control 19539b8eab7SMark Brown */ 19639b8eab7SMark Brown #define WM9090_IN2_DIFF 0x0002 /* IN2_DIFF */ 19739b8eab7SMark Brown #define WM9090_IN2_DIFF_MASK 0x0002 /* IN2_DIFF */ 19839b8eab7SMark Brown #define WM9090_IN2_DIFF_SHIFT 1 /* IN2_DIFF */ 19939b8eab7SMark Brown #define WM9090_IN2_DIFF_WIDTH 1 /* IN2_DIFF */ 20039b8eab7SMark Brown #define WM9090_IN2_CLAMP 0x0001 /* IN2_CLAMP */ 20139b8eab7SMark Brown #define WM9090_IN2_CLAMP_MASK 0x0001 /* IN2_CLAMP */ 20239b8eab7SMark Brown #define WM9090_IN2_CLAMP_SHIFT 0 /* IN2_CLAMP */ 20339b8eab7SMark Brown #define WM9090_IN2_CLAMP_WIDTH 1 /* IN2_CLAMP */ 20439b8eab7SMark Brown 20539b8eab7SMark Brown /* 20639b8eab7SMark Brown * R24 (0x18) - IN1 Line Input A Volume 20739b8eab7SMark Brown */ 20839b8eab7SMark Brown #define WM9090_IN1_VU 0x0100 /* IN1_VU */ 20939b8eab7SMark Brown #define WM9090_IN1_VU_MASK 0x0100 /* IN1_VU */ 21039b8eab7SMark Brown #define WM9090_IN1_VU_SHIFT 8 /* IN1_VU */ 21139b8eab7SMark Brown #define WM9090_IN1_VU_WIDTH 1 /* IN1_VU */ 21239b8eab7SMark Brown #define WM9090_IN1A_MUTE 0x0080 /* IN1A_MUTE */ 21339b8eab7SMark Brown #define WM9090_IN1A_MUTE_MASK 0x0080 /* IN1A_MUTE */ 21439b8eab7SMark Brown #define WM9090_IN1A_MUTE_SHIFT 7 /* IN1A_MUTE */ 21539b8eab7SMark Brown #define WM9090_IN1A_MUTE_WIDTH 1 /* IN1A_MUTE */ 21639b8eab7SMark Brown #define WM9090_IN1A_ZC 0x0040 /* IN1A_ZC */ 21739b8eab7SMark Brown #define WM9090_IN1A_ZC_MASK 0x0040 /* IN1A_ZC */ 21839b8eab7SMark Brown #define WM9090_IN1A_ZC_SHIFT 6 /* IN1A_ZC */ 21939b8eab7SMark Brown #define WM9090_IN1A_ZC_WIDTH 1 /* IN1A_ZC */ 22039b8eab7SMark Brown #define WM9090_IN1A_VOL_MASK 0x0007 /* IN1A_VOL - [2:0] */ 22139b8eab7SMark Brown #define WM9090_IN1A_VOL_SHIFT 0 /* IN1A_VOL - [2:0] */ 22239b8eab7SMark Brown #define WM9090_IN1A_VOL_WIDTH 3 /* IN1A_VOL - [2:0] */ 22339b8eab7SMark Brown 22439b8eab7SMark Brown /* 22539b8eab7SMark Brown * R25 (0x19) - IN1 Line Input B Volume 22639b8eab7SMark Brown */ 22739b8eab7SMark Brown #define WM9090_IN1_VU 0x0100 /* IN1_VU */ 22839b8eab7SMark Brown #define WM9090_IN1_VU_MASK 0x0100 /* IN1_VU */ 22939b8eab7SMark Brown #define WM9090_IN1_VU_SHIFT 8 /* IN1_VU */ 23039b8eab7SMark Brown #define WM9090_IN1_VU_WIDTH 1 /* IN1_VU */ 23139b8eab7SMark Brown #define WM9090_IN1B_MUTE 0x0080 /* IN1B_MUTE */ 23239b8eab7SMark Brown #define WM9090_IN1B_MUTE_MASK 0x0080 /* IN1B_MUTE */ 23339b8eab7SMark Brown #define WM9090_IN1B_MUTE_SHIFT 7 /* IN1B_MUTE */ 23439b8eab7SMark Brown #define WM9090_IN1B_MUTE_WIDTH 1 /* IN1B_MUTE */ 23539b8eab7SMark Brown #define WM9090_IN1B_ZC 0x0040 /* IN1B_ZC */ 23639b8eab7SMark Brown #define WM9090_IN1B_ZC_MASK 0x0040 /* IN1B_ZC */ 23739b8eab7SMark Brown #define WM9090_IN1B_ZC_SHIFT 6 /* IN1B_ZC */ 23839b8eab7SMark Brown #define WM9090_IN1B_ZC_WIDTH 1 /* IN1B_ZC */ 23939b8eab7SMark Brown #define WM9090_IN1B_VOL_MASK 0x0007 /* IN1B_VOL - [2:0] */ 24039b8eab7SMark Brown #define WM9090_IN1B_VOL_SHIFT 0 /* IN1B_VOL - [2:0] */ 24139b8eab7SMark Brown #define WM9090_IN1B_VOL_WIDTH 3 /* IN1B_VOL - [2:0] */ 24239b8eab7SMark Brown 24339b8eab7SMark Brown /* 24439b8eab7SMark Brown * R26 (0x1A) - IN2 Line Input A Volume 24539b8eab7SMark Brown */ 24639b8eab7SMark Brown #define WM9090_IN2_VU 0x0100 /* IN2_VU */ 24739b8eab7SMark Brown #define WM9090_IN2_VU_MASK 0x0100 /* IN2_VU */ 24839b8eab7SMark Brown #define WM9090_IN2_VU_SHIFT 8 /* IN2_VU */ 24939b8eab7SMark Brown #define WM9090_IN2_VU_WIDTH 1 /* IN2_VU */ 25039b8eab7SMark Brown #define WM9090_IN2A_MUTE 0x0080 /* IN2A_MUTE */ 25139b8eab7SMark Brown #define WM9090_IN2A_MUTE_MASK 0x0080 /* IN2A_MUTE */ 25239b8eab7SMark Brown #define WM9090_IN2A_MUTE_SHIFT 7 /* IN2A_MUTE */ 25339b8eab7SMark Brown #define WM9090_IN2A_MUTE_WIDTH 1 /* IN2A_MUTE */ 25439b8eab7SMark Brown #define WM9090_IN2A_ZC 0x0040 /* IN2A_ZC */ 25539b8eab7SMark Brown #define WM9090_IN2A_ZC_MASK 0x0040 /* IN2A_ZC */ 25639b8eab7SMark Brown #define WM9090_IN2A_ZC_SHIFT 6 /* IN2A_ZC */ 25739b8eab7SMark Brown #define WM9090_IN2A_ZC_WIDTH 1 /* IN2A_ZC */ 25839b8eab7SMark Brown #define WM9090_IN2A_VOL_MASK 0x0007 /* IN2A_VOL - [2:0] */ 25939b8eab7SMark Brown #define WM9090_IN2A_VOL_SHIFT 0 /* IN2A_VOL - [2:0] */ 26039b8eab7SMark Brown #define WM9090_IN2A_VOL_WIDTH 3 /* IN2A_VOL - [2:0] */ 26139b8eab7SMark Brown 26239b8eab7SMark Brown /* 26339b8eab7SMark Brown * R27 (0x1B) - IN2 Line Input B Volume 26439b8eab7SMark Brown */ 26539b8eab7SMark Brown #define WM9090_IN2_VU 0x0100 /* IN2_VU */ 26639b8eab7SMark Brown #define WM9090_IN2_VU_MASK 0x0100 /* IN2_VU */ 26739b8eab7SMark Brown #define WM9090_IN2_VU_SHIFT 8 /* IN2_VU */ 26839b8eab7SMark Brown #define WM9090_IN2_VU_WIDTH 1 /* IN2_VU */ 26939b8eab7SMark Brown #define WM9090_IN2B_MUTE 0x0080 /* IN2B_MUTE */ 27039b8eab7SMark Brown #define WM9090_IN2B_MUTE_MASK 0x0080 /* IN2B_MUTE */ 27139b8eab7SMark Brown #define WM9090_IN2B_MUTE_SHIFT 7 /* IN2B_MUTE */ 27239b8eab7SMark Brown #define WM9090_IN2B_MUTE_WIDTH 1 /* IN2B_MUTE */ 27339b8eab7SMark Brown #define WM9090_IN2B_ZC 0x0040 /* IN2B_ZC */ 27439b8eab7SMark Brown #define WM9090_IN2B_ZC_MASK 0x0040 /* IN2B_ZC */ 27539b8eab7SMark Brown #define WM9090_IN2B_ZC_SHIFT 6 /* IN2B_ZC */ 27639b8eab7SMark Brown #define WM9090_IN2B_ZC_WIDTH 1 /* IN2B_ZC */ 27739b8eab7SMark Brown #define WM9090_IN2B_VOL_MASK 0x0007 /* IN2B_VOL - [2:0] */ 27839b8eab7SMark Brown #define WM9090_IN2B_VOL_SHIFT 0 /* IN2B_VOL - [2:0] */ 27939b8eab7SMark Brown #define WM9090_IN2B_VOL_WIDTH 3 /* IN2B_VOL - [2:0] */ 28039b8eab7SMark Brown 28139b8eab7SMark Brown /* 28239b8eab7SMark Brown * R28 (0x1C) - Left Output Volume 28339b8eab7SMark Brown */ 28439b8eab7SMark Brown #define WM9090_HPOUT1_VU 0x0100 /* HPOUT1_VU */ 28539b8eab7SMark Brown #define WM9090_HPOUT1_VU_MASK 0x0100 /* HPOUT1_VU */ 28639b8eab7SMark Brown #define WM9090_HPOUT1_VU_SHIFT 8 /* HPOUT1_VU */ 28739b8eab7SMark Brown #define WM9090_HPOUT1_VU_WIDTH 1 /* HPOUT1_VU */ 28839b8eab7SMark Brown #define WM9090_HPOUT1L_ZC 0x0080 /* HPOUT1L_ZC */ 28939b8eab7SMark Brown #define WM9090_HPOUT1L_ZC_MASK 0x0080 /* HPOUT1L_ZC */ 29039b8eab7SMark Brown #define WM9090_HPOUT1L_ZC_SHIFT 7 /* HPOUT1L_ZC */ 29139b8eab7SMark Brown #define WM9090_HPOUT1L_ZC_WIDTH 1 /* HPOUT1L_ZC */ 29239b8eab7SMark Brown #define WM9090_HPOUT1L_MUTE 0x0040 /* HPOUT1L_MUTE */ 29339b8eab7SMark Brown #define WM9090_HPOUT1L_MUTE_MASK 0x0040 /* HPOUT1L_MUTE */ 29439b8eab7SMark Brown #define WM9090_HPOUT1L_MUTE_SHIFT 6 /* HPOUT1L_MUTE */ 29539b8eab7SMark Brown #define WM9090_HPOUT1L_MUTE_WIDTH 1 /* HPOUT1L_MUTE */ 29639b8eab7SMark Brown #define WM9090_HPOUT1L_VOL_MASK 0x003F /* HPOUT1L_VOL - [5:0] */ 29739b8eab7SMark Brown #define WM9090_HPOUT1L_VOL_SHIFT 0 /* HPOUT1L_VOL - [5:0] */ 29839b8eab7SMark Brown #define WM9090_HPOUT1L_VOL_WIDTH 6 /* HPOUT1L_VOL - [5:0] */ 29939b8eab7SMark Brown 30039b8eab7SMark Brown /* 30139b8eab7SMark Brown * R29 (0x1D) - Right Output Volume 30239b8eab7SMark Brown */ 30339b8eab7SMark Brown #define WM9090_HPOUT1_VU 0x0100 /* HPOUT1_VU */ 30439b8eab7SMark Brown #define WM9090_HPOUT1_VU_MASK 0x0100 /* HPOUT1_VU */ 30539b8eab7SMark Brown #define WM9090_HPOUT1_VU_SHIFT 8 /* HPOUT1_VU */ 30639b8eab7SMark Brown #define WM9090_HPOUT1_VU_WIDTH 1 /* HPOUT1_VU */ 30739b8eab7SMark Brown #define WM9090_HPOUT1R_ZC 0x0080 /* HPOUT1R_ZC */ 30839b8eab7SMark Brown #define WM9090_HPOUT1R_ZC_MASK 0x0080 /* HPOUT1R_ZC */ 30939b8eab7SMark Brown #define WM9090_HPOUT1R_ZC_SHIFT 7 /* HPOUT1R_ZC */ 31039b8eab7SMark Brown #define WM9090_HPOUT1R_ZC_WIDTH 1 /* HPOUT1R_ZC */ 31139b8eab7SMark Brown #define WM9090_HPOUT1R_MUTE 0x0040 /* HPOUT1R_MUTE */ 31239b8eab7SMark Brown #define WM9090_HPOUT1R_MUTE_MASK 0x0040 /* HPOUT1R_MUTE */ 31339b8eab7SMark Brown #define WM9090_HPOUT1R_MUTE_SHIFT 6 /* HPOUT1R_MUTE */ 31439b8eab7SMark Brown #define WM9090_HPOUT1R_MUTE_WIDTH 1 /* HPOUT1R_MUTE */ 31539b8eab7SMark Brown #define WM9090_HPOUT1R_VOL_MASK 0x003F /* HPOUT1R_VOL - [5:0] */ 31639b8eab7SMark Brown #define WM9090_HPOUT1R_VOL_SHIFT 0 /* HPOUT1R_VOL - [5:0] */ 31739b8eab7SMark Brown #define WM9090_HPOUT1R_VOL_WIDTH 6 /* HPOUT1R_VOL - [5:0] */ 31839b8eab7SMark Brown 31939b8eab7SMark Brown /* 32039b8eab7SMark Brown * R34 (0x22) - SPKMIXL Attenuation 32139b8eab7SMark Brown */ 32239b8eab7SMark Brown #define WM9090_SPKMIX_MUTE 0x0100 /* SPKMIX_MUTE */ 32339b8eab7SMark Brown #define WM9090_SPKMIX_MUTE_MASK 0x0100 /* SPKMIX_MUTE */ 32439b8eab7SMark Brown #define WM9090_SPKMIX_MUTE_SHIFT 8 /* SPKMIX_MUTE */ 32539b8eab7SMark Brown #define WM9090_SPKMIX_MUTE_WIDTH 1 /* SPKMIX_MUTE */ 32639b8eab7SMark Brown #define WM9090_IN1A_SPKMIX_VOL_MASK 0x00C0 /* IN1A_SPKMIX_VOL - [7:6] */ 32739b8eab7SMark Brown #define WM9090_IN1A_SPKMIX_VOL_SHIFT 6 /* IN1A_SPKMIX_VOL - [7:6] */ 32839b8eab7SMark Brown #define WM9090_IN1A_SPKMIX_VOL_WIDTH 2 /* IN1A_SPKMIX_VOL - [7:6] */ 32939b8eab7SMark Brown #define WM9090_IN1B_SPKMIX_VOL_MASK 0x0030 /* IN1B_SPKMIX_VOL - [5:4] */ 33039b8eab7SMark Brown #define WM9090_IN1B_SPKMIX_VOL_SHIFT 4 /* IN1B_SPKMIX_VOL - [5:4] */ 33139b8eab7SMark Brown #define WM9090_IN1B_SPKMIX_VOL_WIDTH 2 /* IN1B_SPKMIX_VOL - [5:4] */ 33239b8eab7SMark Brown #define WM9090_IN2A_SPKMIX_VOL_MASK 0x000C /* IN2A_SPKMIX_VOL - [3:2] */ 33339b8eab7SMark Brown #define WM9090_IN2A_SPKMIX_VOL_SHIFT 2 /* IN2A_SPKMIX_VOL - [3:2] */ 33439b8eab7SMark Brown #define WM9090_IN2A_SPKMIX_VOL_WIDTH 2 /* IN2A_SPKMIX_VOL - [3:2] */ 33539b8eab7SMark Brown #define WM9090_IN2B_SPKMIX_VOL_MASK 0x0003 /* IN2B_SPKMIX_VOL - [1:0] */ 33639b8eab7SMark Brown #define WM9090_IN2B_SPKMIX_VOL_SHIFT 0 /* IN2B_SPKMIX_VOL - [1:0] */ 33739b8eab7SMark Brown #define WM9090_IN2B_SPKMIX_VOL_WIDTH 2 /* IN2B_SPKMIX_VOL - [1:0] */ 33839b8eab7SMark Brown 33939b8eab7SMark Brown /* 34039b8eab7SMark Brown * R36 (0x24) - SPKOUT Mixers 34139b8eab7SMark Brown */ 34239b8eab7SMark Brown #define WM9090_SPKMIXL_TO_SPKOUTL 0x0010 /* SPKMIXL_TO_SPKOUTL */ 34339b8eab7SMark Brown #define WM9090_SPKMIXL_TO_SPKOUTL_MASK 0x0010 /* SPKMIXL_TO_SPKOUTL */ 34439b8eab7SMark Brown #define WM9090_SPKMIXL_TO_SPKOUTL_SHIFT 4 /* SPKMIXL_TO_SPKOUTL */ 34539b8eab7SMark Brown #define WM9090_SPKMIXL_TO_SPKOUTL_WIDTH 1 /* SPKMIXL_TO_SPKOUTL */ 34639b8eab7SMark Brown 34739b8eab7SMark Brown /* 34839b8eab7SMark Brown * R37 (0x25) - ClassD3 34939b8eab7SMark Brown */ 35039b8eab7SMark Brown #define WM9090_SPKOUTL_BOOST_MASK 0x0038 /* SPKOUTL_BOOST - [5:3] */ 35139b8eab7SMark Brown #define WM9090_SPKOUTL_BOOST_SHIFT 3 /* SPKOUTL_BOOST - [5:3] */ 35239b8eab7SMark Brown #define WM9090_SPKOUTL_BOOST_WIDTH 3 /* SPKOUTL_BOOST - [5:3] */ 35339b8eab7SMark Brown 35439b8eab7SMark Brown /* 35539b8eab7SMark Brown * R38 (0x26) - Speaker Volume Left 35639b8eab7SMark Brown */ 35739b8eab7SMark Brown #define WM9090_SPKOUT_VU 0x0100 /* SPKOUT_VU */ 35839b8eab7SMark Brown #define WM9090_SPKOUT_VU_MASK 0x0100 /* SPKOUT_VU */ 35939b8eab7SMark Brown #define WM9090_SPKOUT_VU_SHIFT 8 /* SPKOUT_VU */ 36039b8eab7SMark Brown #define WM9090_SPKOUT_VU_WIDTH 1 /* SPKOUT_VU */ 36139b8eab7SMark Brown #define WM9090_SPKOUTL_ZC 0x0080 /* SPKOUTL_ZC */ 36239b8eab7SMark Brown #define WM9090_SPKOUTL_ZC_MASK 0x0080 /* SPKOUTL_ZC */ 36339b8eab7SMark Brown #define WM9090_SPKOUTL_ZC_SHIFT 7 /* SPKOUTL_ZC */ 36439b8eab7SMark Brown #define WM9090_SPKOUTL_ZC_WIDTH 1 /* SPKOUTL_ZC */ 36539b8eab7SMark Brown #define WM9090_SPKOUTL_MUTE 0x0040 /* SPKOUTL_MUTE */ 36639b8eab7SMark Brown #define WM9090_SPKOUTL_MUTE_MASK 0x0040 /* SPKOUTL_MUTE */ 36739b8eab7SMark Brown #define WM9090_SPKOUTL_MUTE_SHIFT 6 /* SPKOUTL_MUTE */ 36839b8eab7SMark Brown #define WM9090_SPKOUTL_MUTE_WIDTH 1 /* SPKOUTL_MUTE */ 36939b8eab7SMark Brown #define WM9090_SPKOUTL_VOL_MASK 0x003F /* SPKOUTL_VOL - [5:0] */ 37039b8eab7SMark Brown #define WM9090_SPKOUTL_VOL_SHIFT 0 /* SPKOUTL_VOL - [5:0] */ 37139b8eab7SMark Brown #define WM9090_SPKOUTL_VOL_WIDTH 6 /* SPKOUTL_VOL - [5:0] */ 37239b8eab7SMark Brown 37339b8eab7SMark Brown /* 37439b8eab7SMark Brown * R45 (0x2D) - Output Mixer1 37539b8eab7SMark Brown */ 37639b8eab7SMark Brown #define WM9090_IN1A_TO_MIXOUTL 0x0040 /* IN1A_TO_MIXOUTL */ 37739b8eab7SMark Brown #define WM9090_IN1A_TO_MIXOUTL_MASK 0x0040 /* IN1A_TO_MIXOUTL */ 37839b8eab7SMark Brown #define WM9090_IN1A_TO_MIXOUTL_SHIFT 6 /* IN1A_TO_MIXOUTL */ 37939b8eab7SMark Brown #define WM9090_IN1A_TO_MIXOUTL_WIDTH 1 /* IN1A_TO_MIXOUTL */ 38039b8eab7SMark Brown #define WM9090_IN2A_TO_MIXOUTL 0x0004 /* IN2A_TO_MIXOUTL */ 38139b8eab7SMark Brown #define WM9090_IN2A_TO_MIXOUTL_MASK 0x0004 /* IN2A_TO_MIXOUTL */ 38239b8eab7SMark Brown #define WM9090_IN2A_TO_MIXOUTL_SHIFT 2 /* IN2A_TO_MIXOUTL */ 38339b8eab7SMark Brown #define WM9090_IN2A_TO_MIXOUTL_WIDTH 1 /* IN2A_TO_MIXOUTL */ 38439b8eab7SMark Brown 38539b8eab7SMark Brown /* 38639b8eab7SMark Brown * R46 (0x2E) - Output Mixer2 38739b8eab7SMark Brown */ 38839b8eab7SMark Brown #define WM9090_IN1A_TO_MIXOUTR 0x0040 /* IN1A_TO_MIXOUTR */ 38939b8eab7SMark Brown #define WM9090_IN1A_TO_MIXOUTR_MASK 0x0040 /* IN1A_TO_MIXOUTR */ 39039b8eab7SMark Brown #define WM9090_IN1A_TO_MIXOUTR_SHIFT 6 /* IN1A_TO_MIXOUTR */ 39139b8eab7SMark Brown #define WM9090_IN1A_TO_MIXOUTR_WIDTH 1 /* IN1A_TO_MIXOUTR */ 39239b8eab7SMark Brown #define WM9090_IN1B_TO_MIXOUTR 0x0010 /* IN1B_TO_MIXOUTR */ 39339b8eab7SMark Brown #define WM9090_IN1B_TO_MIXOUTR_MASK 0x0010 /* IN1B_TO_MIXOUTR */ 39439b8eab7SMark Brown #define WM9090_IN1B_TO_MIXOUTR_SHIFT 4 /* IN1B_TO_MIXOUTR */ 39539b8eab7SMark Brown #define WM9090_IN1B_TO_MIXOUTR_WIDTH 1 /* IN1B_TO_MIXOUTR */ 39639b8eab7SMark Brown #define WM9090_IN2A_TO_MIXOUTR 0x0004 /* IN2A_TO_MIXOUTR */ 39739b8eab7SMark Brown #define WM9090_IN2A_TO_MIXOUTR_MASK 0x0004 /* IN2A_TO_MIXOUTR */ 39839b8eab7SMark Brown #define WM9090_IN2A_TO_MIXOUTR_SHIFT 2 /* IN2A_TO_MIXOUTR */ 39939b8eab7SMark Brown #define WM9090_IN2A_TO_MIXOUTR_WIDTH 1 /* IN2A_TO_MIXOUTR */ 40039b8eab7SMark Brown #define WM9090_IN2B_TO_MIXOUTR 0x0001 /* IN2B_TO_MIXOUTR */ 40139b8eab7SMark Brown #define WM9090_IN2B_TO_MIXOUTR_MASK 0x0001 /* IN2B_TO_MIXOUTR */ 40239b8eab7SMark Brown #define WM9090_IN2B_TO_MIXOUTR_SHIFT 0 /* IN2B_TO_MIXOUTR */ 40339b8eab7SMark Brown #define WM9090_IN2B_TO_MIXOUTR_WIDTH 1 /* IN2B_TO_MIXOUTR */ 40439b8eab7SMark Brown 40539b8eab7SMark Brown /* 40639b8eab7SMark Brown * R47 (0x2F) - Output Mixer3 40739b8eab7SMark Brown */ 40839b8eab7SMark Brown #define WM9090_MIXOUTL_MUTE 0x0100 /* MIXOUTL_MUTE */ 40939b8eab7SMark Brown #define WM9090_MIXOUTL_MUTE_MASK 0x0100 /* MIXOUTL_MUTE */ 41039b8eab7SMark Brown #define WM9090_MIXOUTL_MUTE_SHIFT 8 /* MIXOUTL_MUTE */ 41139b8eab7SMark Brown #define WM9090_MIXOUTL_MUTE_WIDTH 1 /* MIXOUTL_MUTE */ 41239b8eab7SMark Brown #define WM9090_IN1A_MIXOUTL_VOL_MASK 0x00C0 /* IN1A_MIXOUTL_VOL - [7:6] */ 41339b8eab7SMark Brown #define WM9090_IN1A_MIXOUTL_VOL_SHIFT 6 /* IN1A_MIXOUTL_VOL - [7:6] */ 41439b8eab7SMark Brown #define WM9090_IN1A_MIXOUTL_VOL_WIDTH 2 /* IN1A_MIXOUTL_VOL - [7:6] */ 41539b8eab7SMark Brown #define WM9090_IN2A_MIXOUTL_VOL_MASK 0x000C /* IN2A_MIXOUTL_VOL - [3:2] */ 41639b8eab7SMark Brown #define WM9090_IN2A_MIXOUTL_VOL_SHIFT 2 /* IN2A_MIXOUTL_VOL - [3:2] */ 41739b8eab7SMark Brown #define WM9090_IN2A_MIXOUTL_VOL_WIDTH 2 /* IN2A_MIXOUTL_VOL - [3:2] */ 41839b8eab7SMark Brown 41939b8eab7SMark Brown /* 42039b8eab7SMark Brown * R48 (0x30) - Output Mixer4 42139b8eab7SMark Brown */ 42239b8eab7SMark Brown #define WM9090_MIXOUTR_MUTE 0x0100 /* MIXOUTR_MUTE */ 42339b8eab7SMark Brown #define WM9090_MIXOUTR_MUTE_MASK 0x0100 /* MIXOUTR_MUTE */ 42439b8eab7SMark Brown #define WM9090_MIXOUTR_MUTE_SHIFT 8 /* MIXOUTR_MUTE */ 42539b8eab7SMark Brown #define WM9090_MIXOUTR_MUTE_WIDTH 1 /* MIXOUTR_MUTE */ 42639b8eab7SMark Brown #define WM9090_IN1A_MIXOUTR_VOL_MASK 0x00C0 /* IN1A_MIXOUTR_VOL - [7:6] */ 42739b8eab7SMark Brown #define WM9090_IN1A_MIXOUTR_VOL_SHIFT 6 /* IN1A_MIXOUTR_VOL - [7:6] */ 42839b8eab7SMark Brown #define WM9090_IN1A_MIXOUTR_VOL_WIDTH 2 /* IN1A_MIXOUTR_VOL - [7:6] */ 42939b8eab7SMark Brown #define WM9090_IN1B_MIXOUTR_VOL_MASK 0x0030 /* IN1B_MIXOUTR_VOL - [5:4] */ 43039b8eab7SMark Brown #define WM9090_IN1B_MIXOUTR_VOL_SHIFT 4 /* IN1B_MIXOUTR_VOL - [5:4] */ 43139b8eab7SMark Brown #define WM9090_IN1B_MIXOUTR_VOL_WIDTH 2 /* IN1B_MIXOUTR_VOL - [5:4] */ 43239b8eab7SMark Brown #define WM9090_IN2A_MIXOUTR_VOL_MASK 0x000C /* IN2A_MIXOUTR_VOL - [3:2] */ 43339b8eab7SMark Brown #define WM9090_IN2A_MIXOUTR_VOL_SHIFT 2 /* IN2A_MIXOUTR_VOL - [3:2] */ 43439b8eab7SMark Brown #define WM9090_IN2A_MIXOUTR_VOL_WIDTH 2 /* IN2A_MIXOUTR_VOL - [3:2] */ 43539b8eab7SMark Brown #define WM9090_IN2B_MIXOUTR_VOL_MASK 0x0003 /* IN2B_MIXOUTR_VOL - [1:0] */ 43639b8eab7SMark Brown #define WM9090_IN2B_MIXOUTR_VOL_SHIFT 0 /* IN2B_MIXOUTR_VOL - [1:0] */ 43739b8eab7SMark Brown #define WM9090_IN2B_MIXOUTR_VOL_WIDTH 2 /* IN2B_MIXOUTR_VOL - [1:0] */ 43839b8eab7SMark Brown 43939b8eab7SMark Brown /* 44039b8eab7SMark Brown * R54 (0x36) - Speaker Mixer 44139b8eab7SMark Brown */ 44239b8eab7SMark Brown #define WM9090_IN1A_TO_SPKMIX 0x0040 /* IN1A_TO_SPKMIX */ 44339b8eab7SMark Brown #define WM9090_IN1A_TO_SPKMIX_MASK 0x0040 /* IN1A_TO_SPKMIX */ 44439b8eab7SMark Brown #define WM9090_IN1A_TO_SPKMIX_SHIFT 6 /* IN1A_TO_SPKMIX */ 44539b8eab7SMark Brown #define WM9090_IN1A_TO_SPKMIX_WIDTH 1 /* IN1A_TO_SPKMIX */ 44639b8eab7SMark Brown #define WM9090_IN1B_TO_SPKMIX 0x0010 /* IN1B_TO_SPKMIX */ 44739b8eab7SMark Brown #define WM9090_IN1B_TO_SPKMIX_MASK 0x0010 /* IN1B_TO_SPKMIX */ 44839b8eab7SMark Brown #define WM9090_IN1B_TO_SPKMIX_SHIFT 4 /* IN1B_TO_SPKMIX */ 44939b8eab7SMark Brown #define WM9090_IN1B_TO_SPKMIX_WIDTH 1 /* IN1B_TO_SPKMIX */ 45039b8eab7SMark Brown #define WM9090_IN2A_TO_SPKMIX 0x0004 /* IN2A_TO_SPKMIX */ 45139b8eab7SMark Brown #define WM9090_IN2A_TO_SPKMIX_MASK 0x0004 /* IN2A_TO_SPKMIX */ 45239b8eab7SMark Brown #define WM9090_IN2A_TO_SPKMIX_SHIFT 2 /* IN2A_TO_SPKMIX */ 45339b8eab7SMark Brown #define WM9090_IN2A_TO_SPKMIX_WIDTH 1 /* IN2A_TO_SPKMIX */ 45439b8eab7SMark Brown #define WM9090_IN2B_TO_SPKMIX 0x0001 /* IN2B_TO_SPKMIX */ 45539b8eab7SMark Brown #define WM9090_IN2B_TO_SPKMIX_MASK 0x0001 /* IN2B_TO_SPKMIX */ 45639b8eab7SMark Brown #define WM9090_IN2B_TO_SPKMIX_SHIFT 0 /* IN2B_TO_SPKMIX */ 45739b8eab7SMark Brown #define WM9090_IN2B_TO_SPKMIX_WIDTH 1 /* IN2B_TO_SPKMIX */ 45839b8eab7SMark Brown 45939b8eab7SMark Brown /* 46039b8eab7SMark Brown * R57 (0x39) - AntiPOP2 46139b8eab7SMark Brown */ 46239b8eab7SMark Brown #define WM9090_VMID_BUF_ENA 0x0008 /* VMID_BUF_ENA */ 46339b8eab7SMark Brown #define WM9090_VMID_BUF_ENA_MASK 0x0008 /* VMID_BUF_ENA */ 46439b8eab7SMark Brown #define WM9090_VMID_BUF_ENA_SHIFT 3 /* VMID_BUF_ENA */ 46539b8eab7SMark Brown #define WM9090_VMID_BUF_ENA_WIDTH 1 /* VMID_BUF_ENA */ 46639b8eab7SMark Brown #define WM9090_VMID_ENA 0x0001 /* VMID_ENA */ 46739b8eab7SMark Brown #define WM9090_VMID_ENA_MASK 0x0001 /* VMID_ENA */ 46839b8eab7SMark Brown #define WM9090_VMID_ENA_SHIFT 0 /* VMID_ENA */ 46939b8eab7SMark Brown #define WM9090_VMID_ENA_WIDTH 1 /* VMID_ENA */ 47039b8eab7SMark Brown 47139b8eab7SMark Brown /* 47239b8eab7SMark Brown * R70 (0x46) - Write Sequencer 0 47339b8eab7SMark Brown */ 47439b8eab7SMark Brown #define WM9090_WSEQ_ENA 0x0100 /* WSEQ_ENA */ 47539b8eab7SMark Brown #define WM9090_WSEQ_ENA_MASK 0x0100 /* WSEQ_ENA */ 47639b8eab7SMark Brown #define WM9090_WSEQ_ENA_SHIFT 8 /* WSEQ_ENA */ 47739b8eab7SMark Brown #define WM9090_WSEQ_ENA_WIDTH 1 /* WSEQ_ENA */ 47839b8eab7SMark Brown #define WM9090_WSEQ_WRITE_INDEX_MASK 0x000F /* WSEQ_WRITE_INDEX - [3:0] */ 47939b8eab7SMark Brown #define WM9090_WSEQ_WRITE_INDEX_SHIFT 0 /* WSEQ_WRITE_INDEX - [3:0] */ 48039b8eab7SMark Brown #define WM9090_WSEQ_WRITE_INDEX_WIDTH 4 /* WSEQ_WRITE_INDEX - [3:0] */ 48139b8eab7SMark Brown 48239b8eab7SMark Brown /* 48339b8eab7SMark Brown * R71 (0x47) - Write Sequencer 1 48439b8eab7SMark Brown */ 48539b8eab7SMark Brown #define WM9090_WSEQ_DATA_WIDTH_MASK 0x7000 /* WSEQ_DATA_WIDTH - [14:12] */ 48639b8eab7SMark Brown #define WM9090_WSEQ_DATA_WIDTH_SHIFT 12 /* WSEQ_DATA_WIDTH - [14:12] */ 48739b8eab7SMark Brown #define WM9090_WSEQ_DATA_WIDTH_WIDTH 3 /* WSEQ_DATA_WIDTH - [14:12] */ 48839b8eab7SMark Brown #define WM9090_WSEQ_DATA_START_MASK 0x0F00 /* WSEQ_DATA_START - [11:8] */ 48939b8eab7SMark Brown #define WM9090_WSEQ_DATA_START_SHIFT 8 /* WSEQ_DATA_START - [11:8] */ 49039b8eab7SMark Brown #define WM9090_WSEQ_DATA_START_WIDTH 4 /* WSEQ_DATA_START - [11:8] */ 49139b8eab7SMark Brown #define WM9090_WSEQ_ADDR_MASK 0x00FF /* WSEQ_ADDR - [7:0] */ 49239b8eab7SMark Brown #define WM9090_WSEQ_ADDR_SHIFT 0 /* WSEQ_ADDR - [7:0] */ 49339b8eab7SMark Brown #define WM9090_WSEQ_ADDR_WIDTH 8 /* WSEQ_ADDR - [7:0] */ 49439b8eab7SMark Brown 49539b8eab7SMark Brown /* 49639b8eab7SMark Brown * R72 (0x48) - Write Sequencer 2 49739b8eab7SMark Brown */ 49839b8eab7SMark Brown #define WM9090_WSEQ_EOS 0x4000 /* WSEQ_EOS */ 49939b8eab7SMark Brown #define WM9090_WSEQ_EOS_MASK 0x4000 /* WSEQ_EOS */ 50039b8eab7SMark Brown #define WM9090_WSEQ_EOS_SHIFT 14 /* WSEQ_EOS */ 50139b8eab7SMark Brown #define WM9090_WSEQ_EOS_WIDTH 1 /* WSEQ_EOS */ 50239b8eab7SMark Brown #define WM9090_WSEQ_DELAY_MASK 0x0F00 /* WSEQ_DELAY - [11:8] */ 50339b8eab7SMark Brown #define WM9090_WSEQ_DELAY_SHIFT 8 /* WSEQ_DELAY - [11:8] */ 50439b8eab7SMark Brown #define WM9090_WSEQ_DELAY_WIDTH 4 /* WSEQ_DELAY - [11:8] */ 50539b8eab7SMark Brown #define WM9090_WSEQ_DATA_MASK 0x00FF /* WSEQ_DATA - [7:0] */ 50639b8eab7SMark Brown #define WM9090_WSEQ_DATA_SHIFT 0 /* WSEQ_DATA - [7:0] */ 50739b8eab7SMark Brown #define WM9090_WSEQ_DATA_WIDTH 8 /* WSEQ_DATA - [7:0] */ 50839b8eab7SMark Brown 50939b8eab7SMark Brown /* 51039b8eab7SMark Brown * R73 (0x49) - Write Sequencer 3 51139b8eab7SMark Brown */ 51239b8eab7SMark Brown #define WM9090_WSEQ_ABORT 0x0200 /* WSEQ_ABORT */ 51339b8eab7SMark Brown #define WM9090_WSEQ_ABORT_MASK 0x0200 /* WSEQ_ABORT */ 51439b8eab7SMark Brown #define WM9090_WSEQ_ABORT_SHIFT 9 /* WSEQ_ABORT */ 51539b8eab7SMark Brown #define WM9090_WSEQ_ABORT_WIDTH 1 /* WSEQ_ABORT */ 51639b8eab7SMark Brown #define WM9090_WSEQ_START 0x0100 /* WSEQ_START */ 51739b8eab7SMark Brown #define WM9090_WSEQ_START_MASK 0x0100 /* WSEQ_START */ 51839b8eab7SMark Brown #define WM9090_WSEQ_START_SHIFT 8 /* WSEQ_START */ 51939b8eab7SMark Brown #define WM9090_WSEQ_START_WIDTH 1 /* WSEQ_START */ 52039b8eab7SMark Brown #define WM9090_WSEQ_START_INDEX_MASK 0x003F /* WSEQ_START_INDEX - [5:0] */ 52139b8eab7SMark Brown #define WM9090_WSEQ_START_INDEX_SHIFT 0 /* WSEQ_START_INDEX - [5:0] */ 52239b8eab7SMark Brown #define WM9090_WSEQ_START_INDEX_WIDTH 6 /* WSEQ_START_INDEX - [5:0] */ 52339b8eab7SMark Brown 52439b8eab7SMark Brown /* 52539b8eab7SMark Brown * R74 (0x4A) - Write Sequencer 4 52639b8eab7SMark Brown */ 52739b8eab7SMark Brown #define WM9090_WSEQ_BUSY 0x0001 /* WSEQ_BUSY */ 52839b8eab7SMark Brown #define WM9090_WSEQ_BUSY_MASK 0x0001 /* WSEQ_BUSY */ 52939b8eab7SMark Brown #define WM9090_WSEQ_BUSY_SHIFT 0 /* WSEQ_BUSY */ 53039b8eab7SMark Brown #define WM9090_WSEQ_BUSY_WIDTH 1 /* WSEQ_BUSY */ 53139b8eab7SMark Brown 53239b8eab7SMark Brown /* 53339b8eab7SMark Brown * R75 (0x4B) - Write Sequencer 5 53439b8eab7SMark Brown */ 53539b8eab7SMark Brown #define WM9090_WSEQ_CURRENT_INDEX_MASK 0x003F /* WSEQ_CURRENT_INDEX - [5:0] */ 53639b8eab7SMark Brown #define WM9090_WSEQ_CURRENT_INDEX_SHIFT 0 /* WSEQ_CURRENT_INDEX - [5:0] */ 53739b8eab7SMark Brown #define WM9090_WSEQ_CURRENT_INDEX_WIDTH 6 /* WSEQ_CURRENT_INDEX - [5:0] */ 53839b8eab7SMark Brown 53939b8eab7SMark Brown /* 54039b8eab7SMark Brown * R76 (0x4C) - Charge Pump 1 54139b8eab7SMark Brown */ 54239b8eab7SMark Brown #define WM9090_CP_ENA 0x8000 /* CP_ENA */ 54339b8eab7SMark Brown #define WM9090_CP_ENA_MASK 0x8000 /* CP_ENA */ 54439b8eab7SMark Brown #define WM9090_CP_ENA_SHIFT 15 /* CP_ENA */ 54539b8eab7SMark Brown #define WM9090_CP_ENA_WIDTH 1 /* CP_ENA */ 54639b8eab7SMark Brown 54739b8eab7SMark Brown /* 54839b8eab7SMark Brown * R84 (0x54) - DC Servo 0 54939b8eab7SMark Brown */ 55039b8eab7SMark Brown #define WM9090_DCS_TRIG_SINGLE_1 0x2000 /* DCS_TRIG_SINGLE_1 */ 55139b8eab7SMark Brown #define WM9090_DCS_TRIG_SINGLE_1_MASK 0x2000 /* DCS_TRIG_SINGLE_1 */ 55239b8eab7SMark Brown #define WM9090_DCS_TRIG_SINGLE_1_SHIFT 13 /* DCS_TRIG_SINGLE_1 */ 55339b8eab7SMark Brown #define WM9090_DCS_TRIG_SINGLE_1_WIDTH 1 /* DCS_TRIG_SINGLE_1 */ 55439b8eab7SMark Brown #define WM9090_DCS_TRIG_SINGLE_0 0x1000 /* DCS_TRIG_SINGLE_0 */ 55539b8eab7SMark Brown #define WM9090_DCS_TRIG_SINGLE_0_MASK 0x1000 /* DCS_TRIG_SINGLE_0 */ 55639b8eab7SMark Brown #define WM9090_DCS_TRIG_SINGLE_0_SHIFT 12 /* DCS_TRIG_SINGLE_0 */ 55739b8eab7SMark Brown #define WM9090_DCS_TRIG_SINGLE_0_WIDTH 1 /* DCS_TRIG_SINGLE_0 */ 55839b8eab7SMark Brown #define WM9090_DCS_TRIG_SERIES_1 0x0200 /* DCS_TRIG_SERIES_1 */ 55939b8eab7SMark Brown #define WM9090_DCS_TRIG_SERIES_1_MASK 0x0200 /* DCS_TRIG_SERIES_1 */ 56039b8eab7SMark Brown #define WM9090_DCS_TRIG_SERIES_1_SHIFT 9 /* DCS_TRIG_SERIES_1 */ 56139b8eab7SMark Brown #define WM9090_DCS_TRIG_SERIES_1_WIDTH 1 /* DCS_TRIG_SERIES_1 */ 56239b8eab7SMark Brown #define WM9090_DCS_TRIG_SERIES_0 0x0100 /* DCS_TRIG_SERIES_0 */ 56339b8eab7SMark Brown #define WM9090_DCS_TRIG_SERIES_0_MASK 0x0100 /* DCS_TRIG_SERIES_0 */ 56439b8eab7SMark Brown #define WM9090_DCS_TRIG_SERIES_0_SHIFT 8 /* DCS_TRIG_SERIES_0 */ 56539b8eab7SMark Brown #define WM9090_DCS_TRIG_SERIES_0_WIDTH 1 /* DCS_TRIG_SERIES_0 */ 56639b8eab7SMark Brown #define WM9090_DCS_TRIG_STARTUP_1 0x0020 /* DCS_TRIG_STARTUP_1 */ 56739b8eab7SMark Brown #define WM9090_DCS_TRIG_STARTUP_1_MASK 0x0020 /* DCS_TRIG_STARTUP_1 */ 56839b8eab7SMark Brown #define WM9090_DCS_TRIG_STARTUP_1_SHIFT 5 /* DCS_TRIG_STARTUP_1 */ 56939b8eab7SMark Brown #define WM9090_DCS_TRIG_STARTUP_1_WIDTH 1 /* DCS_TRIG_STARTUP_1 */ 57039b8eab7SMark Brown #define WM9090_DCS_TRIG_STARTUP_0 0x0010 /* DCS_TRIG_STARTUP_0 */ 57139b8eab7SMark Brown #define WM9090_DCS_TRIG_STARTUP_0_MASK 0x0010 /* DCS_TRIG_STARTUP_0 */ 57239b8eab7SMark Brown #define WM9090_DCS_TRIG_STARTUP_0_SHIFT 4 /* DCS_TRIG_STARTUP_0 */ 57339b8eab7SMark Brown #define WM9090_DCS_TRIG_STARTUP_0_WIDTH 1 /* DCS_TRIG_STARTUP_0 */ 57439b8eab7SMark Brown #define WM9090_DCS_TRIG_DAC_WR_1 0x0008 /* DCS_TRIG_DAC_WR_1 */ 57539b8eab7SMark Brown #define WM9090_DCS_TRIG_DAC_WR_1_MASK 0x0008 /* DCS_TRIG_DAC_WR_1 */ 57639b8eab7SMark Brown #define WM9090_DCS_TRIG_DAC_WR_1_SHIFT 3 /* DCS_TRIG_DAC_WR_1 */ 57739b8eab7SMark Brown #define WM9090_DCS_TRIG_DAC_WR_1_WIDTH 1 /* DCS_TRIG_DAC_WR_1 */ 57839b8eab7SMark Brown #define WM9090_DCS_TRIG_DAC_WR_0 0x0004 /* DCS_TRIG_DAC_WR_0 */ 57939b8eab7SMark Brown #define WM9090_DCS_TRIG_DAC_WR_0_MASK 0x0004 /* DCS_TRIG_DAC_WR_0 */ 58039b8eab7SMark Brown #define WM9090_DCS_TRIG_DAC_WR_0_SHIFT 2 /* DCS_TRIG_DAC_WR_0 */ 58139b8eab7SMark Brown #define WM9090_DCS_TRIG_DAC_WR_0_WIDTH 1 /* DCS_TRIG_DAC_WR_0 */ 58239b8eab7SMark Brown #define WM9090_DCS_ENA_CHAN_1 0x0002 /* DCS_ENA_CHAN_1 */ 58339b8eab7SMark Brown #define WM9090_DCS_ENA_CHAN_1_MASK 0x0002 /* DCS_ENA_CHAN_1 */ 58439b8eab7SMark Brown #define WM9090_DCS_ENA_CHAN_1_SHIFT 1 /* DCS_ENA_CHAN_1 */ 58539b8eab7SMark Brown #define WM9090_DCS_ENA_CHAN_1_WIDTH 1 /* DCS_ENA_CHAN_1 */ 58639b8eab7SMark Brown #define WM9090_DCS_ENA_CHAN_0 0x0001 /* DCS_ENA_CHAN_0 */ 58739b8eab7SMark Brown #define WM9090_DCS_ENA_CHAN_0_MASK 0x0001 /* DCS_ENA_CHAN_0 */ 58839b8eab7SMark Brown #define WM9090_DCS_ENA_CHAN_0_SHIFT 0 /* DCS_ENA_CHAN_0 */ 58939b8eab7SMark Brown #define WM9090_DCS_ENA_CHAN_0_WIDTH 1 /* DCS_ENA_CHAN_0 */ 59039b8eab7SMark Brown 59139b8eab7SMark Brown /* 59239b8eab7SMark Brown * R85 (0x55) - DC Servo 1 59339b8eab7SMark Brown */ 59439b8eab7SMark Brown #define WM9090_DCS_SERIES_NO_01_MASK 0x0FE0 /* DCS_SERIES_NO_01 - [11:5] */ 59539b8eab7SMark Brown #define WM9090_DCS_SERIES_NO_01_SHIFT 5 /* DCS_SERIES_NO_01 - [11:5] */ 59639b8eab7SMark Brown #define WM9090_DCS_SERIES_NO_01_WIDTH 7 /* DCS_SERIES_NO_01 - [11:5] */ 59739b8eab7SMark Brown #define WM9090_DCS_TIMER_PERIOD_01_MASK 0x000F /* DCS_TIMER_PERIOD_01 - [3:0] */ 59839b8eab7SMark Brown #define WM9090_DCS_TIMER_PERIOD_01_SHIFT 0 /* DCS_TIMER_PERIOD_01 - [3:0] */ 59939b8eab7SMark Brown #define WM9090_DCS_TIMER_PERIOD_01_WIDTH 4 /* DCS_TIMER_PERIOD_01 - [3:0] */ 60039b8eab7SMark Brown 60139b8eab7SMark Brown /* 60239b8eab7SMark Brown * R87 (0x57) - DC Servo 3 60339b8eab7SMark Brown */ 60439b8eab7SMark Brown #define WM9090_DCS_DAC_WR_VAL_1_MASK 0xFF00 /* DCS_DAC_WR_VAL_1 - [15:8] */ 60539b8eab7SMark Brown #define WM9090_DCS_DAC_WR_VAL_1_SHIFT 8 /* DCS_DAC_WR_VAL_1 - [15:8] */ 60639b8eab7SMark Brown #define WM9090_DCS_DAC_WR_VAL_1_WIDTH 8 /* DCS_DAC_WR_VAL_1 - [15:8] */ 60739b8eab7SMark Brown #define WM9090_DCS_DAC_WR_VAL_0_MASK 0x00FF /* DCS_DAC_WR_VAL_0 - [7:0] */ 60839b8eab7SMark Brown #define WM9090_DCS_DAC_WR_VAL_0_SHIFT 0 /* DCS_DAC_WR_VAL_0 - [7:0] */ 60939b8eab7SMark Brown #define WM9090_DCS_DAC_WR_VAL_0_WIDTH 8 /* DCS_DAC_WR_VAL_0 - [7:0] */ 61039b8eab7SMark Brown 61139b8eab7SMark Brown /* 61239b8eab7SMark Brown * R88 (0x58) - DC Servo Readback 0 61339b8eab7SMark Brown */ 61439b8eab7SMark Brown #define WM9090_DCS_CAL_COMPLETE_MASK 0x0300 /* DCS_CAL_COMPLETE - [9:8] */ 61539b8eab7SMark Brown #define WM9090_DCS_CAL_COMPLETE_SHIFT 8 /* DCS_CAL_COMPLETE - [9:8] */ 61639b8eab7SMark Brown #define WM9090_DCS_CAL_COMPLETE_WIDTH 2 /* DCS_CAL_COMPLETE - [9:8] */ 61739b8eab7SMark Brown #define WM9090_DCS_DAC_WR_COMPLETE_MASK 0x0030 /* DCS_DAC_WR_COMPLETE - [5:4] */ 61839b8eab7SMark Brown #define WM9090_DCS_DAC_WR_COMPLETE_SHIFT 4 /* DCS_DAC_WR_COMPLETE - [5:4] */ 61939b8eab7SMark Brown #define WM9090_DCS_DAC_WR_COMPLETE_WIDTH 2 /* DCS_DAC_WR_COMPLETE - [5:4] */ 62039b8eab7SMark Brown #define WM9090_DCS_STARTUP_COMPLETE_MASK 0x0003 /* DCS_STARTUP_COMPLETE - [1:0] */ 62139b8eab7SMark Brown #define WM9090_DCS_STARTUP_COMPLETE_SHIFT 0 /* DCS_STARTUP_COMPLETE - [1:0] */ 62239b8eab7SMark Brown #define WM9090_DCS_STARTUP_COMPLETE_WIDTH 2 /* DCS_STARTUP_COMPLETE - [1:0] */ 62339b8eab7SMark Brown 62439b8eab7SMark Brown /* 62539b8eab7SMark Brown * R89 (0x59) - DC Servo Readback 1 62639b8eab7SMark Brown */ 62739b8eab7SMark Brown #define WM9090_DCS_DAC_WR_VAL_1_RD_MASK 0x00FF /* DCS_DAC_WR_VAL_1_RD - [7:0] */ 62839b8eab7SMark Brown #define WM9090_DCS_DAC_WR_VAL_1_RD_SHIFT 0 /* DCS_DAC_WR_VAL_1_RD - [7:0] */ 62939b8eab7SMark Brown #define WM9090_DCS_DAC_WR_VAL_1_RD_WIDTH 8 /* DCS_DAC_WR_VAL_1_RD - [7:0] */ 63039b8eab7SMark Brown 63139b8eab7SMark Brown /* 63239b8eab7SMark Brown * R90 (0x5A) - DC Servo Readback 2 63339b8eab7SMark Brown */ 63439b8eab7SMark Brown #define WM9090_DCS_DAC_WR_VAL_0_RD_MASK 0x00FF /* DCS_DAC_WR_VAL_0_RD - [7:0] */ 63539b8eab7SMark Brown #define WM9090_DCS_DAC_WR_VAL_0_RD_SHIFT 0 /* DCS_DAC_WR_VAL_0_RD - [7:0] */ 63639b8eab7SMark Brown #define WM9090_DCS_DAC_WR_VAL_0_RD_WIDTH 8 /* DCS_DAC_WR_VAL_0_RD - [7:0] */ 63739b8eab7SMark Brown 63839b8eab7SMark Brown /* 63939b8eab7SMark Brown * R96 (0x60) - Analogue HP 0 64039b8eab7SMark Brown */ 64139b8eab7SMark Brown #define WM9090_HPOUT1L_RMV_SHORT 0x0080 /* HPOUT1L_RMV_SHORT */ 64239b8eab7SMark Brown #define WM9090_HPOUT1L_RMV_SHORT_MASK 0x0080 /* HPOUT1L_RMV_SHORT */ 64339b8eab7SMark Brown #define WM9090_HPOUT1L_RMV_SHORT_SHIFT 7 /* HPOUT1L_RMV_SHORT */ 64439b8eab7SMark Brown #define WM9090_HPOUT1L_RMV_SHORT_WIDTH 1 /* HPOUT1L_RMV_SHORT */ 64539b8eab7SMark Brown #define WM9090_HPOUT1L_OUTP 0x0040 /* HPOUT1L_OUTP */ 64639b8eab7SMark Brown #define WM9090_HPOUT1L_OUTP_MASK 0x0040 /* HPOUT1L_OUTP */ 64739b8eab7SMark Brown #define WM9090_HPOUT1L_OUTP_SHIFT 6 /* HPOUT1L_OUTP */ 64839b8eab7SMark Brown #define WM9090_HPOUT1L_OUTP_WIDTH 1 /* HPOUT1L_OUTP */ 64939b8eab7SMark Brown #define WM9090_HPOUT1L_DLY 0x0020 /* HPOUT1L_DLY */ 65039b8eab7SMark Brown #define WM9090_HPOUT1L_DLY_MASK 0x0020 /* HPOUT1L_DLY */ 65139b8eab7SMark Brown #define WM9090_HPOUT1L_DLY_SHIFT 5 /* HPOUT1L_DLY */ 65239b8eab7SMark Brown #define WM9090_HPOUT1L_DLY_WIDTH 1 /* HPOUT1L_DLY */ 65339b8eab7SMark Brown #define WM9090_HPOUT1R_RMV_SHORT 0x0008 /* HPOUT1R_RMV_SHORT */ 65439b8eab7SMark Brown #define WM9090_HPOUT1R_RMV_SHORT_MASK 0x0008 /* HPOUT1R_RMV_SHORT */ 65539b8eab7SMark Brown #define WM9090_HPOUT1R_RMV_SHORT_SHIFT 3 /* HPOUT1R_RMV_SHORT */ 65639b8eab7SMark Brown #define WM9090_HPOUT1R_RMV_SHORT_WIDTH 1 /* HPOUT1R_RMV_SHORT */ 65739b8eab7SMark Brown #define WM9090_HPOUT1R_OUTP 0x0004 /* HPOUT1R_OUTP */ 65839b8eab7SMark Brown #define WM9090_HPOUT1R_OUTP_MASK 0x0004 /* HPOUT1R_OUTP */ 65939b8eab7SMark Brown #define WM9090_HPOUT1R_OUTP_SHIFT 2 /* HPOUT1R_OUTP */ 66039b8eab7SMark Brown #define WM9090_HPOUT1R_OUTP_WIDTH 1 /* HPOUT1R_OUTP */ 66139b8eab7SMark Brown #define WM9090_HPOUT1R_DLY 0x0002 /* HPOUT1R_DLY */ 66239b8eab7SMark Brown #define WM9090_HPOUT1R_DLY_MASK 0x0002 /* HPOUT1R_DLY */ 66339b8eab7SMark Brown #define WM9090_HPOUT1R_DLY_SHIFT 1 /* HPOUT1R_DLY */ 66439b8eab7SMark Brown #define WM9090_HPOUT1R_DLY_WIDTH 1 /* HPOUT1R_DLY */ 66539b8eab7SMark Brown 66639b8eab7SMark Brown /* 66739b8eab7SMark Brown * R98 (0x62) - AGC Control 0 66839b8eab7SMark Brown */ 66939b8eab7SMark Brown #define WM9090_AGC_CLIP_ENA 0x8000 /* AGC_CLIP_ENA */ 67039b8eab7SMark Brown #define WM9090_AGC_CLIP_ENA_MASK 0x8000 /* AGC_CLIP_ENA */ 67139b8eab7SMark Brown #define WM9090_AGC_CLIP_ENA_SHIFT 15 /* AGC_CLIP_ENA */ 67239b8eab7SMark Brown #define WM9090_AGC_CLIP_ENA_WIDTH 1 /* AGC_CLIP_ENA */ 67339b8eab7SMark Brown #define WM9090_AGC_CLIP_THR_MASK 0x0F00 /* AGC_CLIP_THR - [11:8] */ 67439b8eab7SMark Brown #define WM9090_AGC_CLIP_THR_SHIFT 8 /* AGC_CLIP_THR - [11:8] */ 67539b8eab7SMark Brown #define WM9090_AGC_CLIP_THR_WIDTH 4 /* AGC_CLIP_THR - [11:8] */ 67639b8eab7SMark Brown #define WM9090_AGC_CLIP_ATK_MASK 0x0070 /* AGC_CLIP_ATK - [6:4] */ 67739b8eab7SMark Brown #define WM9090_AGC_CLIP_ATK_SHIFT 4 /* AGC_CLIP_ATK - [6:4] */ 67839b8eab7SMark Brown #define WM9090_AGC_CLIP_ATK_WIDTH 3 /* AGC_CLIP_ATK - [6:4] */ 67939b8eab7SMark Brown #define WM9090_AGC_CLIP_DCY_MASK 0x0007 /* AGC_CLIP_DCY - [2:0] */ 68039b8eab7SMark Brown #define WM9090_AGC_CLIP_DCY_SHIFT 0 /* AGC_CLIP_DCY - [2:0] */ 68139b8eab7SMark Brown #define WM9090_AGC_CLIP_DCY_WIDTH 3 /* AGC_CLIP_DCY - [2:0] */ 68239b8eab7SMark Brown 68339b8eab7SMark Brown /* 68439b8eab7SMark Brown * R99 (0x63) - AGC Control 1 68539b8eab7SMark Brown */ 68639b8eab7SMark Brown #define WM9090_AGC_PWR_ENA 0x8000 /* AGC_PWR_ENA */ 68739b8eab7SMark Brown #define WM9090_AGC_PWR_ENA_MASK 0x8000 /* AGC_PWR_ENA */ 68839b8eab7SMark Brown #define WM9090_AGC_PWR_ENA_SHIFT 15 /* AGC_PWR_ENA */ 68939b8eab7SMark Brown #define WM9090_AGC_PWR_ENA_WIDTH 1 /* AGC_PWR_ENA */ 69039b8eab7SMark Brown #define WM9090_AGC_PWR_AVG 0x1000 /* AGC_PWR_AVG */ 69139b8eab7SMark Brown #define WM9090_AGC_PWR_AVG_MASK 0x1000 /* AGC_PWR_AVG */ 69239b8eab7SMark Brown #define WM9090_AGC_PWR_AVG_SHIFT 12 /* AGC_PWR_AVG */ 69339b8eab7SMark Brown #define WM9090_AGC_PWR_AVG_WIDTH 1 /* AGC_PWR_AVG */ 69439b8eab7SMark Brown #define WM9090_AGC_PWR_THR_MASK 0x0F00 /* AGC_PWR_THR - [11:8] */ 69539b8eab7SMark Brown #define WM9090_AGC_PWR_THR_SHIFT 8 /* AGC_PWR_THR - [11:8] */ 69639b8eab7SMark Brown #define WM9090_AGC_PWR_THR_WIDTH 4 /* AGC_PWR_THR - [11:8] */ 69739b8eab7SMark Brown #define WM9090_AGC_PWR_ATK_MASK 0x0070 /* AGC_PWR_ATK - [6:4] */ 69839b8eab7SMark Brown #define WM9090_AGC_PWR_ATK_SHIFT 4 /* AGC_PWR_ATK - [6:4] */ 69939b8eab7SMark Brown #define WM9090_AGC_PWR_ATK_WIDTH 3 /* AGC_PWR_ATK - [6:4] */ 70039b8eab7SMark Brown #define WM9090_AGC_PWR_DCY_MASK 0x0007 /* AGC_PWR_DCY - [2:0] */ 70139b8eab7SMark Brown #define WM9090_AGC_PWR_DCY_SHIFT 0 /* AGC_PWR_DCY - [2:0] */ 70239b8eab7SMark Brown #define WM9090_AGC_PWR_DCY_WIDTH 3 /* AGC_PWR_DCY - [2:0] */ 70339b8eab7SMark Brown 70439b8eab7SMark Brown /* 70539b8eab7SMark Brown * R100 (0x64) - AGC Control 2 70639b8eab7SMark Brown */ 70739b8eab7SMark Brown #define WM9090_AGC_RAMP 0x0100 /* AGC_RAMP */ 70839b8eab7SMark Brown #define WM9090_AGC_RAMP_MASK 0x0100 /* AGC_RAMP */ 70939b8eab7SMark Brown #define WM9090_AGC_RAMP_SHIFT 8 /* AGC_RAMP */ 71039b8eab7SMark Brown #define WM9090_AGC_RAMP_WIDTH 1 /* AGC_RAMP */ 71139b8eab7SMark Brown #define WM9090_AGC_MINGAIN_MASK 0x003F /* AGC_MINGAIN - [5:0] */ 71239b8eab7SMark Brown #define WM9090_AGC_MINGAIN_SHIFT 0 /* AGC_MINGAIN - [5:0] */ 71339b8eab7SMark Brown #define WM9090_AGC_MINGAIN_WIDTH 6 /* AGC_MINGAIN - [5:0] */ 71439b8eab7SMark Brown 71539b8eab7SMark Brown #endif 716