Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
88pm860x-codec.h File Reference

Go to the source code of this file.

Macros

#define PM860X_PCM_IFACE_1   0x00
 
#define PM860X_PCM_IFACE_2   0x01
 
#define PM860X_PCM_IFACE_3   0x02
 
#define PM860X_PCM_RATE   0x03
 
#define PM860X_EC_PATH   0x04
 
#define PM860X_SIDETONE_L_GAIN   0x05
 
#define PM860X_SIDETONE_R_GAIN   0x06
 
#define PM860X_SIDETONE_SHIFT   0x07
 
#define PM860X_ADC_OFFSET_1   0x08
 
#define PM860X_ADC_OFFSET_2   0x09
 
#define PM860X_DMIC_DELAY   0x0a
 
#define PM860X_I2S_IFACE_1   0x0b
 
#define PM860X_I2S_IFACE_2   0x0c
 
#define PM860X_I2S_IFACE_3   0x0d
 
#define PM860X_I2S_IFACE_4   0x0e
 
#define PM860X_EQUALIZER_N0_1   0x0f
 
#define PM860X_EQUALIZER_N0_2   0x10
 
#define PM860X_EQUALIZER_N1_1   0x11
 
#define PM860X_EQUALIZER_N1_2   0x12
 
#define PM860X_EQUALIZER_D1_1   0x13
 
#define PM860X_EQUALIZER_D1_2   0x14
 
#define PM860X_LOFI_GAIN_LEFT   0x15
 
#define PM860X_LOFI_GAIN_RIGHT   0x16
 
#define PM860X_HIFIL_GAIN_LEFT   0x17
 
#define PM860X_HIFIL_GAIN_RIGHT   0x18
 
#define PM860X_HIFIR_GAIN_LEFT   0x19
 
#define PM860X_HIFIR_GAIN_RIGHT   0x1a
 
#define PM860X_DAC_OFFSET   0x1b
 
#define PM860X_OFFSET_LEFT_1   0x1c
 
#define PM860X_OFFSET_LEFT_2   0x1d
 
#define PM860X_OFFSET_RIGHT_1   0x1e
 
#define PM860X_OFFSET_RIGHT_2   0x1f
 
#define PM860X_ADC_ANA_1   0x20
 
#define PM860X_ADC_ANA_2   0x21
 
#define PM860X_ADC_ANA_3   0x22
 
#define PM860X_ADC_ANA_4   0x23
 
#define PM860X_ANA_TO_ANA   0x24
 
#define PM860X_HS1_CTRL   0x25
 
#define PM860X_HS2_CTRL   0x26
 
#define PM860X_LO1_CTRL   0x27
 
#define PM860X_LO2_CTRL   0x28
 
#define PM860X_EAR_CTRL_1   0x29
 
#define PM860X_EAR_CTRL_2   0x2a
 
#define PM860X_AUDIO_SUPPLIES_1   0x2b
 
#define PM860X_AUDIO_SUPPLIES_2   0x2c
 
#define PM860X_ADC_EN_1   0x2d
 
#define PM860X_ADC_EN_2   0x2e
 
#define PM860X_DAC_EN_1   0x2f
 
#define PM860X_DAC_EN_2   0x31
 
#define PM860X_AUDIO_CAL_1   0x32
 
#define PM860X_AUDIO_CAL_2   0x33
 
#define PM860X_AUDIO_CAL_3   0x34
 
#define PM860X_AUDIO_CAL_4   0x35
 
#define PM860X_AUDIO_CAL_5   0x36
 
#define PM860X_ANA_INPUT_SEL_1   0x37
 
#define PM860X_ANA_INPUT_SEL_2   0x38
 
#define PM860X_PCM_IFACE_4   0x39
 
#define PM860X_I2S_IFACE_5   0x3a
 
#define PM860X_SHORTS   0x3b
 
#define PM860X_PLL_ADJ_1   0x3c
 
#define PM860X_PLL_ADJ_2   0x3d
 
#define PM860X_CLK_DIR_IN   0
 
#define PM860X_CLK_DIR_OUT   1
 
#define PM860X_DET_HEADSET   (1 << 0)
 
#define PM860X_DET_MIC   (1 << 1)
 
#define PM860X_DET_HOOK   (1 << 2)
 
#define PM860X_SHORT_HEADSET   (1 << 3)
 
#define PM860X_SHORT_LINEOUT   (1 << 4)
 
