Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
sta529.c File Reference
#include <linux/clk.h>
#include <linux/init.h>
#include <linux/i2c.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/pm.h>
#include <linux/regmap.h>
#include <linux/slab.h>
#include <sound/core.h>
#include <sound/initval.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/soc-dapm.h>
#include <sound/tlv.h>

Go to the source code of this file.

Data Structures

struct  sta529
 

Macros

#define STA529_FFXCFG0   0x00
 
#define STA529_FFXCFG1   0x01
 
#define STA529_MVOL   0x02
 
#define STA529_LVOL   0x03
 
#define STA529_RVOL   0x04
 
#define STA529_TTF0   0x05
 
#define STA529_TTF1   0x06
 
#define STA529_TTP0   0x07
 
#define STA529_TTP1   0x08
 
#define STA529_S2PCFG0   0x0A
 
#define STA529_S2PCFG1   0x0B
 
#define STA529_P2SCFG0   0x0C
 
#define STA529_P2SCFG1   0x0D
 
#define STA529_PLLCFG0   0x14
 
#define STA529_PLLCFG1   0x15
 
#define STA529_PLLCFG2   0x16
 
#define STA529_PLLCFG3   0x17
 
#define STA529_PLLPFE   0x18
 
#define STA529_PLLST   0x19
 
#define STA529_ADCCFG   0x1E /*mic_select*/
 
#define STA529_CKOCFG   0x1F
 
#define STA529_MISC   0x20
 
#define STA529_PADST0   0x21
 
#define STA529_PADST1   0x22
 
#define STA529_FFXST   0x23
 
#define STA529_PWMIN1   0x2D
 
#define STA529_PWMIN2   0x2E
 
#define STA529_POWST   0x32
 
#define STA529_MAX_REGISTER   0x32
 
#define STA529_RATES
 
#define STA529_FORMAT
 
#define S2PC_VALUE   0x98
 
#define CLOCK_OUT   0x60
 
#define LEFT_J_DATA_FORMAT   0x10
 
#define I2S_DATA_FORMAT   0x12
 
#define RIGHT_J_DATA_FORMAT   0x14
 
#define CODEC_MUTE_VAL   0x80
 
#define POWER_CNTLMSAK   0x40
 
#define POWER_STDBY   0x40
 
#define FFX_MASK   0x80
 
#define FFX_OFF   0x80
 
#define POWER_UP   0x00
 
#define FFX_CLK_ENB   0x01
 
#define FFX_CLK_DIS   0x00
 
#define FFX_CLK_MSK   0x01
 
#define PLAY_FREQ_RANGE_MSK   0x70
 
#define CAP_FREQ_RANGE_MSK   0x0C
 
#define PDATA_LEN_MSK   0xC0
 
#define BCLK_TO_FS_MSK   0x30
 
#define AUDIO_MUTE_MSK   0x80
 

