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

Go to the source code of this file.

Data Structures

struct  mfld_jack_data
 

Macros

#define SN95031_VAUD   0xDB
 
#define SN95031_VHSP   0xDC
 
#define SN95031_VHSN   0xDD
 
#define SN95031_VIHF   0xC9
 
#define SN95031_AUDPLLCTRL   0x240
 
#define SN95031_DMICBUF0123   0x241
 
#define SN95031_DMICBUF45   0x242
 
#define SN95031_DMICGPO   0x244
 
#define SN95031_DMICMUX   0x245
 
#define SN95031_DMICLK   0x246
 
#define SN95031_MICBIAS   0x247
 
#define SN95031_ADCCONFIG   0x248
 
#define SN95031_MICAMP1   0x249
 
#define SN95031_MICAMP2   0x24A
 
#define SN95031_NOISEMUX   0x24B
 
#define SN95031_AUDIOMUX12   0x24C
 
#define SN95031_AUDIOMUX34   0x24D
 
#define SN95031_AUDIOSINC   0x24E
 
#define SN95031_AUDIOTXEN   0x24F
 
#define SN95031_HSEPRXCTRL   0x250
 
#define SN95031_IHFRXCTRL   0x251
 
#define SN95031_HSMIXER   0x256
 
#define SN95031_DACCONFIG   0x257
 
#define SN95031_SOFTMUTE   0x258
 
#define SN95031_HSLVOLCTRL   0x259
 
#define SN95031_HSRVOLCTRL   0x25A
 
#define SN95031_IHFLVOLCTRL   0x25B
 
#define SN95031_IHFRVOLCTRL   0x25C
 
#define SN95031_DRIVEREN   0x25D
 
#define SN95031_LOCTL   0x25E
 
#define SN95031_VIB1C1   0x25F
 
#define SN95031_VIB1C2   0x260
 
#define SN95031_VIB1C3   0x261
 
#define SN95031_VIB1SPIPCM1   0x262
 
#define SN95031_VIB1SPIPCM2   0x263
 
#define SN95031_VIB1C5   0x264
 
#define SN95031_VIB2C1   0x265
 
#define SN95031_VIB2C2   0x266
 
#define SN95031_VIB2C3   0x267
 
#define SN95031_VIB2SPIPCM1   0x268
 
#define SN95031_VIB2SPIPCM2   0x269
 
#define SN95031_VIB2C5   0x26A
 
#define SN95031_BTNCTRL1   0x26B
 
#define SN95031_BTNCTRL2   0x26C
 
#define SN95031_PCM1TXSLOT01   0x26D
 
#define SN95031_PCM1TXSLOT23   0x26E
 
#define SN95031_PCM1TXSLOT45   0x26F
 
#define SN95031_PCM1RXSLOT0_3   0x270
 
#define SN95031_PCM1RXSLOT45   0x271
 
#define SN95031_PCM2TXSLOT01   0x272
 
#define SN95031_PCM2TXSLOT23   0x273
 
#define SN95031_PCM2TXSLOT45   0x274
 
#define SN95031_PCM2RXSLOT01   0x275
 
#define SN95031_PCM2RXSLOT23   0x276
 
#define SN95031_PCM2RXSLOT45   0x277
 
#define SN95031_PCM1C1   0x278
 
#define SN95031_PCM1C2   0x279
 
#define SN95031_PCM1C3   0x27A
 
#define SN95031_PCM2C1   0x27B
 
#define SN95031_PCM2C2   0x27C
 
#define SN95031_SSR2   0x381
 
#define SN95031_SSR3   0x382
 
#define SN95031_SSR5   0x384
 
#define SN95031_SSR6   0x385
 
#define SN95031_ADC1CNTL1   0x1C0
 
#define SN95031_ADC_ENBL   0x10
 
#define SN95031_ADC_START   0x08
 
#define SN95031_ADC1CNTL3   0x1C2
 
#define SN95031_ADCTHERM_ENBL   0x04
 
#define SN95031_ADCRRDATA_ENBL   0x05
 
#define SN95031_STOPBIT_MASK   16
 
#define SN95031_ADCTHERM_MASK   4
 
#define SN95031_ADC_CHANLS_MAX   15 /* Number of ADC channels */
 
#define SN95031_ADC_LOOP_MAX   (SN95031_ADC_CHANLS_MAX - 1)
 
