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

Go to the source code of this file.

Data Structures

struct  wm8994_micdet
 
struct  wm8994_fll_config
 
struct  wm8994_priv
 

Macros

#define WM8994_SYSCLK_MCLK1   1
 
#define WM8994_SYSCLK_MCLK2   2
 
#define WM8994_SYSCLK_FLL1   3
 
#define WM8994_SYSCLK_FLL2   4
 
#define WM8994_SYSCLK_OPCLK   5
 
#define WM8994_FLL1   1
 
#define WM8994_FLL2   2
 
#define WM8994_FLL_SRC_MCLK1   1
 
#define WM8994_FLL_SRC_MCLK2   2
 
#define WM8994_FLL_SRC_LRCLK   3
 
#define WM8994_FLL_SRC_BCLK   4
 
#define WM8994_FLL_SRC_INTERNAL   5
 
#define WM8994_NUM_DRC   3
 
#define WM8994_NUM_EQ   3
 

Typedefs

typedef void(* wm8958_micdet_cb )(u16 status, void *data)
 

Enumerations

enum  wm8994_vmid_mode { WM8994_VMID_NORMAL, WM8994_VMID_FORCE }
 

Functions

int wm8994_mic_detect (struct snd_soc_codec *codec, struct snd_soc_jack *jack, int micbias)
 
int wm8958_mic_detect (struct snd_soc_codec *codec, struct snd_soc_jack *jack, wm8958_micdet_cb cb, void *cb_data)
 
int wm8994_vmid_mode (struct snd_soc_codec *codec, enum wm8994_vmid_mode mode)
 
int wm8958_aif_ev (struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol, int event)
 
void wm8958_dsp2_init (struct snd_soc_codec *codec)
 

Macro Definition Documentation

#define WM8994_FLL1   1

Definition at line 28 of file wm8994.h.

#define WM8994_FLL2   2

Definition at line 29 of file wm8994.h.

#define WM8994_FLL_SRC_BCLK   4

Definition at line 34 of file wm8994.h.

#define WM8994_FLL_SRC_INTERNAL   5

Definition at line 35 of file wm8994.h.

#define WM8994_FLL_SRC_LRCLK   3

Definition at line 33 of file wm8994.h.

#define WM8994_FLL_SRC_MCLK1   1

Definition at line 31 of file wm8994.h.

#define WM8994_FLL_SRC_MCLK2   2

Definition at line 32 of file wm8994.h.

#define WM8994_NUM_DRC   3

Definition at line 68 of file wm8994.h.

#define WM8994_NUM_EQ   3

Definition at line 69 of file wm8994.h.

#define WM8994_SYSCLK_FLL1   3

Definition at line 22 of file wm8994.h.

#define WM8994_SYSCLK_FLL2   4

Definition at line 23 of file wm8994.h.

#define WM8994_SYSCLK_MCLK1   1

Definition at line 20 of file wm8994.h.

#define WM8994_SYSCLK_MCLK2   2

Definition at line 21 of file wm8994.h.

#define WM8994_SYSCLK_OPCLK   5

Definition at line 26 of file wm8994.h.

Typedef Documentation

typedef void(* wm8958_micdet_cb)(u16 status, void *data)

Definition at line 42 of file wm8994.h.

Enumeration Type Documentation

Enumerator:
WM8994_VMID_NORMAL 
WM8994_VMID_FORCE 

Definition at line 37 of file wm8994.h.

Function Documentation

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

Definition at line 418 of file wm8958-dsp2.c.

void wm8958_dsp2_init ( struct snd_soc_codec codec)

Definition at line 915 of file wm8958-dsp2.c.

int wm8958_mic_detect ( struct snd_soc_codec codec,
struct snd_soc_jack jack,
wm8958_micdet_cb  cb,
void cb_data 
)

wm8958_mic_detect - Enable microphone detection via the WM8958 IRQ

: WM8958 codec : jack to report detection events on

Enable microphone detection functionality for the WM8958. By default simple detection which supports the detection of up to 6 buttons plus video and microphone functionality is supported.

The WM8958 has an advanced jack detection facility which is able to support complex accessory detection, especially when used in conjunction with external circuitry. In order to provide maximum flexiblity a callback is provided which allows a completely custom detection algorithm.

Definition at line 3601 of file wm8994.c.

int wm8994_mic_detect ( struct snd_soc_codec codec,
struct snd_soc_jack jack,
int  micbias 
)

wm8994_mic_detect - Enable microphone detection via the WM8994 IRQ

: WM8994 codec : jack to report detection events on : microphone bias to detect on

Enable microphone detection via IRQ on the WM8994. If GPIOs are being used to bring out signals to the processor then only platform data configuration is needed for WM8994 and processor GPIOs should be configured using snd_soc_jack_add_gpios() instead.

Configuration of detection levels is available via the micbias1_lvl and micbias2_lvl platform data members.

Definition at line 3244 of file wm8994.c.

Definition at line 2456 of file wm8994.c.