Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
da9055.c File Reference
#include <linux/delay.h>
#include <linux/i2c.h>
#include <linux/regmap.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/initval.h>
#include <sound/tlv.h>
#include <sound/da9055.h>

Go to the source code of this file.

Data Structures

struct  pll_div
 
struct  da9055_priv
 

Macros

#define DA9055_STATUS1   0x02
 
#define DA9055_PLL_STATUS   0x03
 
#define DA9055_AUX_L_GAIN_STATUS   0x04
 
#define DA9055_AUX_R_GAIN_STATUS   0x05
 
#define DA9055_MIC_L_GAIN_STATUS   0x06
 
#define DA9055_MIC_R_GAIN_STATUS   0x07
 
#define DA9055_MIXIN_L_GAIN_STATUS   0x08
 
#define DA9055_MIXIN_R_GAIN_STATUS   0x09
 
#define DA9055_ADC_L_GAIN_STATUS   0x0A
 
#define DA9055_ADC_R_GAIN_STATUS   0x0B
 
#define DA9055_DAC_L_GAIN_STATUS   0x0C
 
#define DA9055_DAC_R_GAIN_STATUS   0x0D
 
#define DA9055_HP_L_GAIN_STATUS   0x0E
 
#define DA9055_HP_R_GAIN_STATUS   0x0F
 
#define DA9055_LINE_GAIN_STATUS   0x10
 
#define DA9055_CIF_CTRL   0x20
 
#define DA9055_DIG_ROUTING_AIF   0X21
 
#define DA9055_SR   0x22
 
#define DA9055_REFERENCES   0x23
 
#define DA9055_PLL_FRAC_TOP   0x24
 
#define DA9055_PLL_FRAC_BOT   0x25
 
#define DA9055_PLL_INTEGER   0x26
 
#define DA9055_PLL_CTRL   0x27
 
#define DA9055_AIF_CLK_MODE   0x28
 
#define DA9055_AIF_CTRL   0x29
 
#define DA9055_DIG_ROUTING_DAC   0x2A
 
#define DA9055_ALC_CTRL1   0x2B
 
#define DA9055_AUX_L_GAIN   0x30
 
#define DA9055_AUX_R_GAIN   0x31
 
#define DA9055_MIXIN_L_SELECT   0x32
 
#define DA9055_MIXIN_R_SELECT   0x33
 
#define DA9055_MIXIN_L_GAIN   0x34
 
#define DA9055_MIXIN_R_GAIN   0x35
 
#define DA9055_ADC_L_GAIN   0x36
 
#define DA9055_ADC_R_GAIN   0x37
 
#define DA9055_ADC_FILTERS1   0x38
 
#define DA9055_MIC_L_GAIN   0x39
 
#define DA9055_MIC_R_GAIN   0x3A
 
#define DA9055_DAC_FILTERS5   0x40
 
#define DA9055_DAC_FILTERS2   0x41
 
#define DA9055_DAC_FILTERS3   0x42
 
#define DA9055_DAC_FILTERS4   0x43
 
#define DA9055_DAC_FILTERS1   0x44
 
#define DA9055_DAC_L_GAIN   0x45
 
#define DA9055_DAC_R_GAIN   0x46
 
#define DA9055_CP_CTRL   0x47
 
#define DA9055_HP_L_GAIN   0x48
 
#define DA9055_HP_R_GAIN   0x49
 
#define DA9055_LINE_GAIN   0x4A
 
#define DA9055_MIXOUT_L_SELECT   0x4B
 
#define DA9055_MIXOUT_R_SELECT   0x4C
 
#define DA9055_SYSTEM_MODES_INPUT   0x50
 
#define DA9055_SYSTEM_MODES_OUTPUT   0x51
 
#define DA9055_AUX_L_CTRL   0x60
 
#define DA9055_AUX_R_CTRL   0x61
 
#define DA9055_MIC_BIAS_CTRL   0x62
 
#define DA9055_MIC_L_CTRL   0x63
 
#define DA9055_MIC_R_CTRL   0x64
 
#define DA9055_MIXIN_L_CTRL   0x65
 
#define DA9055_MIXIN_R_CTRL   0x66
 
#define DA9055_ADC_L_CTRL   0x67
 
#define DA9055_ADC_R_CTRL   0x68
 
