Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
wm0010.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/irqreturn.h>
#include <linux/init.h>
#include <linux/spi/spi.h>
#include <linux/firmware.h>
#include <linux/delay.h>
#include <linux/fs.h>
#include <linux/miscdevice.h>
#include <linux/gpio.h>
#include <linux/regulator/consumer.h>
#include <linux/mutex.h>
#include <linux/workqueue.h>
#include <sound/soc.h>
#include <sound/wm0010.h>

Go to the source code of this file.

Data Structures

struct  dfw_binrec
 
struct  dfw_pllrec
 
struct  pll_clock_map
 
struct  wm0010_priv
 
struct  wm0010_spi_msg
 
struct  wm0010_boot_xfer
 

Macros

#define DEVICE_ID_WM0010   10
 
#define WM0010_RATES   (SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000)
 
#define WM0010_FORMATS
 

Enumerations

enum  dfw_cmd {
  DFW_CMD_FUSE = 0x01, DFW_CMD_CODE_HDR, DFW_CMD_CODE_DATA, DFW_CMD_PLL,
  DFW_CMD_INFO = 0xff
}
 
enum  wm0010_state {
  WM0010_POWER_OFF, WM0010_OUT_OF_RESET, WM0010_BOOTROM, WM0010_STAGE2,
  WM0010_FIRMWARE
}
 

Functions

 module_spi_driver (wm0010_spi_driver)
 
 MODULE_DESCRIPTION ("ASoC WM0010 driver")
 
 MODULE_AUTHOR ("Mark Brown <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 

Variables

struct dfw_binrec __packed
 

Macro Definition Documentation

#define DEVICE_ID_WM0010   10

Definition at line 32 of file wm0010.c.

#define WM0010_FORMATS
Value:
SNDRV_PCM_FMTBIT_S20_3LE | SNDRV_PCM_FMTBIT_S24_LE |\
SNDRV_PCM_FMTBIT_S32_LE)

Definition at line 741 of file wm0010.c.

#define WM0010_RATES   (SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000)

Definition at line 740 of file wm0010.c.

Enumeration Type Documentation

enum dfw_cmd
Enumerator:
DFW_CMD_FUSE 
DFW_CMD_CODE_HDR 
DFW_CMD_CODE_DATA 
DFW_CMD_PLL 
DFW_CMD_INFO 

Definition at line 34 of file wm0010.c.

Enumerator:
WM0010_POWER_OFF 
WM0010_OUT_OF_RESET 
WM0010_BOOTROM 
WM0010_STAGE2 
WM0010_FIRMWARE 

Definition at line 74 of file wm0010.c.

Function Documentation

MODULE_AUTHOR ( "Mark Brown <[email protected]>"  )
MODULE_DESCRIPTION ( "ASoC WM0010 driver )
MODULE_LICENSE ( "GPL"  )
module_spi_driver ( wm0010_spi_driver  )

Variable Documentation