Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
max98095.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/pm.h>
#include <linux/i2c.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 <linux/slab.h>
#include <asm/div64.h>
#include <sound/max98095.h>
#include <sound/jack.h>
#include "max98095.h"

Go to the source code of this file.

Data Structures

struct  max98095_cdata
 
struct  max98095_priv
 

Macros

#define MAX98095_RATES   SNDRV_PCM_RATE_8000_96000
 
#define MAX98095_FORMATS   (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE)
 
#define max98095_suspend   NULL
 
#define max98095_resume   NULL
 

Enumerations

enum  max98095_type { MAX98095 }
 

Functions

int max98095_jack_detect (struct snd_soc_codec *codec, struct snd_soc_jack *hp_jack, struct snd_soc_jack *mic_jack)
 
 EXPORT_SYMBOL_GPL (max98095_jack_detect)
 
 MODULE_DEVICE_TABLE (i2c, max98095_i2c_id)
 
 module_i2c_driver (max98095_i2c_driver)
 
 MODULE_DESCRIPTION ("ALSA SoC MAX98095 driver")
 
 MODULE_AUTHOR ("Peter Hsiang")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define MAX98095_FORMATS   (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE)

Definition at line 1785 of file max98095.c.

#define MAX98095_RATES   SNDRV_PCM_RATE_8000_96000

Definition at line 1784 of file max98095.c.

#define max98095_resume   NULL

Definition at line 2320 of file max98095.c.

#define max98095_suspend   NULL

Definition at line 2319 of file max98095.c.

Enumeration Type Documentation

Enumerator:
MAX98095 

Definition at line 30 of file max98095.c.

Function Documentation

EXPORT_SYMBOL_GPL ( max98095_jack_detect  )
int max98095_jack_detect ( struct snd_soc_codec codec,
struct snd_soc_jack hp_jack,
struct snd_soc_jack mic_jack 
)

Definition at line 2262 of file max98095.c.

MODULE_AUTHOR ( "Peter Hsiang"  )
MODULE_DESCRIPTION ( "ALSA SoC MAX98095 driver )
MODULE_DEVICE_TABLE ( i2c  ,
max98095_i2c_id   
)
module_i2c_driver ( max98095_i2c_driver  )
MODULE_LICENSE ( "GPL"  )

Variable Documentation

u32 rate

Definition at line 1298 of file max98095.c.

int readable

Definition at line 319 of file max98095.c.

u8 sr

Definition at line 1299 of file max98095.c.

int writable

Definition at line 320 of file max98095.c.