Linux Kernel
3.7.1
|
#include <linux/delay.h>
#include <linux/i2c.h>
#include <linux/spi/spi.h>
#include <linux/regmap.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/initval.h>
#include <sound/tlv.h>
Go to the source code of this file.
Data Structures | |
struct | pll_div |
struct | da7210_priv |
Macros | |
#define | DA7210_PAGE_CONTROL 0x00 |
#define | DA7210_CONTROL 0x01 |
#define | DA7210_STATUS 0x02 |
#define | DA7210_STARTUP1 0x03 |
#define | DA7210_STARTUP2 0x04 |
#define | DA7210_STARTUP3 0x05 |
#define | DA7210_MIC_L 0x07 |
#define | DA7210_MIC_R 0x08 |
#define | DA7210_AUX1_L 0x09 |
#define | DA7210_AUX1_R 0x0A |
#define | DA7210_AUX2 0x0B |
#define | DA7210_IN_GAIN 0x0C |
#define | DA7210_INMIX_L 0x0D |
#define | DA7210_INMIX_R 0x0E |
#define | DA7210_ADC_HPF 0x0F |
#define | DA7210_ADC 0x10 |
#define | DA7210_ADC_EQ1_2 0X11 |
#define | DA7210_ADC_EQ3_4 0x12 |
#define | DA7210_ADC_EQ5 0x13 |
#define | DA7210_DAC_HPF 0x14 |
#define | DA7210_DAC_L 0x15 |
#define | DA7210_DAC_R 0x16 |
#define | DA7210_DAC_SEL 0x17 |
#define | DA7210_SOFTMUTE 0x18 |
#define | DA7210_DAC_EQ1_2 0x19 |
#define | DA7210_DAC_EQ3_4 0x1A |
#define | DA7210_DAC_EQ5 0x1B |
#define | DA7210_OUTMIX_L 0x1C |
#define | DA7210_OUTMIX_R 0x1D |
#define | DA7210_OUT1_L 0x1E |
#define | DA7210_OUT1_R 0x1F |
#define | DA7210_OUT2 0x20 |
#define | DA7210_HP_L_VOL 0x21 |
#define | DA7210_HP_R_VOL 0x22 |
#define | DA7210_HP_CFG 0x23 |
#define | DA7210_ZERO_CROSS 0x24 |
#define | DA7210_DAI_SRC_SEL 0x25 |
#define | DA7210_DAI_CFG1 0x26 |
#define | DA7210_DAI_CFG3 0x28 |
#define | DA7210_PLL_DIV1 0x29 |
#define | DA7210_PLL_DIV2 0x2A |
#define | DA7210_PLL_DIV3 0x2B |
#define | DA7210_PLL 0x2C |
#define | DA7210_ALC_MAX 0x83 |
#define | DA7210_ALC_MIN 0x84 |
#define | DA7210_ALC_NOIS 0x85 |
#define | DA7210_ALC_ATT 0x86 |
#define | DA7210_ALC_REL 0x87 |
#define | DA7210_ALC_DEL 0x88 |
#define | DA7210_A_HID_UNLOCK 0x8A |
#define | DA7210_A_TEST_UNLOCK 0x8B |
#define | DA7210_A_PLL1 0x90 |
#define | DA7210_A_CP_MODE 0xA7 |
#define | DA7210_SC_MST_EN (1 << 0) |
#define | DA7210_MICBIAS_EN (1 << 6) |
#define | DA7210_MIC_L_EN (1 << 7) |
#define | DA7210_MIC_R_EN (1 << 7) |
#define | DA7210_IN_L_EN (1 << 7) |
#define | DA7210_IN_R_EN (1 << 7) |
#define | DA7210_ADC_ALC_EN (1 << 0) |
#define | DA7210_ADC_L_EN (1 << 3) |
#define | DA7210_ADC_R_EN (1 << 7) |
#define | DA7210_VOICE_F0_MASK (0x7 << 4) |
#define | DA7210_VOICE_F0_25 (1 << 4) |
#define | DA7210_VOICE_EN (1 << 7) |
#define | DA7210_DAC_L_SRC_DAI_L (4 << 0) |
#define | DA7210_DAC_L_EN (1 << 3) |
#define | DA7210_DAC_R_SRC_DAI_R (5 << 4) |
#define | DA7210_DAC_R_EN (1 << 7) |
#define | DA7210_OUT_L_EN (1 << 7) |
#define | DA7210_OUT_R_EN (1 << 7) |
#define | DA7210_HP_2CAP_MODE (1 << 1) |
#define | DA7210_HP_SENSE_EN (1 << 2) |
#define | DA7210_HP_L_EN (1 << 3) |
#define | DA7210_HP_MODE (1 << 6) |
#define | DA7210_HP_R_EN (1 << 7) |
#define | DA7210_DAI_OUT_L_SRC (6 << 0) |
#define | DA7210_DAI_OUT_R_SRC (7 << 4) |
#define | DA7210_DAI_WORD_S16_LE (0 << 0) |
#define | DA7210_DAI_WORD_S20_3LE (1 << 0) |
#define | DA7210_DAI_WORD_S24_LE (2 << 0) |
#define | DA7210_DAI_WORD_S32_LE (3 << 0) |
#define | DA7210_DAI_FLEN_64BIT (1 << 2) |
#define | DA7210_DAI_MODE_SLAVE (0 << 7) |
#define | DA7210_DAI_MODE_MASTER (1 << 7) |
#define | DA7210_DAI_FORMAT_I2SMODE (0 << 0) |
#define | DA7210_DAI_FORMAT_LEFT_J (1 << 0) |
#define | DA7210_DAI_FORMAT_RIGHT_J (2 << 0) |
#define | DA7210_DAI_OE (1 << 3) |
#define | DA7210_DAI_EN (1 << 7) |
#define | DA7210_PLL_DIV_L_MASK (0xF << 0) |
#define | DA7210_MCLK_RANGE_10_20_MHZ (1 << 4) |
#define | DA7210_PLL_BYP (1 << 6) |
#define | DA7210_PLL_FS_MASK (0xF << 0) |
#define | DA7210_PLL_FS_8000 (0x1 << 0) |
#define | DA7210_PLL_FS_11025 (0x2 << 0) |
#define | DA7210_PLL_FS_12000 (0x3 << 0) |
#define | DA7210_PLL_FS_16000 (0x5 << 0) |
#define | DA7210_PLL_FS_22050 (0x6 << 0) |
#define | DA7210_PLL_FS_24000 (0x7 << 0) |
#define | DA7210_PLL_FS_32000 (0x9 << 0) |
#define | DA7210_PLL_FS_44100 (0xA << 0) |
#define | DA7210_PLL_FS_48000 (0xB << 0) |
#define | DA7210_PLL_FS_88200 (0xE << 0) |
#define | DA7210_PLL_FS_96000 (0xF << 0) |
#define | DA7210_MCLK_DET_EN (0x1 << 5) |
#define | DA7210_MCLK_SRM_EN (0x1 << 6) |
#define | DA7210_PLL_EN (0x1 << 7) |
#define | DA7210_RAMP_EN (1 << 6) |
#define | DA7210_REG_EN (1 << 0) |
#define | DA7210_BIAS_EN (1 << 2) |
#define | DA7210_NOISE_SUP_EN (1 << 3) |
#define | DA7210_INPGA_L_VOL (0x0F << 0) |
#define | DA7210_INPGA_R_VOL (0xF0 << 0) |
#define | DA7210_AUX1_L_ZC (1 << 0) |
#define | DA7210_AUX1_R_ZC (1 << 1) |
#define | DA7210_HP_L_ZC (1 << 6) |
#define | DA7210_HP_R_ZC (1 << 7) |
#define | DA7210_AUX1_L_VOL (0x3F << 0) |
#define | DA7210_AUX1_L_EN (1 << 7) |
#define | DA7210_AUX1_R_VOL (0x3F << 0) |
#define | DA7210_AUX1_R_EN (1 << 7) |
#define | DA7210_AUX2_EN (1 << 3) |
#define | DA7210_INPGA_MIN_VOL_NS 0x0A /* 10.5dB */ |
#define | DA7210_AUX1_MIN_VOL_NS 0x35 /* 6dB */ |
#define | DA7210_OUT1_L_EN (1 << 7) |
#define | DA7210_OUT1_R_EN (1 << 7) |
#define | DA7210_OUT2_OUTMIX_R (1 << 5) |
#define | DA7210_OUT2_OUTMIX_L (1 << 6) |
#define | DA7210_OUT2_EN (1 << 7) |
#define | DA7210_VERSION "0.0.1" |
#define | DA7210_FORMATS |
Functions | |
module_init (da7210_modinit) | |
module_exit (da7210_exit) | |
MODULE_DESCRIPTION ("ASoC DA7210 driver") | |
MODULE_AUTHOR ("David Chen, Kuninori Morimoto") | |
MODULE_LICENSE ("GPL") | |
#define DA7210_FORMATS |
enum clk_src |
MODULE_AUTHOR | ( | "David | Chen, |
Kuninori Morimoto" | |||
) |
MODULE_DESCRIPTION | ( | "ASoC DA7210 driver" | ) |
module_exit | ( | da7210_exit | ) |
module_init | ( | da7210_modinit | ) |
MODULE_LICENSE | ( | "GPL" | ) |