#define DA9055_DAC_L_CTRL   0x69
 
#define DA9055_DAC_R_CTRL   0x6A
 
#define DA9055_HP_L_CTRL   0x6B
 
#define DA9055_HP_R_CTRL   0x6C
 
#define DA9055_LINE_CTRL   0x6D
 
#define DA9055_MIXOUT_L_CTRL   0x6E
 
#define DA9055_MIXOUT_R_CTRL   0x6F
 
#define DA9055_LDO_CTRL   0x90
 
#define DA9055_IO_CTRL   0x91
 
#define DA9055_GAIN_RAMP_CTRL   0x92
 
#define DA9055_MIC_CONFIG   0x93
 
#define DA9055_PC_COUNT   0x94
 
#define DA9055_CP_VOL_THRESHOLD1   0x95
 
#define DA9055_CP_DELAY   0x96
 
#define DA9055_CP_DETECTOR   0x97
 
#define DA9055_AIF_OFFSET   0x98
 
#define DA9055_DIG_CTRL   0x99
 
#define DA9055_ALC_CTRL2   0x9A
 
#define DA9055_ALC_CTRL3   0x9B
 
#define DA9055_ALC_NOISE   0x9C
 
#define DA9055_ALC_TARGET_MIN   0x9D
 
#define DA9055_ALC_TARGET_MAX   0x9E
 
#define DA9055_ALC_GAIN_LIMITS   0x9F
 
#define DA9055_ALC_ANA_GAIN_LIMITS   0xA0
 
#define DA9055_ALC_ANTICLIP_CTRL   0xA1
 
#define DA9055_ALC_ANTICLIP_LEVEL   0xA2
 
#define DA9055_ALC_OFFSET_OP2M_L   0xA6
 
#define DA9055_ALC_OFFSET_OP2U_L   0xA7
 
#define DA9055_ALC_OFFSET_OP2M_R   0xAB
 
#define DA9055_ALC_OFFSET_OP2U_R   0xAC
 
#define DA9055_ALC_CIC_OP_LVL_CTRL   0xAD
 
#define DA9055_ALC_CIC_OP_LVL_DATA   0xAE
 
#define DA9055_DAC_NG_SETUP_TIME   0xAF
 
#define DA9055_DAC_NG_OFF_THRESHOLD   0xB0
 
#define DA9055_DAC_NG_ON_THRESHOLD   0xB1
 
#define DA9055_DAC_NG_CTRL   0xB2
 
#define DA9055_SR_8000   (0x1 << 0)
 
#define DA9055_SR_11025   (0x2 << 0)
 
#define DA9055_SR_12000   (0x3 << 0)
 
#define DA9055_SR_16000   (0x5 << 0)
 
#define DA9055_SR_22050   (0x6 << 0)
 
#define DA9055_SR_24000   (0x7 << 0)
 
#define DA9055_SR_32000   (0x9 << 0)
 
#define DA9055_SR_44100   (0xA << 0)
 
#define DA9055_SR_48000   (0xB << 0)
 
#define DA9055_SR_88200   (0xE << 0)
 
#define DA9055_SR_96000   (0xF << 0)
 
#define DA9055_BIAS_EN   (1 << 3)
 
#define DA9055_VMID_EN   (1 << 7)
 
#define DA9055_PLL_INDIV_10_20_MHZ   (1 << 2)
 
#define DA9055_PLL_SRM_EN   (1 << 6)
 
#define DA9055_PLL_EN   (1 << 7)
 
#define DA9055_AIF_BCLKS_PER_WCLK_32   (0 << 0)
 
#define DA9055_AIF_BCLKS_PER_WCLK_64   (1 << 0)
 
#define DA9055_AIF_BCLKS_PER_WCLK_128   (2 << 0)
 
#define DA9055_AIF_BCLKS_PER_WCLK_256   (3 << 0)
 
#define DA9055_AIF_CLK_EN_SLAVE_MODE   (0 << 7)
 
#define DA9055_AIF_CLK_EN_MASTER_MODE   (1 << 7)
 
#define DA9055_AIF_FORMAT_I2S_MODE   (0 << 0)
 
#define DA9055_AIF_FORMAT_LEFT_J   (1 << 0)
 
#define DA9055_AIF_FORMAT_RIGHT_J   (2 << 0)
 
