Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
arizona.h File Reference
#include <linux/completion.h>
#include <sound/soc.h>

Go to the source code of this file.

Data Structures

struct  arizona_dai_priv
 
struct  arizona_priv
 
struct  arizona_fll
 

Macros

#define ARIZONA_CLK_SYSCLK   1
 
#define ARIZONA_CLK_ASYNCCLK   2
 
#define ARIZONA_CLK_OPCLK   3
 
#define ARIZONA_CLK_ASYNC_OPCLK   4
 
#define ARIZONA_CLK_SRC_MCLK1   0x0
 
#define ARIZONA_CLK_SRC_MCLK2   0x1
 
#define ARIZONA_CLK_SRC_FLL1   0x4
 
#define ARIZONA_CLK_SRC_FLL2   0x5
 
#define ARIZONA_CLK_SRC_AIF1BCLK   0x8
 
#define ARIZONA_CLK_SRC_AIF2BCLK   0x9
 
#define ARIZONA_CLK_SRC_AIF3BCLK   0xa
 
#define ARIZONA_FLL_SRC_MCLK1   0
 
#define ARIZONA_FLL_SRC_MCLK2   1
 
#define ARIZONA_FLL_SRC_SLIMCLK   2
 
#define ARIZONA_FLL_SRC_FLL1   3
 
#define ARIZONA_FLL_SRC_FLL2   4
 
#define ARIZONA_FLL_SRC_AIF1BCLK   5
 
#define ARIZONA_FLL_SRC_AIF2BCLK   6
 
#define ARIZONA_FLL_SRC_AIF3BCLK   7
 
#define ARIZONA_FLL_SRC_AIF1LRCLK   8
 
#define ARIZONA_FLL_SRC_AIF2LRCLK   9
 
#define ARIZONA_FLL_SRC_AIF3LRCLK   10
 
#define ARIZONA_MIXER_VOL_MASK   0x00FE
 
#define ARIZONA_MIXER_VOL_SHIFT   1
 
#define ARIZONA_MIXER_VOL_WIDTH   7
 
#define ARIZONA_MAX_DAI   3
 
#define ARIZONA_NUM_MIXER_INPUTS   75
 
#define ARIZONA_MIXER_CONTROLS(name, base)
 
#define ARIZONA_MUX_ENUM_DECL(name, reg)
 
#define ARIZONA_MUX_CTL_DECL(name)
 
#define ARIZONA_MIXER_ENUMS(name, base_reg)
 
#define ARIZONA_MUX(name, ctrl)   SND_SOC_DAPM_VALUE_MUX(name, SND_SOC_NOPM, 0, 0, ctrl)
 
#define ARIZONA_MIXER_WIDGETS(name, name_str)
 
#define ARIZONA_MIXER_ROUTES(widget, name)
 
#define ARIZONA_FLL_NAME_LEN   20
 

Functions

int arizona_in_ev (struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol, int event)
 
int arizona_out_ev (struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol, int event)
 
int arizona_set_sysclk (struct snd_soc_codec *codec, int clk_id, int source, unsigned int freq, int dir)
 
int arizona_init_fll (struct arizona *arizona, int id, int base, int lock_irq, int ok_irq, struct arizona_fll *fll)
 
int arizona_set_fll (struct arizona_fll *fll, int source, unsigned int Fref, unsigned int Fout)
 
int arizona_init_dai (struct arizona_priv *priv, int dai)
 

Variables

const unsigned int arizona_mixer_tlv []
 
const chararizona_mixer_texts [ARIZONA_NUM_MIXER_INPUTS]
 
int arizona_mixer_values [ARIZONA_NUM_MIXER_INPUTS]
 
struct soc_enum arizona_lhpf1_mode
 
struct soc_enum arizona_lhpf2_mode
 
struct soc_enum arizona_lhpf3_mode
 
struct soc_enum arizona_lhpf4_mode
 
struct snd_soc_dai_ops arizona_dai_ops
 

Macro Definition Documentation

#define ARIZONA_CLK_ASYNC_OPCLK   4

Definition at line 23 of file arizona.h.

#define ARIZONA_CLK_ASYNCCLK   2

Definition at line 21 of file arizona.h.

#define ARIZONA_CLK_OPCLK   3

