Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
wm8804.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/of_device.h>
#include <linux/spi/spi.h>
#include <linux/regmap.h>
#include <linux/regulator/consumer.h>
#include <linux/slab.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/initval.h>
#include <sound/tlv.h>
#include "wm8804.h"

Go to the source code of this file.

Data Structures

struct  wm8804_priv
 
struct  pll_div
 

Macros

#define WM8804_NUM_SUPPLIES   2
 
#define WM8804_REGULATOR_EVENT(n)
 
#define FIXED_PLL_SIZE   ((1ULL << 22) * 10)
 
#define wm8804_suspend   NULL
 
#define wm8804_resume   NULL
 
#define WM8804_FORMATS
 
#define WM8804_RATES
 

Functions

 MODULE_DEVICE_TABLE (of, wm8804_of_match)
 
 module_init (wm8804_modinit)
 
 module_exit (wm8804_exit)
 
 MODULE_DESCRIPTION ("ASoC WM8804 driver")
 
 MODULE_AUTHOR ("Dimitris Papastamos <dp@opensource.wolfsonmicro.com>")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define FIXED_PLL_SIZE   ((1ULL << 22) * 10)

Definition at line 319 of file wm8804.c.

#define WM8804_FORMATS
Value:
SNDRV_PCM_FMTBIT_S24_LE)

Definition at line 646 of file wm8804.c.

#define WM8804_NUM_SUPPLIES   2

Definition at line 33 of file wm8804.c.

#define WM8804_RATES
Value:
SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_64000 | \
SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000 | \
SNDRV_PCM_RATE_176400 | SNDRV_PCM_RATE_192000)

Definition at line 649 of file wm8804.c.

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

Definition at line 79 of file wm8804.c.

#define wm8804_resume   NULL

Definition at line 527 of file wm8804.c.

#define wm8804_suspend   NULL

Definition at line 526 of file wm8804.c.

Function Documentation

MODULE_AUTHOR ( "Dimitris Papastamos <dp@opensource.wolfsonmicro.com>"  )
MODULE_DESCRIPTION ( "ASoC WM8804 driver )
MODULE_DEVICE_TABLE ( of  ,
wm8804_of_match   
)
module_exit ( wm8804_exit  )
module_init ( wm8804_modinit  )
MODULE_LICENSE ( "GPL"  )

Variable Documentation

unsigned int div

Definition at line 305 of file wm8804.c.

unsigned int freqmode

Definition at line 306 of file wm8804.c.

unsigned int mclkdiv

Definition at line 307 of file wm8804.c.