Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | wm8994 |
Macros | |
#define | WM8994_NUM_GPIO_REGS 11 |
#define | WM8994_NUM_LDO_REGS 2 |
#define | WM8994_NUM_IRQ_REGS 2 |
#define | WM8994_IRQ_TEMP_SHUT 0 |
#define | WM8994_IRQ_MIC1_DET 1 |
#define | WM8994_IRQ_MIC1_SHRT 2 |
#define | WM8994_IRQ_MIC2_DET 3 |
#define | WM8994_IRQ_MIC2_SHRT 4 |
#define | WM8994_IRQ_FLL1_LOCK 5 |
#define | WM8994_IRQ_FLL2_LOCK 6 |
#define | WM8994_IRQ_SRC1_LOCK 7 |
#define | WM8994_IRQ_SRC2_LOCK 8 |
#define | WM8994_IRQ_AIF1DRC1_SIG_DET 9 |
#define | WM8994_IRQ_AIF1DRC2_SIG_DET 10 |
#define | WM8994_IRQ_AIF2DRC_SIG_DET 11 |
#define | WM8994_IRQ_FIFOS_ERR 12 |
#define | WM8994_IRQ_WSEQ_DONE 13 |
#define | WM8994_IRQ_DCS_DONE 14 |
#define | WM8994_IRQ_TEMP_WARN 15 |
#define | WM8994_IRQ_GPIO(x) (x + WM8994_IRQ_TEMP_WARN) |
Enumerations | |
enum | wm8994_type { WM8994 = 0, WM8958 = 1, WM1811 = 2 } |
Functions | |
int | wm8994_reg_read (struct wm8994 *wm8994, unsigned short reg) |
int | wm8994_reg_write (struct wm8994 *wm8994, unsigned short reg, unsigned short val) |
int | wm8994_set_bits (struct wm8994 *wm8994, unsigned short reg, unsigned short mask, unsigned short val) |
int | wm8994_bulk_read (struct wm8994 *wm8994, unsigned short reg, int count, u16 *buf) |
int | wm8994_bulk_write (struct wm8994 *wm8994, unsigned short reg, int count, const u16 *buf) |
int | wm8994_irq_init (struct wm8994 *wm8994) |
void | wm8994_irq_exit (struct wm8994 *wm8994) |
#define WM8994_IRQ_GPIO | ( | x | ) | (x + WM8994_IRQ_TEMP_WARN) |
enum wm8994_type |
wm8994_bulk_read: Read multiple WM8994 registers
: Device to read from : First register : Number of registers : Buffer to fill. The data will be returned big endian.
Definition at line 61 of file wm8994-core.c.
wm8994_bulk_write: Write multiple WM8994 registers
: Device to write to : First register : Number of registers : Buffer to write from. Data must be big-endian formatted.
Definition at line 89 of file wm8994-core.c.
Definition at line 174 of file wm8994-irq.c.
Definition at line 141 of file wm8994-irq.c.
wm8994_reg_read: Read a single WM8994 register.
: Device to read from. : Register to read.
Definition at line 39 of file wm8994-core.c.
wm8994_reg_write: Write a single WM8994 register.
: Device to write to. : Register to write to. : Value to write.
Definition at line 74 of file wm8994-core.c.
int wm8994_set_bits | ( | struct wm8994 * | wm8994, |
unsigned short | reg, | ||
unsigned short | mask, | ||
unsigned short | val | ||
) |
wm8994_set_bits: Set the value of a bitfield in a WM8994 register
: Device to write to. : Register to write to. : Mask of bits to set. : Value to set (unshifted)
Definition at line 104 of file wm8994-core.c.