Definition at line 22 of file arizona.h.

#define ARIZONA_CLK_SRC_AIF1BCLK   0x8

Definition at line 29 of file arizona.h.

#define ARIZONA_CLK_SRC_AIF2BCLK   0x9

Definition at line 30 of file arizona.h.

#define ARIZONA_CLK_SRC_AIF3BCLK   0xa

Definition at line 31 of file arizona.h.

#define ARIZONA_CLK_SRC_FLL1   0x4

Definition at line 27 of file arizona.h.

#define ARIZONA_CLK_SRC_FLL2   0x5

Definition at line 28 of file arizona.h.

#define ARIZONA_CLK_SRC_MCLK1   0x0

Definition at line 25 of file arizona.h.

#define ARIZONA_CLK_SRC_MCLK2   0x1

Definition at line 26 of file arizona.h.

#define ARIZONA_CLK_SYSCLK   1

Definition at line 20 of file arizona.h.

#define ARIZONA_FLL_NAME_LEN   20

Definition at line 140 of file arizona.h.

#define ARIZONA_FLL_SRC_AIF1BCLK   5

Definition at line 38 of file arizona.h.

#define ARIZONA_FLL_SRC_AIF1LRCLK   8

Definition at line 41 of file arizona.h.

#define ARIZONA_FLL_SRC_AIF2BCLK   6

Definition at line 39 of file arizona.h.

#define ARIZONA_FLL_SRC_AIF2LRCLK   9

Definition at line 42 of file arizona.h.

#define ARIZONA_FLL_SRC_AIF3BCLK   7

Definition at line 40 of file arizona.h.

#define ARIZONA_FLL_SRC_AIF3LRCLK   10

Definition at line 43 of file arizona.h.

#define ARIZONA_FLL_SRC_FLL1   3

Definition at line 36 of file arizona.h.

#define ARIZONA_FLL_SRC_FLL2   4

Definition at line 37 of file arizona.h.

#define ARIZONA_FLL_SRC_MCLK1   0

Definition at line 33 of file arizona.h.

#define ARIZONA_FLL_SRC_MCLK2   1

Definition at line 34 of file arizona.h.

#define ARIZONA_FLL_SRC_SLIMCLK   2

Definition at line 35 of file arizona.h.

#define ARIZONA_MAX_DAI   3

Definition at line 49 of file arizona.h.

#define ARIZONA_MIXER_CONTROLS (   name,
  base 
)
Value:
SOC_SINGLE_RANGE_TLV(name " Input 1 Volume", base + 1, \
ARIZONA_MIXER_VOL_SHIFT, 0x20, 0x50, 0, \
arizona_mixer_tlv), \
SOC_SINGLE_RANGE_TLV(name " Input 2 Volume", base + 3, \
ARIZONA_MIXER_VOL_SHIFT, 0x20, 0x50, 0, \
arizona_mixer_tlv), \
SOC_SINGLE_RANGE_TLV(name " Input 3 Volume", base + 5, \
ARIZONA_MIXER_VOL_SHIFT, 0x20, 0x50, 0, \
arizona_mixer_tlv), \
SOC_SINGLE_RANGE_TLV(name " Input 4 Volume", base + 7, \
ARIZONA_MIXER_VOL_SHIFT, 0x20, 0x50, 0, \
arizona_mixer_tlv)

Definition at line 70 of file arizona.h.

