Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/pm.h>
#include <linux/i2c.h>
#include <linux/slab.h>
#include <linux/gcd.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/tlv.h>
#include <sound/soc.h>
#include <sound/adau1373.h>
#include "adau1373.h"
Go to the source code of this file.
Data Structures | |
struct | adau1373_dai |
struct | adau1373 |
Functions | |
MODULE_DEVICE_TABLE (i2c, adau1373_i2c_id) | |
module_i2c_driver (adau1373_i2c_driver) | |
MODULE_DESCRIPTION ("ASoC ADAU1373 driver") | |
MODULE_AUTHOR ("Lars-Peter Clausen <[email protected]>") | |
MODULE_LICENSE ("GPL") | |
#define ADAU1373_3D_CTRL1 0xc0 |
Definition at line 108 of file adau1373.c.
#define ADAU1373_3D_CTRL2 0xc1 |
Definition at line 109 of file adau1373.c.
#define ADAU1373_ADC_CTRL 0x3c |
Definition at line 79 of file adau1373.c.
#define ADAU1373_ADC_CTRL_PEAK_DETECT BIT(0) |
Definition at line 141 of file adau1373.c.
#define ADAU1373_ADC_CTRL_RESET BIT(1) |
Definition at line 142 of file adau1373.c.
#define ADAU1373_ADC_CTRL_RESET_FORCE BIT(2) |
Definition at line 143 of file adau1373.c.
#define ADAU1373_ADC_DAC_STATUS 0x37 |
Definition at line 78 of file adau1373.c.
#define ADAU1373_ADC_GAIN 0x11 |
Definition at line 47 of file adau1373.c.
#define ADAU1373_ADC_RECL_VOL 0x72 |
Definition at line 97 of file adau1373.c.
#define ADAU1373_ADC_RECR_VOL 0x73 |
Definition at line 98 of file adau1373.c.
#define ADAU1373_AINL_CTRL | ( | x | ) | (0x01 + (x) * 2) |
Definition at line 39 of file adau1373.c.
#define ADAU1373_AINR_CTRL | ( | x | ) | (0x02 + (x) * 2) |
Definition at line 40 of file adau1373.c.
#define ADAU1373_BASS1 0x7e |
Definition at line 105 of file adau1373.c.
#define ADAU1373_BASS2 0x7f |
Definition at line 106 of file adau1373.c.
#define ADAU1373_BCLKDIV | ( | x | ) | (0x47 + (x)) |
Definition at line 82 of file adau1373.c.
#define ADAU1373_BCLKDIV_128 0x01 |
Definition at line 138 of file adau1373.c.
#define ADAU1373_BCLKDIV_256 0x00 |
Definition at line 139 of file adau1373.c.
#define ADAU1373_BCLKDIV_32 0x03 |
Definition at line 136 of file adau1373.c.
#define ADAU1373_BCLKDIV_64 0x02 |
Definition at line 137 of file adau1373.c.
#define ADAU1373_BCLKDIV_SOURCE BIT(5) |
Definition at line 135 of file adau1373.c.
#define ADAU1373_CLK_SRC_DIV | ( | x | ) | (0x40 + (x) * 2) |
Definition at line 81 of file adau1373.c.
#define ADAU1373_DAC1_PBL_VOL 0x6e |
Definition at line 93 of file adau1373.c.
#define ADAU1373_DAC1_PBR_VOL 0x6f |
Definition at line 94 of file adau1373.c.
#define ADAU1373_DAC2_PBL_VOL 0x70 |
Definition at line 95 of file adau1373.c.
#define ADAU1373_DAC2_PBR_VOL 0x71 |
Definition at line 96 of file adau1373.c.
#define ADAU1373_DAI | ( | x | ) | (0x44 + (x)) |
Definition at line 80 of file adau1373.c.
#define ADAU1373_DAI_FORMAT_DSP 0x3 |
Definition at line 133 of file adau1373.c.
#define ADAU1373_DAI_FORMAT_I2S 0x2 |
Definition at line 132 of file adau1373.c.
#define ADAU1373_DAI_FORMAT_LEFT_J 0x1 |
Definition at line 131 of file adau1373.c.
#define ADAU1373_DAI_FORMAT_RIGHT_J 0x0 |
Definition at line 130 of file adau1373.c.
#define ADAU1373_DAI_INVERT_BCLK BIT(7) |
Definition at line 122 of file adau1373.c.
#define ADAU1373_DAI_INVERT_LRCLK BIT(4) |
Definition at line 124 of file adau1373.c.
#define ADAU1373_DAI_MASTER BIT(6) |
Definition at line 123 of file adau1373.c.
#define ADAU1373_DAI_PBL_VOL | ( | x | ) | (0x62 + (x) * 2) |
Definition at line 89 of file adau1373.c.
#define ADAU1373_DAI_PBR_VOL | ( | x | ) | (0x63 + (x) * 2) |
Definition at line 90 of file adau1373.c.
#define ADAU1373_DAI_RECL_VOL | ( | x | ) | (0x68 + (x) * 2) |
Definition at line 91 of file adau1373.c.
#define ADAU1373_DAI_RECR_VOL | ( | x | ) | (0x69 + (x) * 2) |
Definition at line 92 of file adau1373.c.
#define ADAU1373_DAI_WLEN_16 0x0 |
Definition at line 125 of file adau1373.c.
#define ADAU1373_DAI_WLEN_20 0x4 |
Definition at line 126 of file adau1373.c.
#define ADAU1373_DAI_WLEN_24 0x8 |
Definition at line 127 of file adau1373.c.
#define ADAU1373_DAI_WLEN_32 0xc |
Definition at line 128 of file adau1373.c.
#define ADAU1373_DAI_WLEN_MASK 0xc |
Definition at line 129 of file adau1373.c.
#define ADAU1373_DEEMP_CTRL 0x50 |
Definition at line 85 of file adau1373.c.
#define ADAU1373_DIGEN 0xeb |
Definition at line 115 of file adau1373.c.
#define ADAU1373_DIGMICCTRL 0xe2 |
Definition at line 114 of file adau1373.c.
#define ADAU1373_DIN_MIX_CTRL | ( | x | ) | (0x56 + (x)) |
Definition at line 87 of file adau1373.c.
#define ADAU1373_DMIC_RECL_VOL 0x74 |
Definition at line 99 of file adau1373.c.
#define ADAU1373_DMIC_RECR_VOL 0x75 |
Definition at line 100 of file adau1373.c.
#define ADAU1373_DOUT_MIX_CTRL | ( | x | ) | (0x5b + (x)) |
Definition at line 88 of file adau1373.c.
#define ADAU1373_DPLL_CTRL | ( | x | ) | (0x28 + (x) * 7) |
Definition at line 69 of file adau1373.c.
#define ADAU1373_DRC | ( | x | ) | (0x80 + (x) * 0x10) |
Definition at line 107 of file adau1373.c.
#define ADAU1373_EP_CTRL 0x21 |
Definition at line 62 of file adau1373.c.
#define ADAU1373_EP_CTRL_MICBIAS1_OFFSET 4 |
Definition at line 150 of file adau1373.c.
#define ADAU1373_EP_CTRL_MICBIAS2_OFFSET 2 |
Definition at line 151 of file adau1373.c.
#define ADAU1373_EP_MIX 0x1c |
Definition at line 58 of file adau1373.c.
#define ADAU1373_FDSP_SEL1 0xdc |
Definition at line 110 of file adau1373.c.
#define ADAU1373_FDSP_SEL2 0xdd |
Definition at line 111 of file adau1373.c.
#define ADAU1373_FDSP_SEL3 0xde |
Definition at line 112 of file adau1373.c.
#define ADAU1373_FDSP_SEL4 0xdf |
Definition at line 113 of file adau1373.c.
#define ADAU1373_FORMATS |
Definition at line 1051 of file adau1373.c.
#define ADAU1373_HEADDECT 0x36 |
Definition at line 77 of file adau1373.c.
#define ADAU1373_HP_CTRL 0x1d |
Definition at line 59 of file adau1373.c.
#define ADAU1373_HP_CTRL2 0x1e |
Definition at line 60 of file adau1373.c.
#define ADAU1373_HPF_CTRL 0x7d |
Definition at line 104 of file adau1373.c.
#define ADAU1373_INPUT_MODE 0x00 |
Definition at line 38 of file adau1373.c.
#define ADAU1373_LADC_MIXER 0x12 |
Definition at line 48 of file adau1373.c.
#define ADAU1373_LHP_MIX 0x1a |
Definition at line 56 of file adau1373.c.
#define ADAU1373_LHP_OUT 0x0f |
Definition at line 45 of file adau1373.c.
#define ADAU1373_LLINE1_MIX 0x14 |
Definition at line 50 of file adau1373.c.
#define ADAU1373_LLINE2_MIX 0x16 |
Definition at line 52 of file adau1373.c.
#define ADAU1373_LLINE_OUT | ( | x | ) | (0x9 + (x) * 2) |
Definition at line 41 of file adau1373.c.
#define ADAU1373_LS_CTRL 0x1f |
Definition at line 61 of file adau1373.c.
#define ADAU1373_LSPK_MIX 0x18 |
Definition at line 54 of file adau1373.c.
#define ADAU1373_LSPK_OUT 0x0d |
Definition at line 43 of file adau1373.c.
#define ADAU1373_MICBIAS_CTRL1 0x22 |
Definition at line 63 of file adau1373.c.
#define ADAU1373_MICBIAS_CTRL2 0x23 |
Definition at line 64 of file adau1373.c.
#define ADAU1373_OUTPUT_CTRL 0x24 |
Definition at line 65 of file adau1373.c.
#define ADAU1373_OUTPUT_CTRL_LDIFF BIT(3) |
Definition at line 145 of file adau1373.c.
#define ADAU1373_OUTPUT_CTRL_LNFBEN BIT(2) |
Definition at line 146 of file adau1373.c.
#define ADAU1373_PLL_CTRL1 | ( | x | ) | (0x29 + (x) * 7) |
Definition at line 70 of file adau1373.c.
#define ADAU1373_PLL_CTRL2 | ( | x | ) | (0x2a + (x) * 7) |
Definition at line 71 of file adau1373.c.
#define ADAU1373_PLL_CTRL3 | ( | x | ) | (0x2b + (x) * 7) |
Definition at line 72 of file adau1373.c.
#define ADAU1373_PLL_CTRL4 | ( | x | ) | (0x2c + (x) * 7) |
Definition at line 73 of file adau1373.c.
#define ADAU1373_PLL_CTRL5 | ( | x | ) | (0x2d + (x) * 7) |
Definition at line 74 of file adau1373.c.
#define ADAU1373_PLL_CTRL6 | ( | x | ) | (0x2e + (x) * 7) |
Definition at line 75 of file adau1373.c.
#define ADAU1373_PLL_CTRL6_DPLL_BYPASS BIT(1) |
Definition at line 119 of file adau1373.c.
#define ADAU1373_PLL_CTRL6_PLL_EN BIT(0) |
Definition at line 120 of file adau1373.c.
#define ADAU1373_PLL_CTRL7 | ( | x | ) | (0x2f + (x) * 7) |
Definition at line 76 of file adau1373.c.
#define ADAU1373_PWDN_CTRL1 0x25 |
Definition at line 66 of file adau1373.c.
#define ADAU1373_PWDN_CTRL2 0x26 |
Definition at line 67 of file adau1373.c.
#define ADAU1373_PWDN_CTRL3 0x27 |
Definition at line 68 of file adau1373.c.
#define ADAU1373_PWDN_CTRL3_PWR_EN BIT(0) |
Definition at line 148 of file adau1373.c.
#define ADAU1373_RADC_MIXER 0x13 |
Definition at line 49 of file adau1373.c.
#define ADAU1373_RHP_MIX 0x1b |
Definition at line 57 of file adau1373.c.
#define ADAU1373_RHP_OUT 0x10 |
Definition at line 46 of file adau1373.c.
#define ADAU1373_RLINE1_MIX 0x15 |
Definition at line 51 of file adau1373.c.
#define ADAU1373_RLINE2_MIX 0x17 |
Definition at line 53 of file adau1373.c.
#define ADAU1373_RLINE_OUT | ( | x | ) | (0xa + (x) * 2) |
Definition at line 42 of file adau1373.c.
#define ADAU1373_RSPK_MIX 0x19 |
Definition at line 55 of file adau1373.c.
#define ADAU1373_RSPK_OUT 0x0e |
Definition at line 44 of file adau1373.c.
#define ADAU1373_SOFT_RESET 0xff |
Definition at line 116 of file adau1373.c.
#define ADAU1373_SRC_DAI_CTRL | ( | x | ) | (0x51 + (x)) |
Definition at line 86 of file adau1373.c.
#define ADAU1373_SRC_RATIOA | ( | x | ) | (0x4a + (x) * 2) |
Definition at line 83 of file adau1373.c.
#define ADAU1373_SRC_RATIOB | ( | x | ) | (0x4b + (x) * 2) |
Definition at line 84 of file adau1373.c.
#define ADAU1373_VOL_GAIN1 0x76 |
Definition at line 101 of file adau1373.c.
#define ADAU1373_VOL_GAIN2 0x77 |
Definition at line 102 of file adau1373.c.
#define ADAU1373_VOL_GAIN3 0x78 |
Definition at line 103 of file adau1373.c.
#define DECLARE_ADAU1373_DSP_CHANNEL_MIXER_CTRLS | ( | _name, | |
_reg | |||
) |
Definition at line 508 of file adau1373.c.
#define DECLARE_ADAU1373_DSP_OUTPUT_MIXER_CTRLS | ( | _name, | |
_reg | |||
) |
Definition at line 530 of file adau1373.c.
#define DECLARE_ADAU1373_OUTPUT_MIXER_CTRLS | ( | _name, | |
_reg | |||
) |
Definition at line 463 of file adau1373.c.
#define DSP_CHANNEL_MIXER_ROUTES | ( | _sink | ) |
Definition at line 719 of file adau1373.c.
#define DSP_OUTPUT_MIXER_ROUTES | ( | _sink | ) |
Definition at line 728 of file adau1373.c.
#define LEFT_OUTPUT_MIXER_ROUTES | ( | _sink | ) |
Definition at line 735 of file adau1373.c.
#define RIGHT_OUTPUT_MIXER_ROUTES | ( | _sink | ) |
Definition at line 745 of file adau1373.c.
MODULE_AUTHOR | ( | "Lars-Peter Clausen <[email protected]>" | ) |
MODULE_DESCRIPTION | ( | "ASoC ADAU1373 driver" | ) |
MODULE_DEVICE_TABLE | ( | i2c | , |
adau1373_i2c_id | |||
) |
module_i2c_driver | ( | adau1373_i2c_driver | ) |
MODULE_LICENSE | ( | "GPL" | ) |