#define PM860X_DET_MASK   0x1F
 

Functions

int pm860x_hs_jack_detect (struct snd_soc_codec *, struct snd_soc_jack *, int, int, int, int)
 
int pm860x_mic_jack_detect (struct snd_soc_codec *, struct snd_soc_jack *, int)
 

Macro Definition Documentation

#define PM860X_ADC_ANA_1   0x20

Definition at line 49 of file 88pm860x-codec.h.

#define PM860X_ADC_ANA_2   0x21

Definition at line 50 of file 88pm860x-codec.h.

#define PM860X_ADC_ANA_3   0x22

Definition at line 51 of file 88pm860x-codec.h.

#define PM860X_ADC_ANA_4   0x23

Definition at line 52 of file 88pm860x-codec.h.

#define PM860X_ADC_EN_1   0x2d

Definition at line 62 of file 88pm860x-codec.h.

#define PM860X_ADC_EN_2   0x2e

Definition at line 63 of file 88pm860x-codec.h.

#define PM860X_ADC_OFFSET_1   0x08

Definition at line 24 of file 88pm860x-codec.h.

#define PM860X_ADC_OFFSET_2   0x09

Definition at line 25 of file 88pm860x-codec.h.

#define PM860X_ANA_INPUT_SEL_1   0x37

Definition at line 71 of file 88pm860x-codec.h.

#define PM860X_ANA_INPUT_SEL_2   0x38

Definition at line 72 of file 88pm860x-codec.h.

#define PM860X_ANA_TO_ANA   0x24

Definition at line 53 of file 88pm860x-codec.h.

#define PM860X_AUDIO_CAL_1   0x32

Definition at line 66 of file 88pm860x-codec.h.

#define PM860X_AUDIO_CAL_2   0x33

Definition at line 67 of file 88pm860x-codec.h.

#define PM860X_AUDIO_CAL_3   0x34

Definition at line 68 of file 88pm860x-codec.h.

#define PM860X_AUDIO_CAL_4   0x35

Definition at line 69 of file 88pm860x-codec.h.

#define PM860X_AUDIO_CAL_5   0x36

Definition at line 70 of file 88pm860x-codec.h.

#define PM860X_AUDIO_SUPPLIES_1   0x2b

Definition at line 60 of file 88pm860x-codec.h.

#define PM860X_AUDIO_SUPPLIES_2   0x2c

Definition at line 61 of file 88pm860x-codec.h.

#define PM860X_CLK_DIR_IN   0

Definition at line 82 of file 88pm860x-codec.h.

#define PM860X_CLK_DIR_OUT   1

Definition at line 83 of file 88pm860x-codec.h.

#define PM860X_DAC_EN_1   0x2f

Definition at line 64 of file 88pm860x-codec.h.

#define PM860X_DAC_EN_2   0x31

Definition at line 65 of file 88pm860x-codec.h.

#define PM860X_DAC_OFFSET   0x1b

Definition at line 44 of file 88pm860x-codec.h.

#define PM860X_DET_HEADSET   (1 << 0)

Definition at line 85 of file 88pm860x-codec.h.

#define PM860X_DET_HOOK   (1 << 2)

Definition at line 87 of file 88pm860x-codec.h.

#define PM860X_DET_MASK   0x1F

Definition at line 90 of file 88pm860x-codec.h.

#define PM860X_DET_MIC   (1 << 1)

Definition at line 86 of file 88pm860x-codec.h.

#define PM860X_DMIC_DELAY   0x0a

Definition at line 26 of file 88pm860x-codec.h.

#define PM860X_EAR_CTRL_1   0x29

Definition at line 58 of file 88pm860x-codec.h.

#define PM860X_EAR_CTRL_2   0x2a

Definition at line 59 of file 88pm860x-codec.h.

#define PM860X_EC_PATH   0x04

Definition at line 20 of file 88pm860x-codec.h.

#define PM860X_EQUALIZER_D1_1   0x13

Definition at line 36 of file 88pm860x-codec.h.

#define PM860X_EQUALIZER_D1_2   0x14

Definition at line 37 of file 88pm860x-codec.h.

#define PM860X_EQUALIZER_N0_1   0x0f

Definition at line 32 of file 88pm860x-codec.h.

#define PM860X_EQUALIZER_N0_2   0x10

Definition at line 33 of file 88pm860x-codec.h.