#define DA9055_AIF_WORD_S16_LE   (0 << 2)
 
#define DA9055_AIF_WORD_S20_3LE   (1 << 2)
 
#define DA9055_AIF_WORD_S24_LE   (2 << 2)
 
#define DA9055_AIF_WORD_S32_LE   (3 << 2)
 
#define DA9055_MIC_L_MUTE_EN   (1 << 6)
 
#define DA9055_MIC_R_MUTE_EN   (1 << 6)
 
#define DA9055_MIXIN_L_MIX_EN   (1 << 3)
 
#define DA9055_MIXIN_R_MIX_EN   (1 << 3)
 
#define DA9055_ADC_L_EN   (1 << 7)
 
#define DA9055_ADC_R_EN   (1 << 7)
 
#define DA9055_DAC_L_MUTE_EN   (1 << 6)
 
#define DA9055_DAC_R_MUTE_EN   (1 << 6)
 
#define DA9055_HP_L_AMP_OE   (1 << 3)
 
#define DA9055_HP_R_AMP_OE   (1 << 3)
 
#define DA9055_LINE_AMP_OE   (1 << 3)
 
#define DA9055_MIXOUT_L_MIX_EN   (1 << 3)
 
#define DA9055_MIXOUT_R_MIX_EN   (1 << 3)
 
#define DA9055_MICBIAS2_EN   (1 << 6)
 
#define DA9055_ALC_DATA_MIDDLE   (2 << 0)
 
#define DA9055_ALC_DATA_TOP   (3 << 0)
 
#define DA9055_ALC_CIC_OP_CHANNEL_LEFT   (0 << 7)
 
#define DA9055_ALC_CIC_OP_CHANNEL_RIGHT   (1 << 7)
 
#define DA9055_AIF_BCLK_MASK   (3 << 0)
 
#define DA9055_AIF_CLK_MODE_MASK   (1 << 7)
 
#define DA9055_AIF_FORMAT_MASK   (3 << 0)
 
#define DA9055_AIF_WORD_LENGTH_MASK   (3 << 2)
 
#define DA9055_GAIN_RAMPING_EN   (1 << 5)
 
#define DA9055_MICBIAS_LEVEL_MASK   (3 << 4)
 
#define DA9055_ALC_OFFSET_15_8   0x00FF00
 
#define DA9055_ALC_OFFSET_17_16   0x030000
 
#define DA9055_ALC_AVG_ITERATIONS   5
 
#define DA9055_FORMATS
 

Enumerations

enum  clk_src {
  clk_src_crystal, clk_src_href, clk_src_hclk, clk_src_hclkm3,
  clk_src_hclkm3d2, clk_src_host, clk_src_nvclk, clk_src_sclk,
  clk_src_mclk, clk_src_vdec, clk_src_dom6, DA7210_CLKSRC_MCLK,
  DA9055_CLKSRC_MCLK, WM8983_CLKSRC_MCLK, WM8983_CLKSRC_PLL, WM8985_CLKSRC_MCLK,
  WM8985_CLKSRC_PLL, WM8995_SYSCLK_MCLK1 = 1, WM8995_SYSCLK_MCLK2, WM8995_SYSCLK_FLL1,
  WM8995_SYSCLK_FLL2, WM8995_SYSCLK_OPCLK
}
 

Functions

 MODULE_DEVICE_TABLE (i2c, da9055_i2c_id)
 
 module_i2c_driver (da9055_i2c_driver)
 
 MODULE_DESCRIPTION ("ASoC DA9055 Codec driver")
 
 MODULE_AUTHOR ("David Chen, Ashish Chavan")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define DA9055_ADC_FILTERS1   0x38

Definition at line 70 of file da9055.c.

#define DA9055_ADC_L_CTRL   0x67

Definition at line 101 of file da9055.c.

#define DA9055_ADC_L_EN   (1 << 7)

Definition at line 194 of file da9055.c.

#define DA9055_ADC_L_GAIN   0x36

Definition at line 68 of file da9055.c.

#define DA9055_ADC_L_GAIN_STATUS   0x0A

Definition at line 39 of file da9055.c.

#define DA9055_ADC_R_CTRL   0x68

Definition at line 102 of file da9055.c.

#define DA9055_ADC_R_EN   (1 << 7)

Definition at line 197 of file da9055.c.

