Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
wm8940.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/pm.h>
#include <linux/i2c.h>
#include <linux/spi/spi.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 "wm8940.h"

Go to the source code of this file.

Data Structures

struct  wm8940_priv
 
struct  pll_
 

Macros

#define wm8940_reset(c)   snd_soc_write(c, WM8940_SOFTRESET, 0);
 
#define FIXED_PLL_SIZE   ((1 << 24) * 10)
 
#define WM8940_RATES   SNDRV_PCM_RATE_8000_48000
 
#define WM8940_FORMATS
 

Functions

 MODULE_DEVICE_TABLE (i2c, wm8940_i2c_id)
 
 module_i2c_driver (wm8940_i2c_driver)
 
 MODULE_DESCRIPTION ("ASoC WM8940 driver")
 
 MODULE_AUTHOR ("Jonathan Cameron")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define FIXED_PLL_SIZE   ((1 << 24) * 10)

Definition at line 504 of file wm8940.c.

#define WM8940_FORMATS
Value:
SNDRV_PCM_FMTBIT_S16_LE | \
SNDRV_PCM_FMTBIT_S20_3LE | \
SNDRV_PCM_FMTBIT_S24_LE | \
SNDRV_PCM_FMTBIT_S32_LE)

Definition at line 639 of file wm8940.c.

#define WM8940_RATES   SNDRV_PCM_RATE_8000_48000

Definition at line 637 of file wm8940.c.

#define wm8940_reset (   c)    snd_soc_write(c, WM8940_SOFTRESET, 0);

Definition at line 314 of file wm8940.c.

Function Documentation

MODULE_AUTHOR ( "Jonathan Cameron"  )
MODULE_DESCRIPTION ( "ASoC WM8940 driver )
MODULE_DEVICE_TABLE ( i2c  ,
wm8940_i2c_id   
)
module_i2c_driver ( wm8940_i2c_driver  )
MODULE_LICENSE ( "GPL"  )