#define ARIZONA_MIXER_ENUMS (   name,
  base_reg 
)
Value:
static ARIZONA_MUX_ENUM_DECL(name##_in1_enum, base_reg); \
static ARIZONA_MUX_ENUM_DECL(name##_in2_enum, base_reg + 2); \
static ARIZONA_MUX_ENUM_DECL(name##_in3_enum, base_reg + 4); \
static ARIZONA_MUX_ENUM_DECL(name##_in4_enum, base_reg + 6); \
static ARIZONA_MUX_CTL_DECL(name##_in1); \
static ARIZONA_MUX_CTL_DECL(name##_in2); \
static ARIZONA_MUX_CTL_DECL(name##_in3); \
static ARIZONA_MUX_CTL_DECL(name##_in4)

Definition at line 92 of file arizona.h.

#define ARIZONA_MIXER_ROUTES (   widget,
  name 
)
Value:
{ widget, NULL, name " Mixer" }, \
{ name " Mixer", NULL, name " Input 1" }, \
{ name " Mixer", NULL, name " Input 2" }, \
{ name " Mixer", NULL, name " Input 3" }, \
{ name " Mixer", NULL, name " Input 4" }, \
ARIZONA_MIXER_INPUT_ROUTES(name " Input 1"), \
ARIZONA_MIXER_INPUT_ROUTES(name " Input 2"), \
ARIZONA_MIXER_INPUT_ROUTES(name " Input 3"), \
ARIZONA_MIXER_INPUT_ROUTES(name " Input 4")

Definition at line 112 of file arizona.h.

#define ARIZONA_MIXER_VOL_MASK   0x00FE

Definition at line 45 of file arizona.h.

#define ARIZONA_MIXER_VOL_SHIFT   1

Definition at line 46 of file arizona.h.

#define ARIZONA_MIXER_VOL_WIDTH   7

Definition at line 47 of file arizona.h.

#define ARIZONA_MIXER_WIDGETS (   name,
  name_str 
)
Value:
ARIZONA_MUX(name_str " Input 1", &name##_in1_mux), \
ARIZONA_MUX(name_str " Input 2", &name##_in2_mux), \
ARIZONA_MUX(name_str " Input 3", &name##_in3_mux), \
ARIZONA_MUX(name_str " Input 4", &name##_in4_mux), \
SND_SOC_DAPM_MIXER(name_str " Mixer", SND_SOC_NOPM, 0, 0, NULL, 0)

Definition at line 105 of file arizona.h.

#define ARIZONA_MUX (   name,
  ctrl 
)    SND_SOC_DAPM_VALUE_MUX(name, SND_SOC_NOPM, 0, 0, ctrl)

Definition at line 102 of file arizona.h.

#define ARIZONA_MUX_CTL_DECL (   name)
Value:
const struct snd_kcontrol_new name##_mux = \
SOC_DAPM_VALUE_ENUM("Route", name##_enum)

Definition at line 88 of file arizona.h.

#define ARIZONA_MUX_ENUM_DECL (   name,
  reg 
)
Value:

Definition at line 84 of file arizona.h.

#define ARIZONA_NUM_MIXER_INPUTS   75

Definition at line 64 of file arizona.h.

Function Documentation

int arizona_in_ev ( struct snd_soc_dapm_widget w,
struct snd_kcontrol kcontrol,
int  event 
)

Definition at line 253 of file arizona.c.

int arizona_init_dai ( struct arizona_priv priv,
int  dai 
)

Definition at line 763 of file arizona.c.

int arizona_init_fll ( struct arizona arizona,
int  id,
int  base,
int  lock_irq,
int  ok_irq,
struct arizona_fll fll 
)

Definition at line 1009 of file arizona.c.

int arizona_out_ev ( struct snd_soc_dapm_widget w,
struct snd_kcontrol kcontrol,
int  event 
)

Definition at line 260 of file arizona.c.

int arizona_set_fll ( struct arizona_fll fll,
int  source,
unsigned int  Fref,
unsigned int  Fout 
)

Definition at line 918 of file arizona.c.

int arizona_set_sysclk ( struct snd_soc_codec codec,
int  clk_id,
int  source,
unsigned int  freq,
int  dir 
)

Definition at line 337 of file arizona.c.

Variable Documentation

struct snd_soc_dai_ops arizona_dai_ops

Definition at line 755 of file arizona.c.

struct soc_enum arizona_lhpf1_mode

Definition at line 233 of file arizona.c.

struct soc_enum arizona_lhpf2_mode

Definition at line 238 of file arizona.c.

struct soc_enum arizona_lhpf3_mode

Definition at line 243 of file arizona.c.

struct soc_enum arizona_lhpf4_mode

Definition at line 248 of file arizona.c.

const char* arizona_mixer_texts[ARIZONA_NUM_MIXER_INPUTS]

Definition at line 68 of file arizona.c.

const unsigned int arizona_mixer_tlv[]
int arizona_mixer_values[ARIZONA_NUM_MIXER_INPUTS]

Definition at line 147 of file arizona.c.