#define DA9055_ADC_R_GAIN   0x37

Definition at line 69 of file da9055.c.

#define DA9055_ADC_R_GAIN_STATUS   0x0B

Definition at line 40 of file da9055.c.

#define DA9055_AIF_BCLK_MASK   (3 << 0)

Definition at line 229 of file da9055.c.

#define DA9055_AIF_BCLKS_PER_WCLK_128   (2 << 0)

Definition at line 167 of file da9055.c.

#define DA9055_AIF_BCLKS_PER_WCLK_256   (3 << 0)

Definition at line 168 of file da9055.c.

#define DA9055_AIF_BCLKS_PER_WCLK_32   (0 << 0)

Definition at line 165 of file da9055.c.

#define DA9055_AIF_BCLKS_PER_WCLK_64   (1 << 0)

Definition at line 166 of file da9055.c.

#define DA9055_AIF_CLK_EN_MASTER_MODE   (1 << 7)

Definition at line 170 of file da9055.c.

#define DA9055_AIF_CLK_EN_SLAVE_MODE   (0 << 7)

Definition at line 169 of file da9055.c.

#define DA9055_AIF_CLK_MODE   0x28

Definition at line 56 of file da9055.c.

#define DA9055_AIF_CLK_MODE_MASK   (1 << 7)

Definition at line 230 of file da9055.c.

#define DA9055_AIF_CTRL   0x29

Definition at line 57 of file da9055.c.

#define DA9055_AIF_FORMAT_I2S_MODE   (0 << 0)

Definition at line 173 of file da9055.c.

#define DA9055_AIF_FORMAT_LEFT_J   (1 << 0)

Definition at line 174 of file da9055.c.

#define DA9055_AIF_FORMAT_MASK   (3 << 0)

Definition at line 231 of file da9055.c.

#define DA9055_AIF_FORMAT_RIGHT_J   (2 << 0)

Definition at line 175 of file da9055.c.

#define DA9055_AIF_OFFSET   0x98

Definition at line 120 of file da9055.c.

#define DA9055_AIF_WORD_LENGTH_MASK   (3 << 2)

Definition at line 232 of file da9055.c.

#define DA9055_AIF_WORD_S16_LE   (0 << 2)

Definition at line 176 of file da9055.c.

#define DA9055_AIF_WORD_S20_3LE   (1 << 2)

Definition at line 177 of file da9055.c.

#define DA9055_AIF_WORD_S24_LE   (2 << 2)

Definition at line 178 of file da9055.c.

#define DA9055_AIF_WORD_S32_LE   (3 << 2)

Definition at line 179 of file da9055.c.

#define DA9055_ALC_ANA_GAIN_LIMITS   0xA0

Definition at line 128 of file da9055.c.

#define DA9055_ALC_ANTICLIP_CTRL   0xA1

Definition at line 129 of file da9055.c.

#define DA9055_ALC_ANTICLIP_LEVEL   0xA2

Definition at line 130 of file da9055.c.

#define DA9055_ALC_AVG_ITERATIONS   5

Definition at line 238 of file da9055.c.

#define DA9055_ALC_CIC_OP_CHANNEL_LEFT   (0 << 7)

Definition at line 226 of file da9055.c.

#define DA9055_ALC_CIC_OP_CHANNEL_RIGHT   (1 << 7)

Definition at line 227 of file da9055.c.

#define DA9055_ALC_CIC_OP_LVL_CTRL   0xAD

Definition at line 135 of file da9055.c.

#define DA9055_ALC_CIC_OP_LVL_DATA   0xAE

Definition at line 136 of file da9055.c.

#define DA9055_ALC_CTRL1   0x2B

Definition at line 59 of file da9055.c.

#define DA9055_ALC_CTRL2   0x9A

Definition at line 122 of file da9055.c.

#define DA9055_ALC_CTRL3   0x9B

Definition at line 123 of file da9055.c.

#define DA9055_ALC_DATA_MIDDLE   (2 << 0)

Definition at line 224 of file da9055.c.

#define DA9055_ALC_DATA_TOP   (3 << 0)

Definition at line 225 of file da9055.c.

#define DA9055_ALC_GAIN_LIMITS   0x9F

Definition at line 127 of file da9055.c.

#define DA9055_ALC_NOISE   0x9C

