Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
wm8958-dsp2.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/pm.h>
#include <linux/i2c.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <sound/soc.h>
#include <sound/initval.h>
#include <sound/tlv.h>
#include <trace/events/asoc.h>
#include <linux/mfd/wm8994/core.h>
#include <linux/mfd/wm8994/registers.h>
#include <linux/mfd/wm8994/pdata.h>
#include <linux/mfd/wm8994/gpio.h>
#include "wm8994.h"

Go to the source code of this file.

Macros

#define WM_FW_BLOCK_INFO   0xff
 
#define WM_FW_BLOCK_PM   0x00
 
#define WM_FW_BLOCK_X   0x01
 
#define WM_FW_BLOCK_Y   0x02
 
#define WM_FW_BLOCK_Z   0x03
 
#define WM_FW_BLOCK_I   0x06
 
#define WM_FW_BLOCK_A   0x08
 
#define WM_FW_BLOCK_C   0x0c
 
#define WM8958_MBC_SWITCH(xname, xval)
 
#define WM8958_VSS_SWITCH(xname, xval)
 
#define WM8958_HPF_SWITCH(xname, xval)
 
#define WM8958_ENH_EQ_SWITCH(xname, xval)
 

Functions

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 WM8958_ENH_EQ_SWITCH (   xname,
  xval 
)
Value:
{\
.iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname), \
.info = wm8958_enh_eq_info, \
.get = wm8958_enh_eq_get, .put = wm8958_enh_eq_put, \
.private_value = xval }

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

#define WM8958_HPF_SWITCH (   xname,
  xval 
)
Value:
{\
.iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname), \
.info = wm8958_hpf_info, \
.get = wm8958_hpf_get, .put = wm8958_hpf_put, \
.private_value = xval }

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

#define WM8958_MBC_SWITCH (   xname,
  xval 
)
Value:
{\
.iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname), \
.info = wm8958_mbc_info, \
.get = wm8958_mbc_get, .put = wm8958_mbc_put, \
.private_value = xval }

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

#define WM8958_VSS_SWITCH (   xname,
  xval 
)
Value:
{\
.iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname), \
.info = wm8958_vss_info, \
.get = wm8958_vss_get, .put = wm8958_vss_put, \
.private_value = xval }

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

#define WM_FW_BLOCK_A   0x08

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

#define WM_FW_BLOCK_C   0x0c

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

#define WM_FW_BLOCK_I   0x06

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

#define WM_FW_BLOCK_INFO   0xff

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

#define WM_FW_BLOCK_PM   0x00

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

#define WM_FW_BLOCK_X   0x01

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

#define WM_FW_BLOCK_Y   0x02

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

#define WM_FW_BLOCK_Z   0x03

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

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.