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

Go to the source code of this file.

Macros

#define WM9713_CLKA_PIN   0
 
#define WM9713_CLKB_PIN   1
 
#define WM9713_PCMCLK_DIV   0
 
#define WM9713_CLKA_MULT   1
 
#define WM9713_CLKB_MULT   2
 
#define WM9713_HIFI_DIV   3
 
#define WM9713_PCMBCLK_DIV   4
 
#define WM9713_PCMCLK_PLL_DIV   5
 
#define WM9713_HIFI_PLL_DIV   6
 
#define WM9713_PCMDIV(x)   ((x - 1) << 8)
 
#define WM9713_HIFIDIV(x)   ((x - 1) << 12)
 
#define WM9713_CLKA_X1   (0 << 1)
 
#define WM9713_CLKA_X2   (1 << 1)
 
#define WM9713_CLKB_X1   (0 << 2)
 
#define WM9713_CLKB_X2   (1 << 2)
 
#define WM9713_CLK_MUX_A   (0 << 0)
 
#define WM9713_CLK_MUX_B   (1 << 0)
 
#define WM9713_PCMBCLK_DIV_1   (0 << 9)
 
#define WM9713_PCMBCLK_DIV_2   (1 << 9)
 
#define WM9713_PCMBCLK_DIV_4   (2 << 9)
 
#define WM9713_PCMBCLK_DIV_8   (3 << 9)
 
#define WM9713_PCMBCLK_DIV_16   (4 << 9)
 
#define WM9713_DAI_AC97_HIFI   0
 
#define WM9713_DAI_AC97_AUX   1
 
#define WM9713_DAI_PCM_VOICE   2
 

Functions

int wm9713_reset (struct snd_soc_codec *codec, int try_warm)
 

Macro Definition Documentation

#define WM9713_CLK_MUX_A   (0 << 0)

Definition at line 34 of file wm9713.h.

#define WM9713_CLK_MUX_B   (1 << 0)

Definition at line 35 of file wm9713.h.

#define WM9713_CLKA_MULT   1

Definition at line 14 of file wm9713.h.

#define WM9713_CLKA_PIN   0

Definition at line 9 of file wm9713.h.

#define WM9713_CLKA_X1   (0 << 1)

Definition at line 28 of file wm9713.h.

#define WM9713_CLKA_X2   (1 << 1)

Definition at line 29 of file wm9713.h.

#define WM9713_CLKB_MULT   2

Definition at line 15 of file wm9713.h.

#define WM9713_CLKB_PIN   1

Definition at line 10 of file wm9713.h.

#define WM9713_CLKB_X1   (0 << 2)

Definition at line 30 of file wm9713.h.

#define WM9713_CLKB_X2   (1 << 2)

Definition at line 31 of file wm9713.h.

#define WM9713_DAI_AC97_AUX   1

Definition at line 45 of file wm9713.h.

#define WM9713_DAI_AC97_HIFI   0

Definition at line 44 of file wm9713.h.

#define WM9713_DAI_PCM_VOICE   2

Definition at line 46 of file wm9713.h.

#define WM9713_HIFI_DIV   3

Definition at line 16 of file wm9713.h.

#define WM9713_HIFI_PLL_DIV   6

Definition at line 19 of file wm9713.h.

#define WM9713_HIFIDIV (   x)    ((x - 1) << 12)

Definition at line 25 of file wm9713.h.

#define WM9713_PCMBCLK_DIV   4

Definition at line 17 of file wm9713.h.

#define WM9713_PCMBCLK_DIV_1   (0 << 9)

Definition at line 38 of file wm9713.h.

#define WM9713_PCMBCLK_DIV_16   (4 << 9)

Definition at line 42 of file wm9713.h.

#define WM9713_PCMBCLK_DIV_2   (1 << 9)

Definition at line 39 of file wm9713.h.

#define WM9713_PCMBCLK_DIV_4   (2 << 9)

Definition at line 40 of file wm9713.h.

#define WM9713_PCMBCLK_DIV_8   (3 << 9)

Definition at line 41 of file wm9713.h.

#define WM9713_PCMCLK_DIV   0

Definition at line 13 of file wm9713.h.

#define WM9713_PCMCLK_PLL_DIV   5

Definition at line 18 of file wm9713.h.

#define WM9713_PCMDIV (   x)    ((x - 1) << 8)

Definition at line 22 of file wm9713.h.

Function Documentation

int wm9713_reset ( struct snd_soc_codec codec,
int  try_warm 
)

Definition at line 1096 of file wm9713.c.