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:adau1381 [07 Sep 2011 16:17] – [ALSA Controls] Add missing controls Lars-Peter Clausenresources:tools-software:linux-drivers:sound:adau1381 [08 Jun 2016 20:10] (current) – [Supported DAI formats] Lars-Peter Clausen
Line 1: Line 1:
-====== ADAU1381 Sound CODEC Linux Driver ======+====== ADAU1781 Sound CODEC Linux Driver ======
  
 ===== Supported Devices ===== ===== Supported Devices =====
  
-This driver supports the\\ +  * [[adi>ADAU1381]] 
-[[adi>ADAU1381]]\\ +  [[adi>ADAU1781]] 
-[[adi>ADAU1781]]\\+ 
 +===== Evaluation Boards ===== 
 + 
 +  * [[adi>EVAL-ADAU1381Z]] 
 +  * [[adi>EVAL-ADAU1781Z]]
  
 ====== Source Code ====== ====== Source Code ======
Line 11: Line 15:
 ==== Status ==== ==== Status ====
  
- Source   Mainlined?  +^ Source ^ Mainlined? ^ 
-| [[bfgit>linux-kernel?sound/soc/codecs/adau1381.c|git]] | [[git.linux.org>sound/soc/codecs/adau1381.c|In progress]] |+| [[git.linux.org>sound/soc/codecs/adau1781.c|git]] | [[git.linux.org>sound/soc/codecs/adau1781.c|git]] |
  
 ==== Files ==== ==== Files ====
  
 ^ Function ^ File ^ ^ Function ^ File ^
-| driver  | [[git.linux.org>sound/soc/codecs/adau1381.c]] | +| driver  | [[git.linux.org>sound/soc/codecs/adau1781.c]] | 
-| driver  | [[git.linux.org>sound/soc/codecs/adau1xx1.c]] | +| driver  | [[git.linux.org>sound/soc/codecs/adau17x1.c]] | 
-| include | [[git.linux.org>sound/soc/codecs/adau1381.h]] | +| include | [[git.linux.org>sound/soc/codecs/adau1781.h]] | 
-| include | [[git.linux.org>include/sound/adau1xx1.h]] |+| include | [[git.linux.org>include/sound/adau17x1.h]] |
  
 ====== Example device initialization ====== ====== Example device initialization ======
Line 45: Line 49:
  [--snip--]  [--snip--]
  {  {
- I2C_BOARD_INFO("adau1381", 0x38),+ I2C_BOARD_INFO("adau1781", 0x38),
  },  },
  [--snip--]  [--snip--]
Line 110: Line 114:
 ===== PLL configuration ====== ===== PLL configuration ======
  
-The ADAU1381 features one PLL:+The ADAU1781 features one PLL:
  
 <code c> <code c>
-enum adau1xx1_pll +enum adau17x1_pll 
-    ADAU1XX1_PLL+    ADAU17X1_PLL
 }; };
 </code> </code>
Line 136: Line 140:
  
 ^ 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 161: Line 165:
  
 <code c> <code c>
-enum adau_clk_src +enum adau17x1_clk_src 
-    ADAU_CLK_SRC_MCLK+    ADAU17X1_CLK_SRC_MCLK
-    ADAU_CLK_SRC_PLL,+    ADAU17X1_CLK_SRC_PLL,
 }; };
 </code> </code>
Line 217: Line 221:
  }  }
  
- ret = snd_soc_dai_set_pll(codec_dai, ADAU1XX1_PLL+ ret = snd_soc_dai_set_pll(codec_dai, ADAU17X1_PLL
- ADAU1XX1_PLL_SRC_MCLK, 12288000, pll_rate);+ ADAU17X1_PLL_SRC_MCLK, 12288000, pll_rate);
  if (ret)  if (ret)
  return ret;  return ret;
  
- ret = snd_soc_dai_set_sysclk(codec_dai, ADAU1XX1_CLK_SRC_PLL, pll_rate,+ ret = snd_soc_dai_set_sysclk(codec_dai, ADAU17X1_CLK_SRC_PLL, pll_rate,
  SND_SOC_CLOCK_IN);  SND_SOC_CLOCK_IN);
  
Line 235: Line 239:
 static struct snd_soc_dai_link bfin_eval_adau1x81_dai = { static struct snd_soc_dai_link bfin_eval_adau1x81_dai = {
  .name = "adau1x81",  .name = "adau1x81",
- .stream_name = "ADAU1x81", + .stream_name = "ADAU1X81", 
  .cpu_dai_name = "bfin-i2s.0",   .cpu_dai_name = "bfin-i2s.0", 
  .codec_dai_name = "adau-hifi",  .codec_dai_name = "adau-hifi",
  .platform_name = "bfin-i2s-pcm-audio",  .platform_name = "bfin-i2s-pcm-audio",
- .codec_name = "adau1381.0-0038",+ .codec_name = "adau1781.0-0038",
  .ops = &bfin_eval_adau1x81_ops,  .ops = &bfin_eval_adau1x81_ops,
 }; };
Line 257: Line 261:
 </code> </code>
  
-====== ADAU1381 evaluation board driver ======+====== ADAU1X81 evaluation board driver ======
  
 There is no dedicated Blackfin STAMP evaluation board for the ADAU1381/ADAU1781. During test and driver development we used the [[adi>EVAL-ADAU1381Z]]/[[adi>EVAL-ADAU1781Z]] board. There is no dedicated Blackfin STAMP evaluation board for the ADAU1381/ADAU1781. During test and driver development we used the [[adi>EVAL-ADAU1381Z]]/[[adi>EVAL-ADAU1781Z]] board.
Line 268: Line 272:
  
 ^  Source  ^  Mainlined?  ^ ^  Source  ^  Mainlined?  ^
-| [[bfgit>linux-kernel?sound/soc/blackfin/bfin-eval-adau1x81.c|In progress]] | [[git.linux.org>sound/soc/blackfin/bfin-eval-adau1x81.c|In progress]]+| [[git.linux.org>sound/soc/blackfin/bfin-eval-adau1x81.c|git]] | [[git.linux.org>sound/soc/blackfin/bfin-eval-adau1x81.c|yes]] |
  
 ==== Files ==== ==== Files ====
Line 314: Line 318:
 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
 root:/> modprobe snd-soc-bf5xx-i2s root:/> modprobe snd-soc-bf5xx-i2s
-root:/> modprobe snd-soc-adau1381+root:/> modprobe snd-soc-adau1781
 root:/> modprobe snd-soc-bfin-eval-adau1x81 root:/> modprobe snd-soc-bfin-eval-adau1x81
 bfin-i2s bfin-i2s.0: dma rx:3 tx:4, err irq:45, regs:ffc00800 bfin-i2s bfin-i2s.0: dma rx:3 tx:4, err irq:45, regs:ffc00800
Line 326: Line 330:
   #0: bfin-eval-adau1x81   #0: bfin-eval-adau1x81
 </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 338: Line 342:
 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> 
 + 
 +===== More information ===== 
 + 
 +  * [[resources/tools-software/sigmastudio|SigmaStudio]] 
 +  * [[resources/tools-software/linux-software/sigmadsp_genfirmware|SigmaDSP Firmware Utility for Linux]] 
 +  * [[resources/tools-software/linux-software/sigmatcp|SigmaStudio Network Utility for Linux]] 
 + 
 +{{page>resources/tools-software/linux-drivers/need_help#need help&noheader&firstseconly&noeditbtn}}
resources/tools-software/linux-drivers/sound/adau1381.1315405064.txt.gz · Last modified: 07 Sep 2011 16:17 by Lars-Peter Clausen