Linux Kernel
3.7.1
|
#include <linux/delay.h>
#include <linux/i2c.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <sound/soc.h>
#include <sound/initval.h>
#include <sound/tlv.h>
Go to the source code of this file.
Data Structures | |
struct | ak4642_priv |
Macros | |
#define | PW_MGMT1 0x00 |
#define | PW_MGMT2 0x01 |
#define | SG_SL1 0x02 |
#define | SG_SL2 0x03 |
#define | MD_CTL1 0x04 |
#define | MD_CTL2 0x05 |
#define | TIMER 0x06 |
#define | ALC_CTL1 0x07 |
#define | ALC_CTL2 0x08 |
#define | L_IVC 0x09 |
#define | L_DVC 0x0a |
#define | ALC_CTL3 0x0b |
#define | R_IVC 0x0c |
#define | R_DVC 0x0d |
#define | MD_CTL3 0x0e |
#define | MD_CTL4 0x0f |
#define | PW_MGMT3 0x10 |
#define | DF_S 0x11 |
#define | FIL3_0 0x12 |
#define | FIL3_1 0x13 |
#define | FIL3_2 0x14 |
#define | FIL3_3 0x15 |
#define | EQ_0 0x16 |
#define | EQ_1 0x17 |
#define | EQ_2 0x18 |
#define | EQ_3 0x19 |
#define | EQ_4 0x1a |
#define | EQ_5 0x1b |
#define | FIL1_0 0x1c |
#define | FIL1_1 0x1d |
#define | FIL1_2 0x1e |
#define | FIL1_3 0x1f |
#define | PW_MGMT4 0x20 |
#define | MD_CTL5 0x21 |
#define | LO_MS 0x22 |
#define | HP_MS 0x23 |
#define | SPK_MS 0x24 |
#define | PMVCM (1 << 6) /* VCOM Power Management */ |
#define | PMMIN (1 << 5) /* MIN Input Power Management */ |
#define | PMDAC (1 << 2) /* DAC Power Management */ |
#define | PMADL (1 << 0) /* MIC Amp Lch and ADC Lch Power Management */ |
#define | HPMTN (1 << 6) |
#define | PMHPL (1 << 5) |
#define | PMHPR (1 << 4) |
#define | MS (1 << 3) /* master/slave select */ |
#define | MCKO (1 << 1) |
#define | PMPLL (1 << 0) |
#define | PMHP_MASK (PMHPL | PMHPR) |
#define | PMHP PMHP_MASK |
#define | PMADR (1 << 0) /* MIC L / ADC R Power Management */ |
#define | MINS (1 << 6) /* Switch from MIN to Speaker */ |
#define | DACL (1 << 4) /* Switch from DAC to Stereo or Receiver */ |
#define | PMMP (1 << 2) /* MPWR pin Power Management */ |
#define | MGAIN0 (1 << 0) /* MIC amp gain*/ |
#define | ZTM(param) ((param & 0x3) << 4) /* ALC Zoro Crossing TimeOut */ |
#define | WTM(param) (((param & 0x4) << 4) | ((param & 0x3) << 2)) |
#define | ALC (1 << 5) /* ALC Enable */ |
#define | LMTH0 (1 << 0) /* ALC Limiter / Recovery Level */ |
#define | PLL3 (1 << 7) |
#define | PLL2 (1 << 6) |
#define | PLL1 (1 << 5) |
#define | PLL0 (1 << 4) |
#define | PLL_MASK (PLL3 | PLL2 | PLL1 | PLL0) |
#define | BCKO_MASK (1 << 3) |
#define | BCKO_64 BCKO_MASK |
#define | DIF_MASK (3 << 0) |
#define | DSP (0 << 0) |
#define | RIGHT_J (1 << 0) |
#define | LEFT_J (2 << 0) |
#define | I2S (3 << 0) |
#define | FS0 (1 << 0) |
#define | FS1 (1 << 1) |
#define | FS2 (1 << 2) |
#define | FS3 (1 << 5) |
#define | FS_MASK (FS0 | FS1 | FS2 | FS3) |
#define | BST1 (1 << 3) |
#define | DACH (1 << 0) |
Functions | |
module_init (ak4642_modinit) | |
module_exit (ak4642_exit) | |
MODULE_DESCRIPTION ("Soc AK4642 driver") | |
MODULE_AUTHOR ("Kuninori Morimoto <[email protected]>") | |
MODULE_LICENSE ("GPL") | |
MODULE_AUTHOR | ( | "Kuninori Morimoto <[email protected]>" | ) |
MODULE_DESCRIPTION | ( | "Soc AK4642 driver" | ) |
module_exit | ( | ak4642_exit | ) |
module_init | ( | ak4642_modinit | ) |
MODULE_LICENSE | ( | "GPL" | ) |