Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
sta32x.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 <linux/workqueue.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/soc-dapm.h>
#include <sound/initval.h>
#include <sound/tlv.h>
#include <sound/sta32x.h>
#include "sta32x.h"

Go to the source code of this file.

Data Structures

struct  sta32x_priv
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ":%s:%d: " fmt, __func__, __LINE__
 
#define STA32X_RATES
 
#define STA32X_FORMATS
 
#define SINGLE_COEF(xname, index)
 
#define BIQUAD_COEFS(xname, index)
 
#define sta32x_suspend   NULL
 
#define sta32x_resume   NULL
 

Functions

 MODULE_DEVICE_TABLE (i2c, sta32x_i2c_id)
 
 module_i2c_driver (sta32x_i2c_driver)
 
 MODULE_DESCRIPTION ("ASoC STA32X driver")
 
 MODULE_AUTHOR ("Johannes Stezenbach <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define BIQUAD_COEFS (   xname,
  index 
)
Value:
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
.info = sta32x_coefficient_info, \
.get = sta32x_coefficient_get,\
.put = sta32x_coefficient_put, \
.private_value = index | (5 << 16) }

Definition at line 394 of file sta32x.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ":%s:%d: " fmt, __func__, __LINE__

Definition at line 19 of file sta32x.c.

#define SINGLE_COEF (   xname,
  index 
)
Value:
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
.info = sta32x_coefficient_info, \
.get = sta32x_coefficient_get,\
.put = sta32x_coefficient_put, \
.private_value = index | (1 << 16) }

Definition at line 387 of file sta32x.c.

#define STA32X_FORMATS
Value:
SNDRV_PCM_FMTBIT_S18_3LE | SNDRV_PCM_FMTBIT_S18_3BE | \
SNDRV_PCM_FMTBIT_S20_3LE | SNDRV_PCM_FMTBIT_S20_3BE | \
SNDRV_PCM_FMTBIT_S24_3LE | SNDRV_PCM_FMTBIT_S24_3BE | \
SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S24_BE | \
SNDRV_PCM_FMTBIT_S32_LE | SNDRV_PCM_FMTBIT_S32_BE)

Definition at line 50 of file sta32x.c.

#define STA32X_RATES
Value:
SNDRV_PCM_RATE_44100 | \
SNDRV_PCM_RATE_48000 | \
SNDRV_PCM_RATE_88200 | \
SNDRV_PCM_RATE_96000 | \
SNDRV_PCM_RATE_176400 | \
SNDRV_PCM_RATE_192000)

Definition at line 42 of file sta32x.c.

#define sta32x_resume   NULL

Definition at line 855 of file sta32x.c.

#define sta32x_suspend   NULL

Definition at line 854 of file sta32x.c.

Function Documentation

MODULE_AUTHOR ( "Johannes Stezenbach <[email protected]>"  )
MODULE_DESCRIPTION ( "ASoC STA32X driver )
MODULE_DEVICE_TABLE ( i2c  ,
sta32x_i2c_id   
)
module_i2c_driver ( sta32x_i2c_driver  )
MODULE_LICENSE ( "GPL"  )

Variable Documentation

int fs

Definition at line 496 of file sta32x.c.

int ir

Definition at line 497 of file sta32x.c.

int mcs

Definition at line 511 of file sta32x.c.

int ratio

Definition at line 510 of file sta32x.c.