This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
resources:tools-software:linux-drivers:sound:hdl-axi-spidf [29 Oct 2012 15:56] – update links Lars-Peter Clausen | resources:tools-software:linux-drivers:sound:hdl-axi-spidf [08 Jun 2016 20:15] – [Status] Lars-Peter Clausen | ||
---|---|---|---|
Line 9: | Line 9: | ||
==== Status ==== | ==== Status ==== | ||
- | ^ Source | + | ^ Source ^ Mainlined? ^ |
- | | [[linux.github>xcomm_zynq?sound/soc/xlnx/ | + | | [[git.linux.org> |
==== Files ==== | ==== Files ==== | ||
^ Function ^ File ^ | ^ Function ^ File ^ | ||
- | | driver | + | | driver |
Line 42: | Line 43: | ||
^ Name ^ Supported by driver ^ Description ^ | ^ Name ^ Supported by driver ^ Description ^ | ||
- | | SND_SOC_DAIFMT_I2S | + | | SND_SOC_DAIFMT_I2S |
| SND_SOC_DAIFMT_RIGHT_J | no | Right Justified mode | | | SND_SOC_DAIFMT_RIGHT_J | no | Right Justified mode | | ||
| SND_SOC_DAIFMT_LEFT_J | | SND_SOC_DAIFMT_LEFT_J | ||
Line 92: | Line 93: | ||
^ Source | ^ Source | ||
- | | [[https:// | + | | [[linux.github> |
==== Files ==== | ==== Files ==== | ||
^ Function ^ File ^ | ^ Function ^ File ^ | ||
- | | driver | + | | driver |
===== Kernel configuration ===== | ===== Kernel configuration ===== | ||
Line 165: | Line 166: | ||
Make sure the sound card is properly instantiated. | Make sure the sound card is properly instantiated. | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/> aplay -l | root:/> aplay -l | ||
Line 172: | Line 173: | ||
Subdevice #0: subdevice #0 | Subdevice #0: subdevice #0 | ||
</ | </ | ||
- | </box> | + | </WRAP> |
To test audio playback you can use the // | To test audio playback you can use the // | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/> speaker-test -c 2 | root:/> speaker-test -c 2 | ||
Line 195: | Line 196: | ||
.... | .... | ||
</ | </ | ||
- | </box> | + | </WRAP> |
To test audio record you can use the //arecord// utility. //arecord// will record the incoming audio signal and write it to a wav file. | To test audio record you can use the //arecord// utility. //arecord// will record the incoming audio signal and write it to a wav file. | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/> arecord -f S16 -r 48000 -c 2 > test.wav | root:/> arecord -f S16 -r 48000 -c 2 > test.wav | ||
... | ... | ||
</ | </ | ||
- | </box> | + | </WRAP> |
To playback a wav file you can use the //aplay// utility. You can also create a audio loop-back by sending the output of //arecord// to //aplay//. This will send the incoming audio stream back via the outgoing audio stream. | To playback a wav file you can use the //aplay// utility. You can also create a audio loop-back by sending the output of //arecord// to //aplay//. This will send the incoming audio stream back via the outgoing audio stream. | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/> arecord -f S16 -r 48000 -c 2 | aplay | root:/> arecord -f S16 -r 48000 -c 2 | aplay | ||
... | ... | ||
</ | </ | ||
- | </box> | + | </WRAP> |
For more information on the the //aplay// and //arecord// utilities please refer to the [[http:// | For more information on the the //aplay// and //arecord// utilities please refer to the [[http:// |