#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/completion.h>
#include <linux/delay.h>
#include <linux/pm.h>
#include <linux/gcd.h>
#include <linux/gpio.h>
#include <linux/i2c.h>
#include <linux/regmap.h>
#include <linux/regulator/consumer.h>
#include <linux/slab.h>
#include <linux/workqueue.h>
#include <sound/core.h>
#include <sound/jack.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 <sound/wm8996.h>
#include "wm8996.h"
Go to the source code of this file.
#define WM8996_NUM_SUPPLIES 3 |
#define WM8996_REGULATOR_EVENT |
( |
|
n | ) |
|
Value:
regcache_mark_dirty(wm8996->regmap); \
} \
return 0; \
}
Definition at line 104 of file wm8996.c.
MODULE_DESCRIPTION |
( |
"ASoC WM8996 driver" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
wm8996_i2c_id |
|
|
) |
| |
module_i2c_driver |
( |
wm8996_i2c_driver |
| ) |
|
wm8996_detect - Enable default WM8996 jack detection
The WM8996 has advanced accessory detection support for headsets. This function provides a default implementation which integrates the majority of this functionality with minimal user configuration.
This will detect headset, headphone and short circuit button and will also detect inverted microphone ground connections and update the polarity of the connections.
Definition at line 2248 of file wm8996.c.