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

Go to the source code of this file.

Macros

#define WM8978_RESET   0x00
 
#define WM8978_POWER_MANAGEMENT_1   0x01
 
#define WM8978_POWER_MANAGEMENT_2   0x02
 
#define WM8978_POWER_MANAGEMENT_3   0x03
 
#define WM8978_AUDIO_INTERFACE   0x04
 
#define WM8978_COMPANDING_CONTROL   0x05
 
#define WM8978_CLOCKING   0x06
 
#define WM8978_ADDITIONAL_CONTROL   0x07
 
#define WM8978_GPIO_CONTROL   0x08
 
#define WM8978_JACK_DETECT_CONTROL_1   0x09
 
#define WM8978_DAC_CONTROL   0x0A
 
#define WM8978_LEFT_DAC_DIGITAL_VOLUME   0x0B
 
#define WM8978_RIGHT_DAC_DIGITAL_VOLUME   0x0C
 
#define WM8978_JACK_DETECT_CONTROL_2   0x0D
 
#define WM8978_ADC_CONTROL   0x0E
 
#define WM8978_LEFT_ADC_DIGITAL_VOLUME   0x0F
 
#define WM8978_RIGHT_ADC_DIGITAL_VOLUME   0x10
 
#define WM8978_EQ1   0x12
 
#define WM8978_EQ2   0x13
 
#define WM8978_EQ3   0x14
 
#define WM8978_EQ4   0x15
 
#define WM8978_EQ5   0x16
 
#define WM8978_DAC_LIMITER_1   0x18
 
#define WM8978_DAC_LIMITER_2   0x19
 
#define WM8978_NOTCH_FILTER_1   0x1b
 
#define WM8978_NOTCH_FILTER_2   0x1c
 
#define WM8978_NOTCH_FILTER_3   0x1d
 
#define WM8978_NOTCH_FILTER_4   0x1e
 
#define WM8978_ALC_CONTROL_1   0x20
 
#define WM8978_ALC_CONTROL_2   0x21
 
#define WM8978_ALC_CONTROL_3   0x22
 
#define WM8978_NOISE_GATE   0x23
 
#define WM8978_PLL_N   0x24
 
#define WM8978_PLL_K1   0x25
 
#define WM8978_PLL_K2   0x26
 
#define WM8978_PLL_K3   0x27
 
#define WM8978_3D_CONTROL   0x29
 
#define WM8978_BEEP_CONTROL   0x2b
 
#define WM8978_INPUT_CONTROL   0x2c
 
#define WM8978_LEFT_INP_PGA_CONTROL   0x2d
 
#define WM8978_RIGHT_INP_PGA_CONTROL   0x2e
 
#define WM8978_LEFT_ADC_BOOST_CONTROL   0x2f
 
#define WM8978_RIGHT_ADC_BOOST_CONTROL   0x30
 
#define WM8978_OUTPUT_CONTROL   0x31
 
#define WM8978_LEFT_MIXER_CONTROL   0x32
 
#define WM8978_RIGHT_MIXER_CONTROL   0x33
 
#define WM8978_LOUT1_HP_CONTROL   0x34
 
#define WM8978_ROUT1_HP_CONTROL   0x35
 
#define WM8978_LOUT2_SPK_CONTROL   0x36
 
#define WM8978_ROUT2_SPK_CONTROL   0x37
 
#define WM8978_OUT3_MIXER_CONTROL   0x38
 
#define WM8978_OUT4_MIXER_CONTROL   0x39
 
#define WM8978_MAX_REGISTER   0x39
 
#define WM8978_CACHEREGNUM   58
 

Enumerations

enum  wm8978_clk_id { WM8978_OPCLKRATE, WM8978_BCLKDIV }
 
enum  wm8978_sysclk_src { WM8978_PLL, WM8978_MCLK }
 

Macro Definition Documentation

#define WM8978_3D_CONTROL   0x29

Definition at line 53 of file wm8978.h.

#define WM8978_ADC_CONTROL   0x0E

Definition at line 31 of file wm8978.h.

#define WM8978_ADDITIONAL_CONTROL   0x07

Definition at line 24 of file wm8978.h.

#define WM8978_ALC_CONTROL_1   0x20

Definition at line 45 of file wm8978.h.

#define WM8978_ALC_CONTROL_2   0x21

Definition at line 46 of file wm8978.h.

#define WM8978_ALC_CONTROL_3   0x22

Definition at line 47 of file wm8978.h.

#define WM8978_AUDIO_INTERFACE   0x04

Definition at line 21 of file wm8978.h.

#define WM8978_BEEP_CONTROL   0x2b

Definition at line 54 of file wm8978.h.

#define WM8978_CACHEREGNUM   58

Definition at line 72 of file wm8978.h.

#define WM8978_CLOCKING   0x06

Definition at line 23 of file wm8978.h.

#define WM8978_COMPANDING_CONTROL   0x05

