Audio Cape RevB

Descriptions
The Rev B Audio Cape provides an line level stereo audio input and output on the BeagleBone and BeagleBone Black.

Revision A1
DISCONTINUED: Audio Cape Rev A Wiki Page

Revision B1
Redesign of the Audio cape to lower cost, for compatibility with the BeagleBone Black, and to switch to the TLV320AIC3104 codec.

Software Support & Compatibility
The device tree overlay is available at the bottom of this page. Please note, the current Angstrom build lacks kernel patches for the audio codec used on this cape, if you attempt to use it on the Angstrom image you will hear audio at double speed or static. The current Debian images have the required patches and will play audio normally.

Specifications
Followings are some specifications of the Audio Cape:

Distributors

 * BoardZoo.com
 * Other Distributors

Audio Cape Revision B1

 * [[media:Audio Cape B1 Eagle.zip|Eagle design files]]
 * [[media:Audio Cape B1 Schematic.pdf|PDF Schematic]]
 * [[media:BB-BONE-AUDI-02-00A0.zip|Device Tree Overlay]]
 * TLV320AIC3104 datasheet

Setup Notes
These instructions got the audio cape working for me (User:JesseForgues).

Audio levels low so need to add instructions for fixing that.

https://groups.google.com/forum/#!topic/beagleboard/81TsiNp4Bok

Step 1 copy the audio device tree overlay (source) to /lib/firmware

Step 2 compile the device tree overlay - good instructions here https://learn.adafruit.com/introduction-to-the-beaglebone-black-device-tree?view=all#compiling-an-overlay dtc -O dtb -o BB-BONE-AUDI-02-00A0.dtbo  -b 0 -@ BB-BONE-AUDI-02-00A0.dts

Step 3 nano /boot/uboot/uEnv.txt

Remove the # from in front of this line Note: you only need to disable BB-BONELT-HDMI. BB-BONELT-HDMIN will not conflict with your audio cape. optargs=capemgr.disable_partno=BB-BONELT-HDMI

Step 4 export SLOTS=/sys/devices/bone_capemgr.*/slots echo BB-BONE-AUDI-02 > $SLOTS

Audio now works

Tests for audio (need to add mixer volume changes, levels are defaulted LOW): speaker-test arecord -r 44100 -c 1 -f S16_LE -t wav -vv -d 25 example.wav aplay example.wav