Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
tlv320aic3x.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/gpio.h>
#include <linux/regulator/consumer.h>
#include <linux/of_gpio.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/tlv320aic3x.h>
#include "tlv320aic3x.h"

Go to the source code of this file.

Data Structures

struct  aic3x_disable_nb
 
struct  aic3x_priv
 

Macros

#define AIC3X_NUM_SUPPLIES   4
 
#define AIC3X_MODEL_3X   0
 
#define AIC3X_MODEL_33   1
 
#define AIC3X_MODEL_3007   2
 
#define SOC_DAPM_SINGLE_AIC3X(xname, reg, shift, mask, invert)
 
#define LDAC_ENUM   0
 
#define RDAC_ENUM   1
 
#define LHPCOM_ENUM   2
 
#define RHPCOM_ENUM   3
 
#define LINE1L_2_L_ENUM   4
 
#define LINE1L_2_R_ENUM   5
 
#define LINE1R_2_L_ENUM   6
 
#define LINE1R_2_R_ENUM   7
 
#define LINE2L_ENUM   8
 
#define LINE2R_ENUM   9
 
#define ADC_HPF_ENUM   10
 
#define AIC3X_RATES   SNDRV_PCM_RATE_8000_96000
 
#define AIC3X_FORMATS
 

Functions

 MODULE_DEVICE_TABLE (i2c, aic3x_i2c_id)
 
 module_i2c_driver (aic3x_i2c_driver)
 
 MODULE_DESCRIPTION ("ASoC TLV320AIC3X codec driver")
 
 MODULE_AUTHOR ("Vladimir Barinov")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define ADC_HPF_ENUM   10

Definition at line 219 of file tlv320aic3x.c.

#define AIC3X_FORMATS
Value:

Definition at line 1199 of file tlv320aic3x.c.

#define AIC3X_MODEL_3007   2

Definition at line 86 of file tlv320aic3x.c.

#define AIC3X_MODEL_33   1

Definition at line 85 of file tlv320aic3x.c.

#define AIC3X_MODEL_3X   0

Definition at line 84 of file tlv320aic3x.c.

#define AIC3X_NUM_SUPPLIES   4

Definition at line 55 of file tlv320aic3x.c.

#define AIC3X_RATES   SNDRV_PCM_RATE_8000_96000

Definition at line 1198 of file tlv320aic3x.c.

#define LDAC_ENUM   0

Definition at line 209 of file tlv320aic3x.c.

#define LHPCOM_ENUM   2

Definition at line 211 of file tlv320aic3x.c.

#define LINE1L_2_L_ENUM   4

Definition at line 213 of file tlv320aic3x.c.

#define LINE1L_2_R_ENUM   5

Definition at line 214 of file tlv320aic3x.c.

#define LINE1R_2_L_ENUM   6

Definition at line 215 of file tlv320aic3x.c.

#define LINE1R_2_R_ENUM   7

Definition at line 216 of file tlv320aic3x.c.

#define LINE2L_ENUM   8

Definition at line 217 of file tlv320aic3x.c.

#define LINE2R_ENUM   9

Definition at line 218 of file tlv320aic3x.c.

#define RDAC_ENUM   1

Definition at line 210 of file tlv320aic3x.c.

#define RHPCOM_ENUM   3

Definition at line 212 of file tlv320aic3x.c.

#define SOC_DAPM_SINGLE_AIC3X (   xname,
  reg,
  shift,
  mask,
  invert 
)
Value:
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
.info = snd_soc_info_volsw, \
.get = snd_soc_dapm_get_volsw, .put = snd_soc_dapm_put_volsw_aic3x, \
.private_value = SOC_SINGLE_VALUE(reg, shift, mask, invert) }

Definition at line 127 of file tlv320aic3x.c.

Function Documentation

MODULE_AUTHOR ( "Vladimir Barinov"  )
MODULE_DESCRIPTION ( "ASoC TLV320AIC3X codec driver )
MODULE_DEVICE_TABLE ( i2c  ,
aic3x_i2c_id   
)
module_i2c_driver ( aic3x_i2c_driver  )
MODULE_LICENSE ( "GPL"  )