Wiki

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
resources:tools-software:linux-drivers:sound:adau1373 [31 Aug 2011 13:14] – Evaluation board driver Lars-Peter Clausenresources:tools-software:linux-drivers:sound:adau1373 [23 Feb 2017 12:47] (current) Lars-Peter Clausen
Line 1: Line 1:
 ====== ADAU1373 Sound CODEC Linux Driver ====== ====== ADAU1373 Sound CODEC Linux Driver ======
 +
  
 ===== Supported Devices ===== ===== Supported Devices =====
  
-This driver supports the\\ +  * [[adi>ADAU1373]]
-[[adi>ADAU1373]]+
  
-====== Source Code ======+===== Evaluation Boards ===== 
 +  * [[adi>EVAL-ADAU1373Z]] 
 + 
 +===== Source Code =====
  
 ==== Status ==== ==== Status ====
  
- Source   Mainlined?  +^ Source ^ Mainlined? ^ 
-| [[bfgit>linux-kernel?sound/soc/codecs/adau1373.c|git]] | [[git.linux.org>sound/soc/codecs/adau1373.c|In progress]] |+| [[git.linux.org>sound/soc/codecs/adau1373.c|git]] | [[git.linux.org>sound/soc/codecs/adau1373.c|Yes]] |
  
 ==== Files ==== ==== Files ====
Line 20: Line 23:
 | include | [[git.linux.org>include/sound/adau1373.h]] | | include | [[git.linux.org>include/sound/adau1373.h]] |
  
-====== Example device initialization ======+===== Example device initialization =====
  
 {{page>software/linux/docs/platform_and_bus_model#Platform Data&noheader&firstseconly&noeditbtn}} {{page>software/linux/docs/platform_and_bus_model#Platform Data&noheader&firstseconly&noeditbtn}}
Line 100: Line 103:
 | DAC2 Playback Volume | DAC2 Playback Volume | | | DAC2 Playback Volume | DAC2 Playback Volume | |
 | Lineout1 Playback Volume | Lineout 1 Volume | | | Lineout1 Playback Volume | Lineout 1 Volume | |
-| Lineout2 Playback Volume | Lineout Volume | Single-ended lineout |+| Lineout2 Playback Volume | Lineout Volume | Single-ended lineout |
 | Speaker Playback Volume  | Speaker Out Volume | | | Speaker Playback Volume  | Speaker Out Volume | |
 | Headphone Playback Volume | Heaphone Out Volume| | | Headphone Playback Volume | Heaphone Out Volume| |
Line 180: Line 183:
  
 ^ Name ^ Supported by driver ^ Description ^ ^ Name ^ Supported by driver ^ Description ^
-| SND_SOC_DAIFMT_I2S     | yes | I2S Justified mode |+| SND_SOC_DAIFMT_I2S     | yes | I2S mode |
 | SND_SOC_DAIFMT_RIGHT_J | yes | Right Justified mode | | SND_SOC_DAIFMT_RIGHT_J | yes | Right Justified mode |
 | SND_SOC_DAIFMT_LEFT_J  | yes | Left Justified mode  | | SND_SOC_DAIFMT_LEFT_J  | yes | Left Justified mode  |
Line 306: Line 309:
  
 ^  Source  ^  Mainlined?  ^ ^  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]]+| [[git.linux.org>sound/soc/blackfin/bfin-eval-adau1373.c|git]] | [[git.linux.org>sound/soc/blackfin/bfin-eval-adau1373.c|yes]] |
  
 ==== Files ==== ==== Files ====
Line 335: Line 338:
 ===== Hardware configuration ===== ===== Hardware configuration =====
  
-TODO+Connect the STAMP SPORT 0 port (P6) to the EVAL-ADAU1373 J23 and J28 headers. 
 + 
 +Note that the SPORT has separate signals for the capture and playback clocks, while the ADAU1373 uses the same clock signals for both, so the EVAL-ADU1373 clock signal pins need to be connected to two STAMP pins each. 
 + 
 +^ STAMP pin ^ EVAL-ADAU1373 pin ^ Function ^ 
 +| P6-26 (SPORT 0 - PJ2_SCL) | J23-1 | I2C SCL | 
 +| P6-24 (SPORT 0 - PJ3_SDA) | J23-3 | I2C SDA | 
 +| P6-6  (SPORT 0 - PJ9_TSCLK0), P6-16 (SPORT 0 - PJ6_RSCLK0) | J28-6 (A_BCLK) | BCLK | 
 +| P6-11 (SPORT 0 - PJ10_TFS0), P6-7 (SPORT 0 - PJ7_RFS0) | J28-8 (A_LRC) | LRCLK | 
 +| P6-14 (SPORT 0 - PJ11_DT0PRI | J28-10 (A_DACDAT) | Playback data | 
 +| P6-8  (SPORT 0 - PJ8_DR0PRI) | J28-12 (A_ADCDAT) | Captrue data | 
 +| P6-33 | J28-1 | GND | 
  
 ===== Driver testing ===== ===== Driver testing =====
Line 341: Line 356:
 Load the driver and make sure the sound card is properly instantiated. Load the driver and make sure the sound card is properly instantiated.
  
-<box 100% green|shell prompt running on the target>+<WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap>
 <xterm> <xterm>
 root:/> modprobe snd-bf5xx-i2s root:/> modprobe snd-bf5xx-i2s
Line 350: Line 365:
 asoc: ADAU1373 <-> bf5xx-i2s mapping ok asoc: ADAU1373 <-> bf5xx-i2s mapping ok
 </xterm> </xterm>
-</box>+</WRAP>
  
-<box 100% green|shell prompt running on the target>+<WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap>
 <xterm> <xterm>
 root:/> modprobe snd-pcm-oss root:/> modprobe snd-pcm-oss
Line 362: Line 377:
 Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
 </xterm> </xterm>
-</box>+</WRAP>
resources/tools-software/linux-drivers/sound/adau1373.1314789281.txt.gz · Last modified: 31 Aug 2011 13:14 by Lars-Peter Clausen