Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
ad1836.c File Reference
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/device.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/initval.h>
#include <sound/soc.h>
#include <sound/tlv.h>
#include <linux/spi/spi.h>
#include <linux/regmap.h>
#include "ad1836.h"

Go to the source code of this file.

Data Structures

struct  ad1836_priv
 

Macros

#define AD1836_DAC_VOLUME(x)
 
#define AD1836_DAC_SWITCH(x)
 
#define AD1836_ADC_SWITCH(x)
 
#define AD183X_DAI(_name, num_dacs, num_adcs)
 
#define ad1836_suspend   NULL
 
#define ad1836_resume   NULL
 

Enumerations

enum  ad1836_type { AD1835, AD1836, AD1838 }
 

Functions

 MODULE_DEVICE_TABLE (spi, ad1836_ids)
 
 module_spi_driver (ad1836_spi_driver)
 
 MODULE_DESCRIPTION ("ASoC ad1836 driver")
 
 MODULE_AUTHOR ("Barry Song <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define AD1836_ADC_SWITCH (   x)
Value:
SOC_DOUBLE("ADC" #x " Capture Switch", AD1836_ADC_CTRL2, \

Definition at line 54 of file ad1836.c.

#define AD1836_DAC_SWITCH (   x)
Value:
SOC_DOUBLE("DAC" #x " Playback Switch", AD1836_DAC_CTRL2, \

Definition at line 50 of file ad1836.c.

#define AD1836_DAC_VOLUME (   x)
Value:
SOC_DOUBLE_R("DAC" #x " Playback Volume", AD1836_DAC_L_VOL(x), \
AD1836_DAC_R_VOL(x), 0, 0x3FF, 0)

Definition at line 46 of file ad1836.c.

#define ad1836_resume   NULL

Definition at line 246 of file ad1836.c.

#define ad1836_suspend   NULL

Definition at line 245 of file ad1836.c.

#define AD183X_DAI (   _name,
  num_dacs,
  num_adcs 
)
Value:
{ \
.name = _name "-hifi", \
.playback = { \
.stream_name = "Playback", \
.channels_min = 2, \
.channels_max = (num_dacs) * 2, \
}, \
.capture = { \
.stream_name = "Capture", \
.channels_min = 2, \
.channels_max = (num_adcs) * 2, \
}, \
.ops = &ad1836_dai_ops, \
}

Definition at line 200 of file ad1836.c.

Enumeration Type Documentation

Enumerator:
AD1835 
AD1836 
AD1838 

Definition at line 26 of file ad1836.c.

Function Documentation

MODULE_AUTHOR ( "Barry Song <[email protected]>"  )
MODULE_DESCRIPTION ( "ASoC ad1836 driver )
MODULE_DEVICE_TABLE ( spi  ,
ad1836_ids   
)
MODULE_LICENSE ( "GPL"  )
module_spi_driver ( ad1836_spi_driver  )