Definition at line 124 of file da9055.c.

#define DA9055_ALC_OFFSET_15_8   0x00FF00

Definition at line 236 of file da9055.c.

#define DA9055_ALC_OFFSET_17_16   0x030000

Definition at line 237 of file da9055.c.

#define DA9055_ALC_OFFSET_OP2M_L   0xA6

Definition at line 131 of file da9055.c.

#define DA9055_ALC_OFFSET_OP2M_R   0xAB

Definition at line 133 of file da9055.c.

#define DA9055_ALC_OFFSET_OP2U_L   0xA7

Definition at line 132 of file da9055.c.

#define DA9055_ALC_OFFSET_OP2U_R   0xAC

Definition at line 134 of file da9055.c.

#define DA9055_ALC_TARGET_MAX   0x9E

Definition at line 126 of file da9055.c.

#define DA9055_ALC_TARGET_MIN   0x9D

Definition at line 125 of file da9055.c.

#define DA9055_AUX_L_CTRL   0x60

Definition at line 94 of file da9055.c.

#define DA9055_AUX_L_GAIN   0x30

Definition at line 62 of file da9055.c.

#define DA9055_AUX_L_GAIN_STATUS   0x04

Definition at line 33 of file da9055.c.

#define DA9055_AUX_R_CTRL   0x61

Definition at line 95 of file da9055.c.

#define DA9055_AUX_R_GAIN   0x31

Definition at line 63 of file da9055.c.

#define DA9055_AUX_R_GAIN_STATUS   0x05

Definition at line 34 of file da9055.c.

#define DA9055_BIAS_EN   (1 << 3)

Definition at line 156 of file da9055.c.

#define DA9055_CIF_CTRL   0x20

Definition at line 48 of file da9055.c.

#define DA9055_CP_CTRL   0x47

Definition at line 82 of file da9055.c.

#define DA9055_CP_DELAY   0x96

Definition at line 118 of file da9055.c.

#define DA9055_CP_DETECTOR   0x97

Definition at line 119 of file da9055.c.

#define DA9055_CP_VOL_THRESHOLD1   0x95

Definition at line 117 of file da9055.c.

#define DA9055_DAC_FILTERS1   0x44

Definition at line 79 of file da9055.c.

#define DA9055_DAC_FILTERS2   0x41

Definition at line 76 of file da9055.c.

#define DA9055_DAC_FILTERS3   0x42

Definition at line 77 of file da9055.c.

#define DA9055_DAC_FILTERS4   0x43

Definition at line 78 of file da9055.c.

#define DA9055_DAC_FILTERS5   0x40

Definition at line 75 of file da9055.c.

#define DA9055_DAC_L_CTRL   0x69

Definition at line 103 of file da9055.c.

#define DA9055_DAC_L_GAIN   0x45

Definition at line 80 of file da9055.c.

#define DA9055_DAC_L_GAIN_STATUS   0x0C

Definition at line 41 of file da9055.c.

#define DA9055_DAC_L_MUTE_EN   (1 << 6)

Definition at line 200 of file da9055.c.

#define DA9055_DAC_NG_CTRL   0xB2

Definition at line 140 of file da9055.c.

#define DA9055_DAC_NG_OFF_THRESHOLD   0xB0

Definition at line 138 of file da9055.c.

#define DA9055_DAC_NG_ON_THRESHOLD   0xB1

Definition at line 139 of file da9055.c.

#define DA9055_DAC_NG_SETUP_TIME   0xAF

Definition at line 137 of file da9055.c.

#define DA9055_DAC_R_CTRL   0x6A

Definition at line 104 of file da9055.c.

#define DA9055_DAC_R_GAIN   0x46

Definition at line 81 of file da9055.c.

#define DA9055_DAC_R_GAIN_STATUS   0x0D

Definition at line 42 of file da9055.c.

#define DA9055_DAC_R_MUTE_EN   (1 << 6)

Definition at line 203 of file da9055.c.

#define DA9055_DIG_CTRL   0x99

Definition at line 121 of file da9055.c.

#define DA9055_DIG_ROUTING_AIF   0X21

Definition at line 49 of file da9055.c.

#define DA9055_DIG_ROUTING_DAC   0x2A

Definition at line 58 of file da9055.c.

#define DA9055_FORMATS
Value:

