Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
wm8904.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/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 <sound/wm8904.h>
#include "wm8904.h"

Go to the source code of this file.

Data Structures

struct  wm8904_priv
 
struct  _fll_div
 

Macros

#define WM8904_NUM_DCS_CHANNELS   4
 
#define WM8904_NUM_SUPPLIES   5
 
#define FIXED_FLL_SIZE   ((1 << 16) * 10)
 
#define WM8904_RATES   SNDRV_PCM_RATE_8000_96000
 
#define WM8904_FORMATS
 

Enumerations

enum  wm8904_type { WM8904, WM8912 }
 

Functions

 MODULE_DEVICE_TABLE (i2c, wm8904_i2c_id)
 
 module_i2c_driver (wm8904_i2c_driver)
 
 MODULE_DESCRIPTION ("ASoC WM8904 driver")
 
 MODULE_AUTHOR ("Mark Brown <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

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

Definition at line 1575 of file wm8904.c.

#define WM8904_FORMATS
Value:

Definition at line 1909 of file wm8904.c.

#define WM8904_NUM_DCS_CHANNELS   4

Definition at line 38 of file wm8904.c.

#define WM8904_NUM_SUPPLIES   5

Definition at line 40 of file wm8904.c.

#define WM8904_RATES   SNDRV_PCM_RATE_8000_96000

Definition at line 1907 of file wm8904.c.

Enumeration Type Documentation

Enumerator:
WM8904 
WM8912 

Definition at line 33 of file wm8904.c.

Function Documentation

MODULE_AUTHOR ( "Mark Brown <[email protected]>"  )
MODULE_DESCRIPTION ( "ASoC WM8904 driver )
MODULE_DEVICE_TABLE ( i2c  ,
wm8904_i2c_id   
)
module_i2c_driver ( wm8904_i2c_driver  )
MODULE_LICENSE ( "GPL"  )

Variable Documentation

int bclk_div

Definition at line 1247 of file wm8904.c.

unsigned int clk_sys_rate

Definition at line 1216 of file wm8904.c.

int div

Definition at line 1246 of file wm8904.c.

u16 fll_fratio

Definition at line 1580 of file wm8904.c.

unsigned int max

Definition at line 1579 of file wm8904.c.

unsigned int min

Definition at line 1578 of file wm8904.c.

int rate

Definition at line 1231 of file wm8904.c.

int ratio

Definition at line 1215 of file wm8904.c.

int sample_rate

Definition at line 1232 of file wm8904.c.