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

Go to the source code of this file.

Data Structures

struct  cs42l51_private
 
struct  cs42l51_ratios
 

Macros

#define CS42L51_FORMATS
 
#define CHAN_MIX_NORMAL   0x00
 
#define CHAN_MIX_BOTH   0x55
 
#define CHAN_MIX_SWAP   0xFF
 

Enumerations

enum  master_slave_mode { MODE_SLAVE, MODE_SLAVE_AUTO, MODE_MASTER }
 

Functions

 MODULE_DEVICE_TABLE (i2c, cs42l51_id)
 
 module_i2c_driver (cs42l51_i2c_driver)
 
 MODULE_AUTHOR ("Arnaud Patard <[email protected]>")
 
 MODULE_DESCRIPTION ("Cirrus Logic CS42L51 ALSA SoC Codec Driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define CHAN_MIX_BOTH   0x55

Definition at line 98 of file cs42l51.c.

#define CHAN_MIX_NORMAL   0x00

Definition at line 97 of file cs42l51.c.

#define CHAN_MIX_SWAP   0xFF

Definition at line 99 of file cs42l51.c.

#define CS42L51_FORMATS
Value:
( \
SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S16_BE | \
SNDRV_PCM_FMTBIT_S18_3LE | SNDRV_PCM_FMTBIT_S18_3BE | \
SNDRV_PCM_FMTBIT_S20_3LE | SNDRV_PCM_FMTBIT_S20_3BE | \
SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S24_BE)

Definition at line 49 of file cs42l51.c.

Enumeration Type Documentation

Enumerator:
MODE_SLAVE 
MODE_SLAVE_AUTO 
MODE_MASTER 

Definition at line 36 of file cs42l51.c.

Function Documentation

MODULE_AUTHOR ( "Arnaud Patard <[email protected]>"  )
MODULE_DESCRIPTION ( "Cirrus Logic CS42L51 ALSA SoC Codec Driver"  )
MODULE_DEVICE_TABLE ( i2c  ,
cs42l51_id   
)
module_i2c_driver ( cs42l51_i2c_driver  )
MODULE_LICENSE ( "GPL"  )