Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
wm8962.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/gcd.h>
#include <linux/gpio.h>
#include <linux/i2c.h>
#include <linux/input.h>
#include <linux/pm_runtime.h>
#include <linux/regmap.h>
#include <linux/regulator/consumer.h>
#include <linux/slab.h>
#include <linux/workqueue.h>
#include <sound/core.h>
#include <sound/jack.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/initval.h>
#include <sound/tlv.h>
#include <sound/wm8962.h>
#include <trace/events/asoc.h>
#include "wm8962.h"

Go to the source code of this file.

Data Structures

struct  wm8962_priv
 
struct  _fll_div
 

Macros

#define WM8962_NUM_SUPPLIES   8
 
#define WM8962_REGULATOR_EVENT(n)
 
#define WM8962_DSP2_ENABLE(xname, xshift)
 
#define FIXED_FLL_SIZE   ((1 << 16) * 10)
 
#define WM8962_RATES   SNDRV_PCM_RATE_8000_96000
 
#define WM8962_FORMATS
 

Functions

int wm8962_mic_detect (struct snd_soc_codec *codec, struct snd_soc_jack *jack)
 
 EXPORT_SYMBOL_GPL (wm8962_mic_detect)
 
 MODULE_DEVICE_TABLE (i2c, wm8962_i2c_id)
 
 module_i2c_driver (wm8962_i2c_driver)
 
 MODULE_DESCRIPTION ("ASoC WM8962 driver")
 
 MODULE_AUTHOR ("Mark Brown <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define FIXED_FLL_SIZE   ((1 << 16) * 10)

Definition at line 2701 of file wm8962.c.

#define WM8962_DSP2_ENABLE (   xname,
  xshift 
)
Value:
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
.info = wm8962_dsp2_ena_info, \
.get = wm8962_dsp2_ena_get, .put = wm8962_dsp2_ena_put, \
.private_value = xshift }

Definition at line 1530 of file wm8962.c.

#define WM8962_FORMATS
Value:

Definition at line 2917 of file wm8962.c.

#define WM8962_NUM_SUPPLIES   8

Definition at line 40 of file wm8962.c.

#define WM8962_RATES   SNDRV_PCM_RATE_8000_96000

Definition at line 2915 of file wm8962.c.

#define WM8962_REGULATOR_EVENT (   n)
Value:
static int wm8962_regulator_event_##n(struct notifier_block *nb, \
unsigned long event, void *data) \
{ \
disable_nb[n]); \
regcache_mark_dirty(wm8962->regmap); \
} \
return 0; \
}

Definition at line 93 of file wm8962.c.

Function Documentation

EXPORT_SYMBOL_GPL ( wm8962_mic_detect  )
MODULE_AUTHOR ( "Mark Brown <[email protected]>"  )
MODULE_DESCRIPTION ( "ASoC WM8962 driver )
MODULE_DEVICE_TABLE ( i2c  ,
wm8962_i2c_id   
)
module_i2c_driver ( wm8962_i2c_driver  )
MODULE_LICENSE ( "GPL"  )
int wm8962_mic_detect ( struct snd_soc_codec codec,
struct snd_soc_jack jack 
)

wm8962_mic_detect - Enable microphone detection via the WM8962 IRQ

: WM8962 codec : jack to report detection events on

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

If no jack is supplied detection will be disabled.

Definition at line 3067 of file wm8962.c.

Variable Documentation

u16 fll_fratio

Definition at line 2706 of file wm8962.c.

unsigned int max

Definition at line 2705 of file wm8962.c.

unsigned int min

Definition at line 2704 of file wm8962.c.

int rate

Definition at line 2518 of file wm8962.c.

int ratio

Definition at line 2707 of file wm8962.c.

Definition at line 2519 of file wm8962.c.