Definition at line 1212 of file da9055.c.

#define DA9055_GAIN_RAMP_CTRL   0x92

Definition at line 114 of file da9055.c.

#define DA9055_GAIN_RAMPING_EN   (1 << 5)

Definition at line 233 of file da9055.c.

#define DA9055_HP_L_AMP_OE   (1 << 3)

Definition at line 206 of file da9055.c.

#define DA9055_HP_L_CTRL   0x6B

Definition at line 105 of file da9055.c.

#define DA9055_HP_L_GAIN   0x48

Definition at line 83 of file da9055.c.

#define DA9055_HP_L_GAIN_STATUS   0x0E

Definition at line 43 of file da9055.c.

#define DA9055_HP_R_AMP_OE   (1 << 3)

Definition at line 209 of file da9055.c.

#define DA9055_HP_R_CTRL   0x6C

Definition at line 106 of file da9055.c.

#define DA9055_HP_R_GAIN   0x49

Definition at line 84 of file da9055.c.

#define DA9055_HP_R_GAIN_STATUS   0x0F

Definition at line 44 of file da9055.c.

#define DA9055_IO_CTRL   0x91

Definition at line 113 of file da9055.c.

#define DA9055_LDO_CTRL   0x90

Definition at line 112 of file da9055.c.

#define DA9055_LINE_AMP_OE   (1 << 3)

Definition at line 212 of file da9055.c.

#define DA9055_LINE_CTRL   0x6D

Definition at line 107 of file da9055.c.

#define DA9055_LINE_GAIN   0x4A

Definition at line 85 of file da9055.c.

#define DA9055_LINE_GAIN_STATUS   0x10

Definition at line 45 of file da9055.c.

#define DA9055_MIC_BIAS_CTRL   0x62

Definition at line 96 of file da9055.c.

#define DA9055_MIC_CONFIG   0x93

Definition at line 115 of file da9055.c.

#define DA9055_MIC_L_CTRL   0x63

Definition at line 97 of file da9055.c.

#define DA9055_MIC_L_GAIN   0x39

Definition at line 71 of file da9055.c.

#define DA9055_MIC_L_GAIN_STATUS   0x06

Definition at line 35 of file da9055.c.

#define DA9055_MIC_L_MUTE_EN   (1 << 6)

Definition at line 182 of file da9055.c.

#define DA9055_MIC_R_CTRL   0x64

Definition at line 98 of file da9055.c.

#define DA9055_MIC_R_GAIN   0x3A

Definition at line 72 of file da9055.c.

#define DA9055_MIC_R_GAIN_STATUS   0x07

Definition at line 36 of file da9055.c.

#define DA9055_MIC_R_MUTE_EN   (1 << 6)

Definition at line 185 of file da9055.c.

#define DA9055_MICBIAS2_EN   (1 << 6)

Definition at line 221 of file da9055.c.

#define DA9055_MICBIAS_LEVEL_MASK   (3 << 4)

Definition at line 234 of file da9055.c.

#define DA9055_MIXIN_L_CTRL   0x65

Definition at line 99 of file da9055.c.

#define DA9055_MIXIN_L_GAIN   0x34

Definition at line 66 of file da9055.c.

#define DA9055_MIXIN_L_GAIN_STATUS   0x08

Definition at line 37 of file da9055.c.

#define DA9055_MIXIN_L_MIX_EN   (1 << 3)

Definition at line 188 of file da9055.c.

#define DA9055_MIXIN_L_SELECT   0x32

Definition at line 64 of file da9055.c.

#define DA9055_MIXIN_R_CTRL   0x66

Definition at line 100 of file da9055.c.

#define DA9055_MIXIN_R_GAIN   0x35

Definition at line 67 of file da9055.c.

#define DA9055_MIXIN_R_GAIN_STATUS   0x09

Definition at line 38 of file da9055.c.

#define DA9055_MIXIN_R_MIX_EN   (1 << 3)

Definition at line 191 of file da9055.c.

#define DA9055_MIXIN_R_SELECT   0x33

Definition at line 65 of file da9055.c.

#define DA9055_MIXOUT_L_CTRL   0x6E

Definition at line 108 of file da9055.c.

#define DA9055_MIXOUT_L_MIX_EN   (1 << 3)

Definition at line 215 of file da9055.c.