#define SN95031_ADC_NO_LOOP   0x07
 
#define SN95031_AUDIO_GPIO_CTRL   0x070
 
#define SN95031_AUDIO_DETECT_CODE   0x06
 
#define SN95031_ADC_CHNL_START_ADDR   0x1C5 /* increments by 1 */
 
#define SN95031_ADC_DATA_START_ADDR   0x1D4 /* increments by 2 */
 
#define SN95031_ADC_ONE_LSB_MULTIPLIER   2346
 

Functions

void sn95031_jack_detection (struct mfld_jack_data *jack_data)
 

Macro Definition Documentation

#define SN95031_ADC1CNTL1   0x1C0

Definition at line 101 of file sn95031.h.

#define SN95031_ADC1CNTL3   0x1C2

Definition at line 104 of file sn95031.h.

#define SN95031_ADC_CHANLS_MAX   15 /* Number of ADC channels */

Definition at line 109 of file sn95031.h.

#define SN95031_ADC_CHNL_START_ADDR   0x1C5 /* increments by 1 */

Definition at line 118 of file sn95031.h.

#define SN95031_ADC_DATA_START_ADDR   0x1D4 /* increments by 2 */

Definition at line 119 of file sn95031.h.

#define SN95031_ADC_ENBL   0x10

Definition at line 102 of file sn95031.h.

#define SN95031_ADC_LOOP_MAX   (SN95031_ADC_CHANLS_MAX - 1)

Definition at line 110 of file sn95031.h.

#define SN95031_ADC_NO_LOOP   0x07

Definition at line 111 of file sn95031.h.

#define SN95031_ADC_ONE_LSB_MULTIPLIER   2346

Definition at line 121 of file sn95031.h.

#define SN95031_ADC_START   0x08

Definition at line 103 of file sn95031.h.

#define SN95031_ADCCONFIG   0x248

Definition at line 42 of file sn95031.h.

#define SN95031_ADCRRDATA_ENBL   0x05

Definition at line 106 of file sn95031.h.

#define SN95031_ADCTHERM_ENBL   0x04

Definition at line 105 of file sn95031.h.

#define SN95031_ADCTHERM_MASK   4

Definition at line 108 of file sn95031.h.

#define SN95031_AUDIO_DETECT_CODE   0x06

Definition at line 115 of file sn95031.h.

#define SN95031_AUDIO_GPIO_CTRL   0x070

Definition at line 112 of file sn95031.h.

#define SN95031_AUDIOMUX12   0x24C

Definition at line 46 of file sn95031.h.

#define SN95031_AUDIOMUX34   0x24D

Definition at line 47 of file sn95031.h.

#define SN95031_AUDIOSINC   0x24E

Definition at line 48 of file sn95031.h.

#define SN95031_AUDIOTXEN   0x24F

Definition at line 49 of file sn95031.h.

#define SN95031_AUDPLLCTRL   0x240

Definition at line 35 of file sn95031.h.

#define SN95031_BTNCTRL1   0x26B

Definition at line 73 of file sn95031.h.

#define SN95031_BTNCTRL2   0x26C

Definition at line 74 of file sn95031.h.

#define SN95031_DACCONFIG   0x257

Definition at line 53 of file sn95031.h.

#define SN95031_DMICBUF0123   0x241

Definition at line 36 of file sn95031.h.

#define SN95031_DMICBUF45   0x242

Definition at line 37 of file sn95031.h.

#define SN95031_DMICGPO   0x244

Definition at line 38 of file sn95031.h.

#define SN95031_DMICLK   0x246

Definition at line 40 of file sn95031.h.

#define SN95031_DMICMUX   0x245

Definition at line 39 of file sn95031.h.

#define SN95031_DRIVEREN   0x25D

Definition at line 59 of file sn95031.h.

#define SN95031_HSEPRXCTRL   0x250

Definition at line 50 of file sn95031.h.

#define SN95031_HSLVOLCTRL   0x259

Definition at line 55 of file sn95031.h.

#define SN95031_HSMIXER   0x256

Definition at line 52 of file sn95031.h.

#define SN95031_HSRVOLCTRL   0x25A

Definition at line 56 of file sn95031.h.

#define SN95031_IHFLVOLCTRL   0x25B

Definition at line 57 of file sn95031.h.

#define SN95031_IHFRVOLCTRL   0x25C