Definition at line 22 of file wm8978.h.

#define WM8978_DAC_CONTROL   0x0A

Definition at line 27 of file wm8978.h.

#define WM8978_DAC_LIMITER_1   0x18

Definition at line 39 of file wm8978.h.

#define WM8978_DAC_LIMITER_2   0x19

Definition at line 40 of file wm8978.h.

#define WM8978_EQ1   0x12

Definition at line 34 of file wm8978.h.

#define WM8978_EQ2   0x13

Definition at line 35 of file wm8978.h.

#define WM8978_EQ3   0x14

Definition at line 36 of file wm8978.h.

#define WM8978_EQ4   0x15

Definition at line 37 of file wm8978.h.

#define WM8978_EQ5   0x16

Definition at line 38 of file wm8978.h.

#define WM8978_GPIO_CONTROL   0x08

Definition at line 25 of file wm8978.h.

#define WM8978_INPUT_CONTROL   0x2c

Definition at line 55 of file wm8978.h.

#define WM8978_JACK_DETECT_CONTROL_1   0x09

Definition at line 26 of file wm8978.h.

#define WM8978_JACK_DETECT_CONTROL_2   0x0D

Definition at line 30 of file wm8978.h.

#define WM8978_LEFT_ADC_BOOST_CONTROL   0x2f

Definition at line 58 of file wm8978.h.

#define WM8978_LEFT_ADC_DIGITAL_VOLUME   0x0F

Definition at line 32 of file wm8978.h.

#define WM8978_LEFT_DAC_DIGITAL_VOLUME   0x0B

Definition at line 28 of file wm8978.h.

#define WM8978_LEFT_INP_PGA_CONTROL   0x2d

Definition at line 56 of file wm8978.h.

#define WM8978_LEFT_MIXER_CONTROL   0x32

Definition at line 61 of file wm8978.h.

#define WM8978_LOUT1_HP_CONTROL   0x34

Definition at line 63 of file wm8978.h.

#define WM8978_LOUT2_SPK_CONTROL   0x36

Definition at line 65 of file wm8978.h.

#define WM8978_MAX_REGISTER   0x39

Definition at line 70 of file wm8978.h.

#define WM8978_NOISE_GATE   0x23

Definition at line 48 of file wm8978.h.

#define WM8978_NOTCH_FILTER_1   0x1b

Definition at line 41 of file wm8978.h.

#define WM8978_NOTCH_FILTER_2   0x1c

Definition at line 42 of file wm8978.h.

#define WM8978_NOTCH_FILTER_3   0x1d

Definition at line 43 of file wm8978.h.

#define WM8978_NOTCH_FILTER_4   0x1e

Definition at line 44 of file wm8978.h.

#define WM8978_OUT3_MIXER_CONTROL   0x38

Definition at line 67 of file wm8978.h.

#define WM8978_OUT4_MIXER_CONTROL   0x39

Definition at line 68 of file wm8978.h.

#define WM8978_OUTPUT_CONTROL   0x31

Definition at line 60 of file wm8978.h.

#define WM8978_PLL_K1   0x25

Definition at line 50 of file wm8978.h.

#define WM8978_PLL_K2   0x26

Definition at line 51 of file wm8978.h.

#define WM8978_PLL_K3   0x27

Definition at line 52 of file wm8978.h.

#define WM8978_PLL_N   0x24

Definition at line 49 of file wm8978.h.

#define WM8978_POWER_MANAGEMENT_1   0x01

Definition at line 18 of file wm8978.h.

#define WM8978_POWER_MANAGEMENT_2   0x02

Definition at line 19 of file wm8978.h.

#define WM8978_POWER_MANAGEMENT_3   0x03

Definition at line 20 of file wm8978.h.

#define WM8978_RESET   0x00

Definition at line 17 of file wm8978.h.

#define WM8978_RIGHT_ADC_BOOST_CONTROL   0x30

Definition at line 59 of file wm8978.h.

#define WM8978_RIGHT_ADC_DIGITAL_VOLUME   0x10

Definition at line 33 of file wm8978.h.

#define WM8978_RIGHT_DAC_DIGITAL_VOLUME   0x0C

Definition at line 29 of file wm8978.h.

#define WM8978_RIGHT_INP_PGA_CONTROL   0x2e

Definition at line 57 of file wm8978.h.

#define WM8978_RIGHT_MIXER_CONTROL   0x33

Definition at line 62 of file wm8978.h.

#define WM8978_ROUT1_HP_CONTROL   0x35

Definition at line 64 of file wm8978.h.

#define WM8978_ROUT2_SPK_CONTROL   0x37

Definition at line 66 of file wm8978.h.

Enumeration Type Documentation

Enumerator:
WM8978_OPCLKRATE 
WM8978_BCLKDIV 

Definition at line 75 of file wm8978.h.

Enumerator:
WM8978_PLL 
WM8978_MCLK 

Definition at line 80 of file wm8978.h.