This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:tools-software:linux-drivers:sound:adau1381 [07 Sep 2011 16:17] – [ALSA Controls] Add missing controls Lars-Peter Clausen | resources:tools-software:linux-drivers:sound:adau1381 [08 Jun 2016 20:10] (current) – [Supported DAI formats] Lars-Peter Clausen | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
===== Supported Devices ===== | ===== Supported Devices ===== | ||
- | This driver supports the\\ | + | * [[adi> |
- | [[adi> | + | |
- | [[adi> | + | |
+ | ===== Evaluation Boards ===== | ||
+ | |||
+ | * [[adi> | ||
+ | * [[adi> | ||
====== Source Code ====== | ====== Source Code ====== | ||
Line 11: | Line 15: | ||
==== Status ==== | ==== Status ==== | ||
- | ^ Source | + | ^ Source ^ Mainlined? ^ |
- | | [[bfgit>linux-kernel?sound/ | + | | [[git.linux.org>sound/ |
==== Files ==== | ==== Files ==== | ||
^ Function ^ File ^ | ^ Function ^ File ^ | ||
- | | driver | + | | driver |
- | | driver | + | | driver |
- | | include | [[git.linux.org> | + | | include | [[git.linux.org> |
- | | include | [[git.linux.org> | + | | include | [[git.linux.org> |
====== Example device initialization ====== | ====== Example device initialization ====== | ||
Line 45: | Line 49: | ||
[--snip--] | [--snip--] | ||
{ | { | ||
- | I2C_BOARD_INFO(" | + | I2C_BOARD_INFO(" |
}, | }, | ||
[--snip--] | [--snip--] | ||
Line 110: | Line 114: | ||
===== PLL configuration ====== | ===== PLL configuration ====== | ||
- | The ADAU1381 | + | The ADAU1781 |
<code c> | <code c> | ||
- | enum adau1xx1_pll | + | enum adau17x1_pll |
- | | + | |
}; | }; | ||
</ | </ | ||
Line 136: | Line 140: | ||
^ Name ^ Supported by driver ^ Description ^ | ^ Name ^ Supported by driver ^ Description ^ | ||
- | | SND_SOC_DAIFMT_I2S | + | | SND_SOC_DAIFMT_I2S |
| SND_SOC_DAIFMT_RIGHT_J | yes | Right Justified mode | | | SND_SOC_DAIFMT_RIGHT_J | yes | Right Justified mode | | ||
| SND_SOC_DAIFMT_LEFT_J | | SND_SOC_DAIFMT_LEFT_J | ||
Line 161: | Line 165: | ||
<code c> | <code c> | ||
- | enum adau_clk_src | + | enum adau17x1_clk_src |
- | | + | |
- | | + | |
}; | }; | ||
</ | </ | ||
Line 217: | Line 221: | ||
} | } | ||
- | ret = snd_soc_dai_set_pll(codec_dai, | + | ret = snd_soc_dai_set_pll(codec_dai, |
- | 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, | + | ret = snd_soc_dai_set_sysclk(codec_dai, |
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 = " | .name = " | ||
- | .stream_name = "ADAU1x81", | + | .stream_name = "ADAU1X81", |
.cpu_dai_name = " | .cpu_dai_name = " | ||
.codec_dai_name = " | .codec_dai_name = " | ||
.platform_name = " | .platform_name = " | ||
- | .codec_name = "adau1381.0-0038", | + | .codec_name = "adau1781.0-0038", |
.ops = & | .ops = & | ||
}; | }; | ||
Line 257: | Line 261: | ||
</ | </ | ||
- | ====== | + | ====== |
There is no dedicated Blackfin STAMP evaluation board for the ADAU1381/ | There is no dedicated Blackfin STAMP evaluation board for the ADAU1381/ | ||
Line 268: | Line 272: | ||
^ Source | ^ Source | ||
- | | [[bfgit>linux-kernel?sound/ | + | | [[git.linux.org>sound/ |
==== 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. | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
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: | bfin-i2s bfin-i2s.0: dma rx:3 tx:4, err irq:45, regs: | ||
Line 326: | Line 330: | ||
#0: bfin-eval-adau1x81 | #0: bfin-eval-adau1x81 | ||
</ | </ | ||
- | </box> | + | </WRAP> |
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/> modprobe snd-pcm-oss | root:/> modprobe snd-pcm-oss | ||
Line 338: | Line 342: | ||
Playing WAVE ' | Playing WAVE ' | ||
</ | </ | ||
- | </box> | + | </WRAP> |
+ | |||
+ | ===== More information ===== | ||
+ | |||
+ | * [[resources/ | ||
+ | * [[resources/ | ||
+ | * [[resources/ | ||
+ | |||
+ | {{page> |