Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
wm8350.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/pm.h>
#include <linux/platform_device.h>
#include <linux/mfd/wm8350/audio.h>
#include <linux/mfd/wm8350/core.h>
#include <linux/regulator/consumer.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 <trace/events/asoc.h>
#include "wm8350.h"

Go to the source code of this file.

Data Structures

struct  wm8350_output
 
struct  wm8350_jack_data
 
struct  wm8350_data
 
struct  _fll_div
 

Macros

#define WM8350_OUTn_0dB   0x39
 
#define WM8350_RAMP_NONE   0
 
#define WM8350_RAMP_UP   1
 
#define WM8350_RAMP_DOWN   2
 
#define FIXED_FLL_SIZE   ((1 << 16) * 10)
 
#define WM8350_RATES   (SNDRV_PCM_RATE_8000_96000)
 
#define WM8350_FORMATS
 

Functions

int wm8350_hp_jack_detect (struct snd_soc_codec *codec, enum wm8350_jack which, struct snd_soc_jack *jack, int report)
 
 EXPORT_SYMBOL_GPL (wm8350_hp_jack_detect)
 
int wm8350_mic_jack_detect (struct snd_soc_codec *codec, struct snd_soc_jack *jack, int detect_report, int short_report)
 
 EXPORT_SYMBOL_GPL (wm8350_mic_jack_detect)
 
 module_platform_driver (wm8350_codec_driver)
 
 MODULE_DESCRIPTION ("ASoC WM8350 driver")
 
 MODULE_AUTHOR ("Liam Girdwood")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:wm8350-codec")
 

Macro Definition Documentation

#define FIXED_FLL_SIZE   ((1 << 16) * 10)

Definition at line 979 of file wm8350.c.

#define WM8350_FORMATS
Value:
SNDRV_PCM_FMTBIT_S20_3LE |\
SNDRV_PCM_FMTBIT_S24_LE)

Definition at line 1447 of file wm8350.c.

#define WM8350_OUTn_0dB   0x39

Definition at line 33 of file wm8350.c.

#define WM8350_RAMP_DOWN   2

Definition at line 37 of file wm8350.c.

#define WM8350_RAMP_NONE   0

Definition at line 35 of file wm8350.c.

#define WM8350_RAMP_UP   1

Definition at line 36 of file wm8350.c.

#define WM8350_RATES   (SNDRV_PCM_RATE_8000_96000)

Definition at line 1445 of file wm8350.c.

Function Documentation

EXPORT_SYMBOL_GPL ( wm8350_hp_jack_detect  )
EXPORT_SYMBOL_GPL ( wm8350_mic_jack_detect  )
MODULE_ALIAS ( "platform:wm8350-codec )
MODULE_AUTHOR ( "Liam Girdwood"  )
MODULE_DESCRIPTION ( "ASoC WM8350 driver )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( wm8350_codec_driver  )
int wm8350_hp_jack_detect ( struct snd_soc_codec codec,
enum wm8350_jack  which,
struct snd_soc_jack jack,
int  report 
)

wm8350_hp_jack_detect - Enable headphone jack detection.

: WM8350 codec : left or right jack detect signal : jack to report detection events on : value to report

Enables the headphone jack detection of the WM8350. If no report is specified then detection is disabled.

Definition at line 1339 of file wm8350.c.

int wm8350_mic_jack_detect ( struct snd_soc_codec codec,
struct snd_soc_jack jack,
int  detect_report,
int  short_report 
)

wm8350_mic_jack_detect - Enable microphone jack detection.

: WM8350 codec : jack to report detection events on : value to report when presence detected : value to report when microphone short detected

Enables the microphone jack detection of the WM8350. If both reports are specified as zero then detection is disabled.

Definition at line 1421 of file wm8350.c.