#define DA9055_MIXOUT_L_SELECT   0x4B

Definition at line 86 of file da9055.c.

#define DA9055_MIXOUT_R_CTRL   0x6F

Definition at line 109 of file da9055.c.

#define DA9055_MIXOUT_R_MIX_EN   (1 << 3)

Definition at line 218 of file da9055.c.

#define DA9055_MIXOUT_R_SELECT   0x4C

Definition at line 87 of file da9055.c.

#define DA9055_PC_COUNT   0x94

Definition at line 116 of file da9055.c.

#define DA9055_PLL_CTRL   0x27

Definition at line 55 of file da9055.c.

#define DA9055_PLL_EN   (1 << 7)

Definition at line 162 of file da9055.c.

#define DA9055_PLL_FRAC_BOT   0x25

Definition at line 53 of file da9055.c.

#define DA9055_PLL_FRAC_TOP   0x24

Definition at line 52 of file da9055.c.

#define DA9055_PLL_INDIV_10_20_MHZ   (1 << 2)

Definition at line 160 of file da9055.c.

#define DA9055_PLL_INTEGER   0x26

Definition at line 54 of file da9055.c.

#define DA9055_PLL_SRM_EN   (1 << 6)

Definition at line 161 of file da9055.c.

#define DA9055_PLL_STATUS   0x03

Definition at line 32 of file da9055.c.

#define DA9055_REFERENCES   0x23

Definition at line 51 of file da9055.c.

#define DA9055_SR   0x22

Definition at line 50 of file da9055.c.

#define DA9055_SR_11025   (0x2 << 0)

Definition at line 144 of file da9055.c.

#define DA9055_SR_12000   (0x3 << 0)

Definition at line 145 of file da9055.c.

#define DA9055_SR_16000   (0x5 << 0)

Definition at line 146 of file da9055.c.

#define DA9055_SR_22050   (0x6 << 0)

Definition at line 147 of file da9055.c.

#define DA9055_SR_24000   (0x7 << 0)

Definition at line 148 of file da9055.c.

#define DA9055_SR_32000   (0x9 << 0)

Definition at line 149 of file da9055.c.

#define DA9055_SR_44100   (0xA << 0)

Definition at line 150 of file da9055.c.

#define DA9055_SR_48000   (0xB << 0)

Definition at line 151 of file da9055.c.

#define DA9055_SR_8000   (0x1 << 0)

Definition at line 143 of file da9055.c.

#define DA9055_SR_88200   (0xE << 0)

Definition at line 152 of file da9055.c.

#define DA9055_SR_96000   (0xF << 0)

Definition at line 153 of file da9055.c.

#define DA9055_STATUS1   0x02

Definition at line 31 of file da9055.c.

#define DA9055_SYSTEM_MODES_INPUT   0x50

Definition at line 90 of file da9055.c.

#define DA9055_SYSTEM_MODES_OUTPUT   0x51

Definition at line 91 of file da9055.c.

#define DA9055_VMID_EN   (1 << 7)

Definition at line 157 of file da9055.c.

Enumeration Type Documentation

enum clk_src
Enumerator:
clk_src_crystal 
clk_src_href 
clk_src_hclk 
clk_src_hclkm3 
clk_src_hclkm3d2 
clk_src_host 
clk_src_nvclk 
clk_src_sclk 
clk_src_mclk 
clk_src_vdec 
clk_src_dom6 
DA7210_CLKSRC_MCLK 
DA9055_CLKSRC_MCLK 
WM8983_CLKSRC_MCLK 
WM8983_CLKSRC_PLL 
WM8985_CLKSRC_MCLK 
WM8985_CLKSRC_PLL 
WM8995_SYSCLK_MCLK1 
WM8995_SYSCLK_MCLK2 
WM8995_SYSCLK_FLL1 
WM8995_SYSCLK_FLL2 
WM8995_SYSCLK_OPCLK 

Definition at line 283 of file da9055.c.

Function Documentation

MODULE_AUTHOR ( "David  Chen,
Ashish Chavan"   
)
MODULE_DESCRIPTION ( "ASoC DA9055 Codec driver )
MODULE_DEVICE_TABLE ( i2c  ,
da9055_i2c_id   
)
module_i2c_driver ( da9055_i2c_driver  )
MODULE_LICENSE ( "GPL"  )