Definition at line 58 of file sn95031.h.

#define SN95031_IHFRXCTRL   0x251

Definition at line 51 of file sn95031.h.

#define SN95031_LOCTL   0x25E

Definition at line 60 of file sn95031.h.

#define SN95031_MICAMP1   0x249

Definition at line 43 of file sn95031.h.

#define SN95031_MICAMP2   0x24A

Definition at line 44 of file sn95031.h.

#define SN95031_MICBIAS   0x247

Definition at line 41 of file sn95031.h.

#define SN95031_NOISEMUX   0x24B

Definition at line 45 of file sn95031.h.

#define SN95031_PCM1C1   0x278

Definition at line 86 of file sn95031.h.

#define SN95031_PCM1C2   0x279

Definition at line 87 of file sn95031.h.

#define SN95031_PCM1C3   0x27A

Definition at line 88 of file sn95031.h.

#define SN95031_PCM1RXSLOT0_3   0x270

Definition at line 78 of file sn95031.h.

#define SN95031_PCM1RXSLOT45   0x271

Definition at line 79 of file sn95031.h.

#define SN95031_PCM1TXSLOT01   0x26D

Definition at line 75 of file sn95031.h.

#define SN95031_PCM1TXSLOT23   0x26E

Definition at line 76 of file sn95031.h.

#define SN95031_PCM1TXSLOT45   0x26F

Definition at line 77 of file sn95031.h.

#define SN95031_PCM2C1   0x27B

Definition at line 89 of file sn95031.h.

#define SN95031_PCM2C2   0x27C

Definition at line 90 of file sn95031.h.

#define SN95031_PCM2RXSLOT01   0x275

Definition at line 83 of file sn95031.h.

#define SN95031_PCM2RXSLOT23   0x276

Definition at line 84 of file sn95031.h.

#define SN95031_PCM2RXSLOT45   0x277

Definition at line 85 of file sn95031.h.

#define SN95031_PCM2TXSLOT01   0x272

Definition at line 80 of file sn95031.h.

#define SN95031_PCM2TXSLOT23   0x273

Definition at line 81 of file sn95031.h.

#define SN95031_PCM2TXSLOT45   0x274

Definition at line 82 of file sn95031.h.

#define SN95031_SOFTMUTE   0x258

Definition at line 54 of file sn95031.h.

#define SN95031_SSR2   0x381

Definition at line 94 of file sn95031.h.

#define SN95031_SSR3   0x382

Definition at line 95 of file sn95031.h.

#define SN95031_SSR5   0x384

Definition at line 96 of file sn95031.h.

#define SN95031_SSR6   0x385

Definition at line 97 of file sn95031.h.

#define SN95031_STOPBIT_MASK   16

Definition at line 107 of file sn95031.h.

#define SN95031_VAUD   0xDB

Definition at line 30 of file sn95031.h.

#define SN95031_VHSN   0xDD

Definition at line 32 of file sn95031.h.

#define SN95031_VHSP   0xDC

Definition at line 31 of file sn95031.h.

#define SN95031_VIB1C1   0x25F

Definition at line 61 of file sn95031.h.

#define SN95031_VIB1C2   0x260

Definition at line 62 of file sn95031.h.

#define SN95031_VIB1C3   0x261

Definition at line 63 of file sn95031.h.

#define SN95031_VIB1C5   0x264

Definition at line 66 of file sn95031.h.

#define SN95031_VIB1SPIPCM1   0x262

Definition at line 64 of file sn95031.h.

#define SN95031_VIB1SPIPCM2   0x263

Definition at line 65 of file sn95031.h.

#define SN95031_VIB2C1   0x265

Definition at line 67 of file sn95031.h.

#define SN95031_VIB2C2   0x266

Definition at line 68 of file sn95031.h.

#define SN95031_VIB2C3   0x267

Definition at line 69 of file sn95031.h.

#define SN95031_VIB2C5   0x26A

Definition at line 72 of file sn95031.h.

#define SN95031_VIB2SPIPCM1   0x268

Definition at line 70 of file sn95031.h.

#define SN95031_VIB2SPIPCM2   0x269

Definition at line 71 of file sn95031.h.

#define SN95031_VIHF   0xC9

Definition at line 33 of file sn95031.h.

Function Documentation

void sn95031_jack_detection ( struct mfld_jack_data jack_data)

Definition at line 793 of file sn95031.c.