Functions

 MODULE_DEVICE_TABLE (i2c, sta529_i2c_id)
 
 module_i2c_driver (sta529_i2c_driver)
 
 MODULE_DESCRIPTION ("ASoC STA529 codec driver")
 
 MODULE_AUTHOR ("Rajeev Kumar <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define AUDIO_MUTE_MSK   0x80

Definition at line 94 of file sta529.c.

#define BCLK_TO_FS_MSK   0x30

Definition at line 93 of file sta529.c.

#define CAP_FREQ_RANGE_MSK   0x0C

Definition at line 91 of file sta529.c.

#define CLOCK_OUT   0x60

Definition at line 76 of file sta529.c.

#define CODEC_MUTE_VAL   0x80

Definition at line 80 of file sta529.c.

#define FFX_CLK_DIS   0x00

Definition at line 88 of file sta529.c.

#define FFX_CLK_ENB   0x01

Definition at line 87 of file sta529.c.

#define FFX_CLK_MSK   0x01

Definition at line 89 of file sta529.c.

#define FFX_MASK   0x80

Definition at line 84 of file sta529.c.

#define FFX_OFF   0x80

Definition at line 85 of file sta529.c.

#define I2S_DATA_FORMAT   0x12

Definition at line 78 of file sta529.c.

#define LEFT_J_DATA_FORMAT   0x10

Definition at line 77 of file sta529.c.

#define PDATA_LEN_MSK   0xC0

Definition at line 92 of file sta529.c.

#define PLAY_FREQ_RANGE_MSK   0x70

Definition at line 90 of file sta529.c.

#define POWER_CNTLMSAK   0x40

Definition at line 82 of file sta529.c.

#define POWER_STDBY   0x40

Definition at line 83 of file sta529.c.

#define POWER_UP   0x00

Definition at line 86 of file sta529.c.

#define RIGHT_J_DATA_FORMAT   0x14

Definition at line 79 of file sta529.c.

#define S2PC_VALUE   0x98

Definition at line 75 of file sta529.c.

#define STA529_ADCCFG   0x1E /*mic_select*/

Definition at line 52 of file sta529.c.

#define STA529_CKOCFG   0x1F

Definition at line 53 of file sta529.c.

#define STA529_FFXCFG0   0x00

Definition at line 33 of file sta529.c.

#define STA529_FFXCFG1   0x01

Definition at line 34 of file sta529.c.

#define STA529_FFXST   0x23

Definition at line 57 of file sta529.c.

#define STA529_FORMAT
Value:
SNDRV_PCM_FMTBIT_S24_LE | \
SNDRV_PCM_FMTBIT_S32_LE)

Definition at line 72 of file sta529.c.

#define STA529_LVOL   0x03

Definition at line 36 of file sta529.c.

#define STA529_MAX_REGISTER   0x32

Definition at line 62 of file sta529.c.

#define STA529_MISC   0x20

Definition at line 54 of file sta529.c.

#define STA529_MVOL   0x02

Definition at line 35 of file sta529.c.

#define STA529_P2SCFG0   0x0C

Definition at line 44 of file sta529.c.

#define STA529_P2SCFG1   0x0D

Definition at line 45 of file sta529.c.

#define STA529_PADST0   0x21

Definition at line 55 of file sta529.c.

#define STA529_PADST1   0x22

Definition at line 56 of file sta529.c.

#define STA529_PLLCFG0   0x14

Definition at line 46 of file sta529.c.

#define STA529_PLLCFG1   0x15

Definition at line 47 of file sta529.c.

#define STA529_PLLCFG2   0x16

Definition at line 48 of file sta529.c.

#define STA529_PLLCFG3   0x17

Definition at line 49 of file sta529.c.

#define STA529_PLLPFE   0x18

Definition at line 50 of file sta529.c.

#define STA529_PLLST   0x19

Definition at line 51 of file sta529.c.

#define STA529_POWST   0x32

Definition at line 60 of file sta529.c.

#define STA529_PWMIN1   0x2D

Definition at line 58 of file sta529.c.

#define STA529_PWMIN2   0x2E

Definition at line 59 of file sta529.c.

#define STA529_RATES
Value:
SNDRV_PCM_RATE_11025 | \
SNDRV_PCM_RATE_16000 | \
SNDRV_PCM_RATE_22050 | \
SNDRV_PCM_RATE_32000 | \
SNDRV_PCM_RATE_44100 | \
SNDRV_PCM_RATE_48000)

Definition at line 64 of file sta529.c.

#define STA529_RVOL   0x04

Definition at line 37 of file sta529.c.

#define STA529_S2PCFG0   0x0A

Definition at line 42 of file sta529.c.

#define STA529_S2PCFG1   0x0B

Definition at line 43 of file sta529.c.

#define STA529_TTF0   0x05

Definition at line 38 of file sta529.c.

#define STA529_TTF1   0x06

Definition at line 39 of file sta529.c.

#define STA529_TTP0   0x07

Definition at line 40 of file sta529.c.

#define STA529_TTP1   0x08

Definition at line 41 of file sta529.c.

Function Documentation

MODULE_AUTHOR ( "Rajeev Kumar <[email protected]>"  )
MODULE_DESCRIPTION ( "ASoC STA529 codec driver )
MODULE_DEVICE_TABLE ( i2c  ,
sta529_i2c_id   
)
module_i2c_driver ( sta529_i2c_driver  )
MODULE_LICENSE ( "GPL"  )