Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
twl6040.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/platform_device.h>
#include <linux/slab.h>
#include <linux/mfd/twl6040.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 "twl6040.h"

Go to the source code of this file.

Data Structures

struct  twl6040_jack_data
 
struct  twl6040_data
 

Macros

#define TWL6040_RATES   SNDRV_PCM_RATE_8000_96000
 
#define TWL6040_FORMATS   (SNDRV_PCM_FMTBIT_S32_LE)
 
#define TWL6040_OUTHS_0dB   0x00
 
#define TWL6040_OUTHS_M30dB   0x0F
 
#define TWL6040_OUTHF_0dB   0x03
 
#define TWL6040_OUTHF_M52dB   0x1D
 
#define TWL6040_REG_SW_SHADOW   0x2F
 
#define TWL6040_CACHEREGNUM   (TWL6040_REG_SW_SHADOW + 1)
 
#define TWL6040_EAR_PATH_ENABLE   0x01
 
#define twl6040_suspend   NULL
 
#define twl6040_resume   NULL
 

Functions

void twl6040_hs_jack_detect (struct snd_soc_codec *codec, struct snd_soc_jack *jack, int report)
 
 EXPORT_SYMBOL_GPL (twl6040_hs_jack_detect)
 
int twl6040_get_dl1_gain (struct snd_soc_codec *codec)
 
 EXPORT_SYMBOL_GPL (twl6040_get_dl1_gain)
 
int twl6040_get_clk_id (struct snd_soc_codec *codec)
 
 EXPORT_SYMBOL_GPL (twl6040_get_clk_id)
 
int twl6040_get_trim_value (struct snd_soc_codec *codec, enum twl6040_trim trim)
 
 EXPORT_SYMBOL_GPL (twl6040_get_trim_value)
 
int twl6040_get_hs_step_size (struct snd_soc_codec *codec)
 
 EXPORT_SYMBOL_GPL (twl6040_get_hs_step_size)
 
 module_platform_driver (twl6040_codec_driver)
 
 MODULE_DESCRIPTION ("ASoC TWL6040 codec driver")
 
 MODULE_AUTHOR ("Misael Lopez Cruz")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define TWL6040_CACHEREGNUM   (TWL6040_REG_SW_SHADOW + 1)

Definition at line 51 of file twl6040.c.

#define TWL6040_EAR_PATH_ENABLE   0x01

Definition at line 54 of file twl6040.c.

#define TWL6040_FORMATS   (SNDRV_PCM_FMTBIT_S32_LE)

Definition at line 42 of file twl6040.c.

#define TWL6040_OUTHF_0dB   0x03

Definition at line 46 of file twl6040.c.

#define TWL6040_OUTHF_M52dB   0x1D

Definition at line 47 of file twl6040.c.

#define TWL6040_OUTHS_0dB   0x00

Definition at line 44 of file twl6040.c.

#define TWL6040_OUTHS_M30dB   0x0F

Definition at line 45 of file twl6040.c.

#define TWL6040_RATES   SNDRV_PCM_RATE_8000_96000

Definition at line 41 of file twl6040.c.

#define TWL6040_REG_SW_SHADOW   0x2F

Definition at line 50 of file twl6040.c.

#define twl6040_resume   NULL

Definition at line 1124 of file twl6040.c.

#define twl6040_suspend   NULL

Definition at line 1123 of file twl6040.c.

Function Documentation

EXPORT_SYMBOL_GPL ( twl6040_hs_jack_detect  )
EXPORT_SYMBOL_GPL ( twl6040_get_dl1_gain  )
EXPORT_SYMBOL_GPL ( twl6040_get_clk_id  )
EXPORT_SYMBOL_GPL ( twl6040_get_trim_value  )
EXPORT_SYMBOL_GPL ( twl6040_get_hs_step_size  )
MODULE_AUTHOR ( "Misael Lopez Cruz"  )
MODULE_DESCRIPTION ( "ASoC TWL6040 codec driver )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( twl6040_codec_driver  )
int twl6040_get_clk_id ( struct snd_soc_codec codec)

Definition at line 635 of file twl6040.c.

int twl6040_get_dl1_gain ( struct snd_soc_codec codec)

Definition at line 613 of file twl6040.c.

int twl6040_get_hs_step_size ( struct snd_soc_codec codec)

Definition at line 652 of file twl6040.c.

int twl6040_get_trim_value ( struct snd_soc_codec codec,
enum twl6040_trim  trim 
)

Definition at line 643 of file twl6040.c.

void twl6040_hs_jack_detect ( struct snd_soc_codec codec,
struct snd_soc_jack jack,
int  report 
)

Definition at line 378 of file twl6040.c.