Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
resources:tools-software:linux-drivers:sound:adau1373 [06 May 2011 23:04] – [Adding Audio to the Kernel] andyrresources:tools-software:linux-drivers:sound:adau1373 [26 Aug 2011 03:04] – basic driver description Lars-Peter Clausen
Line 1: Line 1:
-====== Adding Audio to the Kernel (ADAU1373)======+====== ADAU1373 driver ======
  
 +===== Supported Devices =====
 +
 +This driver supports the
 +[[adi>ADAU1373]]
 +
 +===== Source =====
 +
 +==== Status ====
 +
 +^  Source  ^  Mainlined?  ^
 +| [[bfgit>linux-kernel?sound/soc/codecs/adau1373.c|git]] | [[git.linux.org>sound/soc/codecs/adau1373.c|In progress]] |
 +
 +==== Files ====
 +
 +^ Function ^ File ^
 +| driver  | [[git.linux.org>sound/soc/codecs/adau1373.c]] |
 +| include | [[git.linux.org>sound/soc/codecs/adau1373.h]] |
 +| include | [[git.linux.org>include/sound/adau1373.h]] |
 +
 +===== Example device initialization =====
 +
 +{{page>software/linux/docs/platform_and_bus_model#Platform Data&noheader&firstseconly&noeditbtn}}
 +
 +==== I2C ====
 +
 +{{page>software/linux/docs/platform_and_bus_model#Declaring I2C devices&firstseconly&noeditbtn}}
 +
 +<code c>
 +static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
 +
 + [--snip--]
 + {
 + I2C_BOARD_INFO("adau1373", 0x1a),
 + },
 + [--snip--]
 +}
 +
 +</code>
 +
 +<code c>
 +static int __init stamp_init(void)
 +{
 + [--snip--]
 + i2c_register_board_info(0, bfin_i2c_board_info,
 + ARRAY_SIZE(bfin_i2c_board_info));
 + [--snip--]
 +
 + return 0;
 +}
 +arch_initcall(board_init);
 +</code>
 +
 +===== ASoC DAPM Widgets =====
 +
 +^ Name ^ Description ^
 +| AIN1L | Left Channel Input 1 |
 +| AIN1R | Right Channel Input 1 |
 +| AIN2L | Left Channel Input 2 |
 +| AIN2R | Right Channel Input 2 |
 +| AIN3L | Left Channel Input 3 |
 +| AIN3R | Right Channel Input 3 |
 +| AIN4L | Left Channel Input 4 |
 +| AIN4R | Right Channel Input 4 |
 +| DMIC1DAT | Serial Data Input Digital Microphone 1 and 2 |
 +| DMIC2DAT | Serial Data Input Digital Microphone 3 and 4 |
 +| LOUT1L | Left Channel Line Output 1 |
 +| LOUT1R | Right Channel Line Output 1 |
 +| LOUT2L | Left Channel Line Output 2 |
 +| LOUT2R | Right Channel Line Output 2 |
 +| HPL | Left Headphone Output |
 +| HPR | Right Headphone Output |
 +| SPKL | Left Speaker Output |
 +| SPKR | Right Speaker Output |
 +| EP | Eearpiece Output |
 +| MICBIAS1 | Micbias 1 supply |
 +| MICBIAS2 | Micbias 2 supply |
 +
 +===== ALSA Controls =====
 +
 +^ Name ^  Description ^ Configuration ^
 +| AIF1 Capture Volume | | |
 +| AIF2 Capture Volume | | |
 +| AIF3 Capture Volume | | |
 +| ADC Capture Volume  | | |
 +| DMIC Capture Volume  | | |
 +| AIF1 Playback Volume  | | |
 +| AIF2 Playback Volume  | | |
 +| AIF3 Playback Volume  | | |
 +| DAC1 Playback Volume  | | |
 +| DAC2 Playback Volume  | | |
 +| Lineout1 Playback Volume  | | |
 +| Speaker Playback Volume  | | |
 +| Headphone Playback Volume | | |
 +| Input 1 Capture Volume | | |
 +| Input 2 Capture Volume | | |
 +| Input 3 Capture Volume | | |
 +| Input 4 Capture Volume | | |
 +| Earpiece Playback Volume | | |
 +| AIF3 Boost Playback Volume | | |
 +| AIF2 Boost Playback Volume | | |
 +| AIF1 Boost Playback Volume | | |
 +| AIF3 Boost Capture Volume | | |
 +| AIF2 Boost Capture Volume | | |
 +| AIF1 Boost Capture Volume | | |
 +| DMIC Boost Capture Volume | | |
 +| ADC Boost Capture Volume | | |
 +| DAC2 Boost Playback Volume | | |
 +| DAC1 Boost Playback Volume | | |
 +| Input 1 Boost Capture Volume | | |
 +| Input 2 Boost Capture Volume | | |
 +| Input 3 Boost Capture Volume | | |
 +| Input 4 Boost Capture Volume | | |
 +| Speaker Boost Playback Volume | | |
 +| Lineout1 LR Mux | | |
 +| Speaker LR Mux | | |
 +| HPF Cutoff | | |
 +| HPF Switch | | |
 +| HPF Channel | | |
 +| Bass HPF Cutoff | | |
 +| Bass Clip Level Threshold | | |
 +| Bass LPF Cutoff | | |
 +| Bass Playback Switch | | |
 +| Bass Playback Volume | | |
 +| Bass Channel | | |
 +| 3D Freq | | |
 +| 3D Level | | |
 +| 3D Playback Switch | | |
 +| 3D Playback Volume | | |
 +| 3D Channel | | |
 +| Zero Cross Switch | | |
 +| Lineout2 Playback Volume | | Single-ended lineout |
 +| Lineout2 LR Mux  | | Single-ended lineout |
 +| DRC1 Channel | | |
 +| DRC2 Channel | | |
 +| DRC3 Channel | | |
 +
 +===== Supported DAI formats =====
 +
 +^ Name ^ Supported by driver ^ Description ^
 +| SND_SOC_DAIFMT_I2S     | yes | I2S Justified mode |
 +| SND_SOC_DAIFMT_RIGHT_J | yes | Right Justified mode |
 +| SND_SOC_DAIFMT_LEFT_J  | yes | Left Justified mode  |
 +| SND_SOC_DAIFMT_DSP_A   | no  | data MSB after FRM LRC |
 +| SND_SOC_DAIFMT_DSP_B   | yes | data MSB during FRM LRC  |
 +| SND_SOC_DAIFMT_AC97    | no  | AC97 mode |
 +| SND_SOC_DAIFMT_PDM     | no  | Pulse density modulation |
 +| | |
 +| SND_SOC_DAIFMT_NB_NF | yes  | Normal bit- and frameclock |
 +| SND_SOC_DAIFMT_NB_IF | yes | Normal bitclock, inverted frameclock |
 +| SND_SOC_DAIFMT_IB_NF | yes | Inverted frameclock, normal bitclock |
 +| SND_SOC_DAIFMT_IB_IF | yes | Inverted bit- and frameclock |
 +| | |
 +| SND_SOC_DAIFMT_CBM_CFM | yes | Codec bit- and frameclock master |
 +| SND_SOC_DAIFMT_CBS_CFM | no  | Codec bitclock slave, frameclock master |
 +| SND_SOC_DAIFMT_CBM_CFS | no  | Codec bitclock master, frameclock slave |
 +| SND_SOC_DAIFMT_CBS_CFS | yes | Codec bit- and frameclock slave |
 +
 +
 +====== ADAU1373 evaluation board driver ======
 +
 +===== Source =====
 +
 +==== Status ====
 +
 +^  Source  ^  Mainlined?  ^
 +| [[bfgit>linux-kernel?sound/soc/blackfin/bfin-eval-adau1373.c|In progress]] | [[git.linux.org>sound/soc/blackfin/bfin-eval-adau1373.c|In progress]]
 +
 +==== Files ====
 +
 +^ Function ^ File ^
 +| driver  | [[git.linux.org>sound/soc/blackfin/bfin-eval-adau1373.c]] |
  
 ===== Adding Kernel Support - As a module ===== ===== Adding Kernel Support - As a module =====
resources/tools-software/linux-drivers/sound/adau1373.txt · Last modified: 23 Feb 2017 12:47 by Lars-Peter Clausen