Linux Kernel
3.7.1
|
#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) |
enum wm8994_vmid_mode |
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.
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.
int wm8994_vmid_mode | ( | struct snd_soc_codec * | codec, |
enum wm8994_vmid_mode | mode | ||
) |