#define PM860X_EQUALIZER_N1_1   0x11

Definition at line 34 of file 88pm860x-codec.h.

#define PM860X_EQUALIZER_N1_2   0x12

Definition at line 35 of file 88pm860x-codec.h.

#define PM860X_HIFIL_GAIN_LEFT   0x17

Definition at line 40 of file 88pm860x-codec.h.

#define PM860X_HIFIL_GAIN_RIGHT   0x18

Definition at line 41 of file 88pm860x-codec.h.

#define PM860X_HIFIR_GAIN_LEFT   0x19

Definition at line 42 of file 88pm860x-codec.h.

#define PM860X_HIFIR_GAIN_RIGHT   0x1a

Definition at line 43 of file 88pm860x-codec.h.

#define PM860X_HS1_CTRL   0x25

Definition at line 54 of file 88pm860x-codec.h.

#define PM860X_HS2_CTRL   0x26

Definition at line 55 of file 88pm860x-codec.h.

#define PM860X_I2S_IFACE_1   0x0b

Definition at line 28 of file 88pm860x-codec.h.

#define PM860X_I2S_IFACE_2   0x0c

Definition at line 29 of file 88pm860x-codec.h.

#define PM860X_I2S_IFACE_3   0x0d

Definition at line 30 of file 88pm860x-codec.h.

#define PM860X_I2S_IFACE_4   0x0e

Definition at line 31 of file 88pm860x-codec.h.

#define PM860X_I2S_IFACE_5   0x3a

Definition at line 75 of file 88pm860x-codec.h.

#define PM860X_LO1_CTRL   0x27

Definition at line 56 of file 88pm860x-codec.h.

#define PM860X_LO2_CTRL   0x28

Definition at line 57 of file 88pm860x-codec.h.

#define PM860X_LOFI_GAIN_LEFT   0x15

Definition at line 38 of file 88pm860x-codec.h.

#define PM860X_LOFI_GAIN_RIGHT   0x16

Definition at line 39 of file 88pm860x-codec.h.

#define PM860X_OFFSET_LEFT_1   0x1c

Definition at line 45 of file 88pm860x-codec.h.

#define PM860X_OFFSET_LEFT_2   0x1d

Definition at line 46 of file 88pm860x-codec.h.

#define PM860X_OFFSET_RIGHT_1   0x1e

Definition at line 47 of file 88pm860x-codec.h.

#define PM860X_OFFSET_RIGHT_2   0x1f

Definition at line 48 of file 88pm860x-codec.h.

#define PM860X_PCM_IFACE_1   0x00

Definition at line 16 of file 88pm860x-codec.h.

#define PM860X_PCM_IFACE_2   0x01

Definition at line 17 of file 88pm860x-codec.h.

#define PM860X_PCM_IFACE_3   0x02

Definition at line 18 of file 88pm860x-codec.h.

#define PM860X_PCM_IFACE_4   0x39

Definition at line 74 of file 88pm860x-codec.h.

#define PM860X_PCM_RATE   0x03

Definition at line 19 of file 88pm860x-codec.h.

#define PM860X_PLL_ADJ_1   0x3c

Definition at line 78 of file 88pm860x-codec.h.

#define PM860X_PLL_ADJ_2   0x3d

Definition at line 79 of file 88pm860x-codec.h.

#define PM860X_SHORT_HEADSET   (1 << 3)

Definition at line 88 of file 88pm860x-codec.h.

#define PM860X_SHORT_LINEOUT   (1 << 4)

Definition at line 89 of file 88pm860x-codec.h.

#define PM860X_SHORTS   0x3b

Definition at line 77 of file 88pm860x-codec.h.

#define PM860X_SIDETONE_L_GAIN   0x05

Definition at line 21 of file 88pm860x-codec.h.

#define PM860X_SIDETONE_R_GAIN   0x06

Definition at line 22 of file 88pm860x-codec.h.

#define PM860X_SIDETONE_SHIFT   0x07

Definition at line 23 of file 88pm860x-codec.h.

Function Documentation

int pm860x_hs_jack_detect ( struct snd_soc_codec ,
struct snd_soc_jack ,
int  ,
int  ,
int  ,
int   
)

Definition at line 1310 of file 88pm860x-codec.c.

int pm860x_mic_jack_detect ( struct snd_soc_codec ,
struct snd_soc_jack ,
int   
)

Definition at line 1343 of file 88pm860x-codec.c.