Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Enumerations | Functions
wm8350.h File Reference
#include <sound/soc.h>
#include <linux/mfd/wm8350/audio.h>

Go to the source code of this file.

Enumerations

enum  wm8350_jack { WM8350_JDL = 1, WM8350_JDR = 2 }
 

Functions

int wm8350_hp_jack_detect (struct snd_soc_codec *codec, enum wm8350_jack which, struct snd_soc_jack *jack, int report)
 
int wm8350_mic_jack_detect (struct snd_soc_codec *codec, struct snd_soc_jack *jack, int detect_report, int short_report)
 

Enumeration Type Documentation

Enumerator:
WM8350_JDL 
WM8350_JDR 

Definition at line 18 of file wm8350.h.

Function Documentation

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.