Linux Kernel
3.7.1
|
#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") | |
#define WM8350_FORMATS |
#define WM8350_RATES (SNDRV_PCM_RATE_8000_96000) |
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 | ||
) |
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.