Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
sn95031.c File Reference
#include <linux/platform_device.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <asm/intel_scu_ipc.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/jack.h>
#include "sn95031.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define SN95031_RATES   (SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_44100)
 
#define SN95031_FORMATS   (SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S16_LE)
 

Functions

void sn95031_jack_detection (struct mfld_jack_data *jack_data)
 
 EXPORT_SYMBOL_GPL (sn95031_jack_detection)
 
 module_platform_driver (sn95031_codec_driver)
 
 MODULE_DESCRIPTION ("ASoC TI SN95031 codec driver")
 
 MODULE_AUTHOR ("Vinod Koul <[email protected]>")
 
 MODULE_AUTHOR ("Harsha Priya <[email protected]>")
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_ALIAS ("platform:sn95031")
 

Variables

struct snd_soc_codec_driver sn95031_codec
 

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 26 of file sn95031.c.

#define SN95031_FORMATS   (SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S16_LE)

Definition at line 44 of file sn95031.c.

#define SN95031_RATES   (SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_44100)

Definition at line 43 of file sn95031.c.

Function Documentation

EXPORT_SYMBOL_GPL ( sn95031_jack_detection  )
MODULE_ALIAS ( "platform:sn95031"  )
MODULE_AUTHOR ( "Vinod Koul <[email protected]>"  )
MODULE_AUTHOR ( "Harsha Priya <[email protected]>"  )
MODULE_DESCRIPTION ( "ASoC TI SN95031 codec driver )
MODULE_LICENSE ( "GPL v2 )
module_platform_driver ( sn95031_codec_driver  )
void sn95031_jack_detection ( struct mfld_jack_data jack_data)

Definition at line 793 of file sn95031.c.

Variable Documentation

Initial value:
= {
.probe = sn95031_codec_probe,
.remove = sn95031_codec_remove,
.read = sn95031_read,
.write = sn95031_write,
.set_bias_level = sn95031_set_vaud_bias,
.idle_bias_off = true,
.dapm_widgets = sn95031_dapm_widgets,
.num_dapm_widgets = ARRAY_SIZE(sn95031_dapm_widgets),
.dapm_routes = sn95031_audio_map,
.num_dapm_routes = ARRAY_SIZE(sn95031_audio_map),
}

Definition at line 886 of file sn95031.c.