1*4882a593Smuzhiyun /* 2*4882a593Smuzhiyun * rk1000_codec.h -- rk1000 ALSA Soc Audio driver 3*4882a593Smuzhiyun * 4*4882a593Smuzhiyun * Copyright (c) 2017, Fuzhou Rockchip Electronics Co., Ltd All rights reserved. 5*4882a593Smuzhiyun * 6*4882a593Smuzhiyun * This program is free software; you can redistribute it and/or modify it 7*4882a593Smuzhiyun * under the terms and conditions of the GNU General Public License, 8*4882a593Smuzhiyun * version 2, as published by the Free Software Foundation. 9*4882a593Smuzhiyun * 10*4882a593Smuzhiyun * This program is distributed in the hope it will be useful, but WITHOUT 11*4882a593Smuzhiyun * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12*4882a593Smuzhiyun * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 13*4882a593Smuzhiyun * more details. 14*4882a593Smuzhiyun * 15*4882a593Smuzhiyun * You should have received a copy of the GNU General Public License 16*4882a593Smuzhiyun * along with this program. If not, see <http://www.gnu.org/licenses/>. 17*4882a593Smuzhiyun * 18*4882a593Smuzhiyun */ 19*4882a593Smuzhiyun #ifndef _RK1000_CODEC_H 20*4882a593Smuzhiyun #define _RK1000_CODEC_H 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun /* RK1000 register space */ 23*4882a593Smuzhiyun /* ADC High Pass Filter / DSM */ 24*4882a593Smuzhiyun #define ACCELCODEC_R00 0x00 25*4882a593Smuzhiyun /* DITHER power */ 26*4882a593Smuzhiyun #define ACCELCODEC_R01 0x01 27*4882a593Smuzhiyun /* DITHER power */ 28*4882a593Smuzhiyun #define ACCELCODEC_R02 0x02 29*4882a593Smuzhiyun /* DITHER power */ 30*4882a593Smuzhiyun #define ACCELCODEC_R03 0x03 31*4882a593Smuzhiyun /* Soft mute / sidetone gain control */ 32*4882a593Smuzhiyun #define ACCELCODEC_R04 0x04 33*4882a593Smuzhiyun /* Right interpolate filter volume control (MSB) */ 34*4882a593Smuzhiyun #define ACCELCODEC_R05 0x05 35*4882a593Smuzhiyun /* Right interpolate filter volume control (LSB) */ 36*4882a593Smuzhiyun #define ACCELCODEC_R06 0x06 37*4882a593Smuzhiyun /* Left interpolate filter volume control (MSB) */ 38*4882a593Smuzhiyun #define ACCELCODEC_R07 0x07 39*4882a593Smuzhiyun /* Left interpolate filter volume control (LSB) */ 40*4882a593Smuzhiyun #define ACCELCODEC_R08 0x08 41*4882a593Smuzhiyun /* Audio interface control */ 42*4882a593Smuzhiyun #define ACCELCODEC_R09 0x09 43*4882a593Smuzhiyun /* Sample Rate / CLK control */ 44*4882a593Smuzhiyun #define ACCELCODEC_R0A 0x0A 45*4882a593Smuzhiyun /* Decimation filter / Interpolate filter enable */ 46*4882a593Smuzhiyun #define ACCELCODEC_R0B 0x0B 47*4882a593Smuzhiyun /* LIN volume */ 48*4882a593Smuzhiyun #define ACCELCODEC_R0C 0x0C 49*4882a593Smuzhiyun /* LIP volume */ 50*4882a593Smuzhiyun #define ACCELCODEC_R0D 0x0D 51*4882a593Smuzhiyun /* AL volume */ 52*4882a593Smuzhiyun #define ACCELCODEC_R0E 0x0E 53*4882a593Smuzhiyun /* Input volume */ 54*4882a593Smuzhiyun #define ACCELCODEC_R12 0x12 55*4882a593Smuzhiyun /* Left out mix */ 56*4882a593Smuzhiyun #define ACCELCODEC_R13 0x13 57*4882a593Smuzhiyun /* Right out mix */ 58*4882a593Smuzhiyun #define ACCELCODEC_R14 0x14 59*4882a593Smuzhiyun /* LPF out mix / SCF */ 60*4882a593Smuzhiyun #define ACCELCODEC_R15 0x15 61*4882a593Smuzhiyun /* SCF control */ 62*4882a593Smuzhiyun #define ACCELCODEC_R16 0x16 63*4882a593Smuzhiyun /* LOUT (AOL) volume */ 64*4882a593Smuzhiyun #define ACCELCODEC_R17 0x17 65*4882a593Smuzhiyun /* ROUT (AOR) volume */ 66*4882a593Smuzhiyun #define ACCELCODEC_R18 0x18 67*4882a593Smuzhiyun /* MONOOUT (AOM) volume */ 68*4882a593Smuzhiyun #define ACCELCODEC_R19 0x19 69*4882a593Smuzhiyun /* MONOOUT / Reference control */ 70*4882a593Smuzhiyun #define ACCELCODEC_R1A 0x1A 71*4882a593Smuzhiyun /* Bias Current control */ 72*4882a593Smuzhiyun #define ACCELCODEC_R1B 0x1B 73*4882a593Smuzhiyun /* ADC control */ 74*4882a593Smuzhiyun #define ACCELCODEC_R1C 0x1C 75*4882a593Smuzhiyun /* Power Mrg 1 */ 76*4882a593Smuzhiyun #define ACCELCODEC_R1D 0x1D 77*4882a593Smuzhiyun /* Power Mrg 2 */ 78*4882a593Smuzhiyun #define ACCELCODEC_R1E 0x1E 79*4882a593Smuzhiyun /* Power Mrg 3 */ 80*4882a593Smuzhiyun #define ACCELCODEC_R1F 0x1F 81*4882a593Smuzhiyun 82*4882a593Smuzhiyun /* ACCELCODEC_R00 */ 83*4882a593Smuzhiyun /* high_pass filter */ 84*4882a593Smuzhiyun #define ASC_HPF_ENABLE (0x1) 85*4882a593Smuzhiyun #define ASC_HPF_DISABLE (0x0) 86*4882a593Smuzhiyun 87*4882a593Smuzhiyun #define ASC_DSM_MODE_ENABLE (0x1 << 1) 88*4882a593Smuzhiyun #define ASC_DSM_MODE_DISABLE (0x0 << 1) 89*4882a593Smuzhiyun 90*4882a593Smuzhiyun #define ASC_SCRAMBLE_ENABLE (0x1 << 2) 91*4882a593Smuzhiyun #define ASC_SCRAMBLE_DISABLE (0x0 << 2) 92*4882a593Smuzhiyun 93*4882a593Smuzhiyun #define ASC_DITHER_ENABLE (0x1 << 3) 94*4882a593Smuzhiyun #define ASC_DITHER_DISABLE (0x0 << 3) 95*4882a593Smuzhiyun 96*4882a593Smuzhiyun #define ASC_BCLKDIV_4 (0x1 << 4) 97*4882a593Smuzhiyun #define ASC_BCLKDIV_8 (0x2 << 4) 98*4882a593Smuzhiyun #define ASC_BCLKDIV_16 (0x3 << 4) 99*4882a593Smuzhiyun 100*4882a593Smuzhiyun /* ACCECODEC_R04 */ 101*4882a593Smuzhiyun #define ASC_INT_MUTE_L (0x1) 102*4882a593Smuzhiyun #define ASC_INT_ACTIVE_L (0x0) 103*4882a593Smuzhiyun #define ASC_INT_MUTE_R (0x1 << 1) 104*4882a593Smuzhiyun #define ASC_INT_ACTIVE_R (0x0 << 1) 105*4882a593Smuzhiyun 106*4882a593Smuzhiyun #define ASC_SIDETONE_L_OFF (0x0 << 2) 107*4882a593Smuzhiyun #define ASC_SIDETONE_L_GAIN_MAX (0x1 << 2) 108*4882a593Smuzhiyun #define ASC_SIDETONE_R_OFF (0x0 << 5) 109*4882a593Smuzhiyun #define ASC_SIDETONE_R_GAIN_MAX (0x1 << 5) 110*4882a593Smuzhiyun 111*4882a593Smuzhiyun /* ACCELCODEC_R05 */ 112*4882a593Smuzhiyun #define ASC_INT_VOL_0DB (0x0) 113*4882a593Smuzhiyun 114*4882a593Smuzhiyun /* ACCELCODEC_R09 */ 115*4882a593Smuzhiyun #define ASC_DSP_MODE (0x3) 116*4882a593Smuzhiyun #define ASC_I2S_MODE (0x2) 117*4882a593Smuzhiyun #define ASC_LEFT_MODE (0x1) 118*4882a593Smuzhiyun #define ASC_RIGHT_MODE (0x0) 119*4882a593Smuzhiyun 120*4882a593Smuzhiyun #define ASC_32BIT_MODE (0x3 << 2) 121*4882a593Smuzhiyun #define ASC_24BIT_MODE (0x2 << 2) 122*4882a593Smuzhiyun #define ASC_20BIT_MODE (0x1 << 2) 123*4882a593Smuzhiyun #define ASC_16BIT_MODE (0x0 << 2) 124*4882a593Smuzhiyun 125*4882a593Smuzhiyun #define ASC_INVERT_LRCLK (0x1 << 4) 126*4882a593Smuzhiyun #define ASC_NORMAL_LRCLK (0x0 << 4) 127*4882a593Smuzhiyun 128*4882a593Smuzhiyun #define ASC_LRSWAP_ENABLE (0x1 << 5) 129*4882a593Smuzhiyun #define ASC_LRSWAP_DISABLE (0x0 << 5) 130*4882a593Smuzhiyun 131*4882a593Smuzhiyun #define ASC_MASTER_MODE (0x1 << 6) 132*4882a593Smuzhiyun #define ASC_SLAVE_MODE (0x0 << 6) 133*4882a593Smuzhiyun 134*4882a593Smuzhiyun #define ASC_INVERT_BCLK (0x1 << 7) 135*4882a593Smuzhiyun #define ASC_NORMAL_BCLK (0x0 << 7) 136*4882a593Smuzhiyun 137*4882a593Smuzhiyun /* ACCELCODEC_R0A */ 138*4882a593Smuzhiyun #define ASC_USB_MODE (0x1) 139*4882a593Smuzhiyun #define ASC_NORMAL_MODE (0x0) 140*4882a593Smuzhiyun 141*4882a593Smuzhiyun #define ASC_CLKDIV2 (0x1 << 6) 142*4882a593Smuzhiyun #define ASC_CLKNODIV (0x0 << 6) 143*4882a593Smuzhiyun 144*4882a593Smuzhiyun #define ASC_CLK_ENABLE (0x1 << 7) 145*4882a593Smuzhiyun #define ASC_CLK_DISABLE (0x0 << 7) 146*4882a593Smuzhiyun 147*4882a593Smuzhiyun /* ACCELCODEC_R0B */ 148*4882a593Smuzhiyun #define ASC_DEC_ENABLE (0x1) 149*4882a593Smuzhiyun #define ASC_DEC_DISABLE (0x0) 150*4882a593Smuzhiyun #define ASC_INT_ENABLE (0x1 << 1) 151*4882a593Smuzhiyun #define ASC_INT_DISABLE (0x0 << 1) 152*4882a593Smuzhiyun 153*4882a593Smuzhiyun #define ASC_INPUT_MUTE (0x1 << 7) 154*4882a593Smuzhiyun #define ASC_INPUT_ACTIVE (0x0 << 7) 155*4882a593Smuzhiyun #define ASC_INPUT_VOL_0DB (0x0) 156*4882a593Smuzhiyun 157*4882a593Smuzhiyun /* ACCELCODEC_R12 */ 158*4882a593Smuzhiyun #define ASC_LINE_INPUT (0) 159*4882a593Smuzhiyun #define ASC_MIC_INPUT (1 << 7) 160*4882a593Smuzhiyun 161*4882a593Smuzhiyun #define ASC_MIC_BOOST_0DB (0) 162*4882a593Smuzhiyun #define ASC_MIC_BOOST_20DB (1 << 5) 163*4882a593Smuzhiyun 164*4882a593Smuzhiyun /* ACCELCODEC_R13 */ 165*4882a593Smuzhiyun #define ASC_LPGAMXVOL_0DB (0x5) 166*4882a593Smuzhiyun /* the left channel PGA output is directly fed into the left mixer */ 167*4882a593Smuzhiyun #define ASC_LPGAMX_ENABLE (0x1 << 3) 168*4882a593Smuzhiyun #define ASC_LPGAMX_DISABLE (0x0 << 3) 169*4882a593Smuzhiyun #define ASC_ALMXVOL_0DB (0x5 << 4) 170*4882a593Smuzhiyun /* the left second line input is directly fed into the left mixer */ 171*4882a593Smuzhiyun #define ASC_ALMX_ENABLE (0x1 << 7) 172*4882a593Smuzhiyun #define ASC_ALMX_DISABLE (0x0 << 7) 173*4882a593Smuzhiyun 174*4882a593Smuzhiyun /* ACCELCODEC_R14 */ 175*4882a593Smuzhiyun #define ASC_RPGAMXVOL_0DB (0x5) 176*4882a593Smuzhiyun /* the right channel PGA output is directly fed into the right mixer */ 177*4882a593Smuzhiyun #define ASC_RPGAMX_ENABLE (0x1 << 3) 178*4882a593Smuzhiyun #define ASC_RPGAMX_DISABLE (0x0 << 3) 179*4882a593Smuzhiyun #define ASC_ARMXVOL_0DB (0x5 << 4) 180*4882a593Smuzhiyun /* the right second line input is directly fed into the right mixer */ 181*4882a593Smuzhiyun #define ASC_ARMX_ENABLE (0x1 << 7) 182*4882a593Smuzhiyun #define ASC_ARMX_DISABLE (0x0 << 7) 183*4882a593Smuzhiyun 184*4882a593Smuzhiyun /*ACCELCODEC_R15 */ 185*4882a593Smuzhiyun /*the left differential signal from DAC is directly fed into the left mixer*/ 186*4882a593Smuzhiyun #define ASC_LDAMX_ENABLE (0x1 << 2) 187*4882a593Smuzhiyun #define ASC_LDAMX_DISABLE (0x0 << 2) 188*4882a593Smuzhiyun /* the right differential signal --> the right mixer */ 189*4882a593Smuzhiyun #define ASC_RDAMX_ENABLE (0x1 << 3) 190*4882a593Smuzhiyun #define ASC_RDAMX_DISABLE (0x0 << 3) 191*4882a593Smuzhiyun /* the left channel LPF is mute */ 192*4882a593Smuzhiyun #define ASC_LSCF_MUTE (0x1 << 4) 193*4882a593Smuzhiyun #define ASC_LSCF_ACTIVE (0x0 << 4) 194*4882a593Smuzhiyun /* the right channel LPF is mute */ 195*4882a593Smuzhiyun #define ASC_RSCF_MUTE (0x1 << 5) 196*4882a593Smuzhiyun #define ASC_RSCF_ACTIVE (0x0 << 5) 197*4882a593Smuzhiyun /* the left channel LPF output is fed into the left into the mixer */ 198*4882a593Smuzhiyun #define ASC_LLPFMX_ENABLE (0x1 << 6) 199*4882a593Smuzhiyun #define ASC_LLPFMX_DISABLE (0x0 << 6) 200*4882a593Smuzhiyun /* the right channel LPF output is fed into the right into the mixer. */ 201*4882a593Smuzhiyun #define ASC_RLPFMX_ENABLE (0x1 << 7) 202*4882a593Smuzhiyun #define ASC_RLPFMX_DISABLE (0x0 << 7) 203*4882a593Smuzhiyun 204*4882a593Smuzhiyun /* ACCELCODEC_R17/R18 */ 205*4882a593Smuzhiyun #define ASC_OUTPUT_MUTE (0x1 << 6) 206*4882a593Smuzhiyun #define ASC_OUTPUT_ACTIVE (0x0 << 6) 207*4882a593Smuzhiyun #define ASC_CROSSZERO_EN (0x1 << 7) 208*4882a593Smuzhiyun #define ASC_OUTPUT_VOL_0DB (0x0F) 209*4882a593Smuzhiyun /* ACCELCODEC_R19 */ 210*4882a593Smuzhiyun #define ASC_MONO_OUTPUT_MUTE (0x1 << 7) 211*4882a593Smuzhiyun #define ASC_MONO_OUTPUT_ACTIVE (0x0 << 7) 212*4882a593Smuzhiyun #define ASC_MONO_CROSSZERO_EN (0x1 << 6) 213*4882a593Smuzhiyun 214*4882a593Smuzhiyun /* ACCELCODEC_R1A */ 215*4882a593Smuzhiyun #define ASC_VMDSCL_SLOWEST (0x0 << 2) 216*4882a593Smuzhiyun #define ASC_VMDSCL_SLOW (0x1 << 2) 217*4882a593Smuzhiyun #define ASC_VMDSCL_FAST (0x2 << 2) 218*4882a593Smuzhiyun #define ASC_VMDSCL_FASTEST (0x3 << 2) 219*4882a593Smuzhiyun 220*4882a593Smuzhiyun #define ASC_MICBIAS_09 (0x1 << 4) 221*4882a593Smuzhiyun #define ASC_MICBIAS_06 (0x0 << 4) 222*4882a593Smuzhiyun 223*4882a593Smuzhiyun /* the right channel LPF output is fed to mono PA */ 224*4882a593Smuzhiyun #define ASC_L2M_ENABLE (0x1 << 5) 225*4882a593Smuzhiyun #define ASC_L2M_DISABLE (0x0 << 5) 226*4882a593Smuzhiyun /* the left channel LPF output is fed to mono PA */ 227*4882a593Smuzhiyun #define ASC_R2M_ENABLE (0x1 << 6) 228*4882a593Smuzhiyun #define ASC_R2M_DISABLE (0x0 << 6) 229*4882a593Smuzhiyun /* the capless connection is enable */ 230*4882a593Smuzhiyun #define ASC_CAPLESS_ENABLE (0x1 << 7) 231*4882a593Smuzhiyun #define ASC_CAPLESS_DISABLE (0x0 << 7) 232*4882a593Smuzhiyun 233*4882a593Smuzhiyun /* ACCELCODEC_R1C */ 234*4882a593Smuzhiyun /* the amplitude setting of the ASDM dither(div=vdd/48) */ 235*4882a593Smuzhiyun #define ASC_DITH_0_DIV (0x0 << 3) 236*4882a593Smuzhiyun #define ASC_DITH_2_DIV (0x1 << 3) 237*4882a593Smuzhiyun #define ASC_DITH_4_DIV (0x2 << 3) 238*4882a593Smuzhiyun #define ASC_DITH_8_DIV (0x3 << 3) 239*4882a593Smuzhiyun 240*4882a593Smuzhiyun /* the ASDM dither is enabled */ 241*4882a593Smuzhiyun #define ASC_DITH_ENABLE (0x1 << 5) 242*4882a593Smuzhiyun #define ASC_DITH_DISABLE (0x0 << 5) 243*4882a593Smuzhiyun 244*4882a593Smuzhiyun /* the ASDM DEM is enabled */ 245*4882a593Smuzhiyun #define ASC_DEM_ENABLE (0x1 << 7) 246*4882a593Smuzhiyun #define ASC_DEM_DISABLE (0x0 << 7) 247*4882a593Smuzhiyun 248*4882a593Smuzhiyun /* ACCELCODEC_R1D */ 249*4882a593Smuzhiyun /* the VMID reference is powered down. VMID is connected to GND */ 250*4882a593Smuzhiyun #define ASC_PDVMID_ENABLE (0x1) 251*4882a593Smuzhiyun #define ASC_PDVMID_DISABLE (0x0) 252*4882a593Smuzhiyun /* the PGA S2D buffer is power down */ 253*4882a593Smuzhiyun #define ASC_PDSDL_ENABLE (0x1 << 2) 254*4882a593Smuzhiyun #define ASC_PDSDL_DISABLE (0x0 << 2) 255*4882a593Smuzhiyun /* the micphone input Op-Amp is power down */ 256*4882a593Smuzhiyun #define ASC_PDBSTL_ENABLE (0x1 << 4) 257*4882a593Smuzhiyun #define ASC_PDBSTL_DISABLE (0x0 << 4) 258*4882a593Smuzhiyun /* the PGA is power down */ 259*4882a593Smuzhiyun #define ASC_PDPGAL_ENABLE (0x1 << 6) 260*4882a593Smuzhiyun #define ASC_PDPGAL_DISABLE (0x0 << 6) 261*4882a593Smuzhiyun /* reference generator is power down */ 262*4882a593Smuzhiyun #define ASC_PDREF_ENABLE (0x1 << 7) 263*4882a593Smuzhiyun #define ASC_PDREF_DISABLE (0x0 << 7) 264*4882a593Smuzhiyun 265*4882a593Smuzhiyun /* ACCELCODEC_R1E */ 266*4882a593Smuzhiyun /* the right channel PA is power down */ 267*4882a593Smuzhiyun #define ASC_PDPAR_ENABLE (0x1) 268*4882a593Smuzhiyun #define ASC_PDPAR_DISABLE (0x0) 269*4882a593Smuzhiyun /* the left channel power amplifier is power down */ 270*4882a593Smuzhiyun #define ASC_PDPAL_ENABLE (0x1 << 1) 271*4882a593Smuzhiyun #define ASC_PDPAL_DISABLE (0x0 << 1) 272*4882a593Smuzhiyun /* the right mixer is power down */ 273*4882a593Smuzhiyun #define ASC_PDMIXR_ENABLE (0x1 << 2) 274*4882a593Smuzhiyun #define ASC_PDMIXR_DISABLE (0x0 << 2) 275*4882a593Smuzhiyun /* the left mixer is power down */ 276*4882a593Smuzhiyun #define ASC_PDMIXL_ENABLE (0x1 << 3) 277*4882a593Smuzhiyun #define ASC_PDMIXL_DISABLE (0x0 << 3) 278*4882a593Smuzhiyun /* the right RC LPF is power down */ 279*4882a593Smuzhiyun #define ASC_PDLPFR_ENABLE (0x1 << 4) 280*4882a593Smuzhiyun #define ASC_PDLPFR_DISABLE (0x0 << 4) 281*4882a593Smuzhiyun /* the left channel RC LPF is power down */ 282*4882a593Smuzhiyun #define ASC_PDLPFL_ENABLE (0x1 << 5) 283*4882a593Smuzhiyun #define ASC_PDLPFL_DISABLE (0x0 << 5) 284*4882a593Smuzhiyun /* the ASDM is power down */ 285*4882a593Smuzhiyun #define ASC_PDASDML_ENABLE (0x1 << 7) 286*4882a593Smuzhiyun #define ASC_PDASDML_DISABLE (0x0 << 7) 287*4882a593Smuzhiyun 288*4882a593Smuzhiyun /* ACCELCODEC_R1F */ 289*4882a593Smuzhiyun /* the right channel DAC is power down */ 290*4882a593Smuzhiyun #define ASC_PDSCFR_ENABLE (0x1 << 1) 291*4882a593Smuzhiyun #define ASC_PDSCFR_DISABLE (0x0 << 1) 292*4882a593Smuzhiyun /* the left channel DAC is power down */ 293*4882a593Smuzhiyun #define ASC_PDSCFL_ENABLE (0x1 << 2) 294*4882a593Smuzhiyun #define ASC_PDSCFL_DISABLE (0x0 << 2) 295*4882a593Smuzhiyun /* the micbias is power down */ 296*4882a593Smuzhiyun #define ASC_PDMICB_ENABLE (0x1 << 4) 297*4882a593Smuzhiyun #define ASC_PDMICB_DISABLE (0x0 << 4) 298*4882a593Smuzhiyun /* the left channel LPF is power down */ 299*4882a593Smuzhiyun #define ASC_PDIB_ENABLE (0x1 << 5) 300*4882a593Smuzhiyun #define ASC_PDIB_DISABLE (0x0 << 5) 301*4882a593Smuzhiyun /* the mon mixer is power down */ 302*4882a593Smuzhiyun #define ASC_PDMIXM_ENABLE (0x1 << 6) 303*4882a593Smuzhiyun #define ASC_PDMIXM_DISABLE (0x0 << 6) 304*4882a593Smuzhiyun /* the mono PA is power down. */ 305*4882a593Smuzhiyun #define ASC_PDPAM_ENABLE (0x1 << 7) 306*4882a593Smuzhiyun #define ASC_PDPAM_DISABLE (0x0 << 7) 307*4882a593Smuzhiyun 308*4882a593Smuzhiyun /* left and right PA gain */ 309*4882a593Smuzhiyun #define LINE_2_MIXER_GAIN (0x5) 310*4882a593Smuzhiyun #define RK1000_CODEC_NUM_REG 0x20 311*4882a593Smuzhiyun 312*4882a593Smuzhiyun #define GPIO_HIGH 1 313*4882a593Smuzhiyun #define GPIO_LOW 0 314*4882a593Smuzhiyun 315*4882a593Smuzhiyun /* rk1000 ctl register */ 316*4882a593Smuzhiyun #define CODEC_CON 0x01 317*4882a593Smuzhiyun #define CODEC_ON 0X00 318*4882a593Smuzhiyun #define CODEC_OFF 0x0d 319*4882a593Smuzhiyun 320*4882a593Smuzhiyun #endif 321