help getting audio cape rev b1 working

I have followed the instructions found at http://elinux.org/CircuitCo:Audio_Cape_RevB#Audio_Cape_Revision_B1 and I’m just getting static when I try speaker-test -f 600 or aplay filename.wav. the wav file plays fine on my windows laptop and aplay identifies it properly but just static for audio. what may I have missed?

here’s dmesg:

root@beaglebone:~# dmesg|tail
[ 1088.018924] bone-capemgr bone_capemgr.8: slot #4: Requesting firmware ‘BB-BONE-AUDI-02-00A0.dtbo’ for board-name ‘Override Board Name’, version ‘00A0’
[ 1088.028213] bone-capemgr bone_capemgr.8: slot #4: dtbo ‘BB-BONE-AUDI-02-00A0.dtbo’ loaded; converting to live tree
[ 1088.029031] bone-capemgr bone_capemgr.8: slot #4: #4 overlays
[ 1088.059524] of_get_named_gpio_flags: can’t parse gpios property
[ 1088.071612] 1-0018 supply IOVDD not found, using dummy regulator
[ 1088.071867] 1-0018 supply DVDD not found, using dummy regulator
[ 1088.072049] 1-0018 supply AVDD not found, using dummy regulator
[ 1088.072277] 1-0018 supply DRVDD not found, using dummy regulator
[ 1088.098289] davinci_evm sound.10: tlv320aic3x-hifi <-> 48038000.mcasp mapping ok
[ 1088.134015] bone-capemgr bone_capemgr.8: slot #4: Applied #4 overlays.

and a listing of slots showing the card:

root@beaglebone:~# cat /sys/devices/bone_capemgr.*/slots
0: 54:PF—
1: 55:PF—
2: 56:PF—
3: 57:PF—
4: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-BONE-AUDI-02

Thanks,

Eric

I have followed the instructions found at http://elinux.org/CircuitCo:Audio_Cape_RevB#Audio_Cape_Revision_B1 and I’m just getting static when I try speaker-test -f 600 or aplay filename.wav. the wav file plays fine on my windows laptop and aplay identifies it properly but just static for audio. what may I have missed?

Try the attached DTO. I generated this myself before Circuitco published theirs. When Circuitco published their DTO I described what I thought were problems but no one responded.

Regards,
John

BB-BONE-AUDI-02-00A0.dts (1.42 KB)

BB-BONE-AUDI-02-00A0.dts (2.44 KB)

I have followed the instructions found at http://elinux.org/CircuitCo:Audio_Cape_RevB#Audio_Cape_Revision_B1 and I’m just getting static when I try speaker-test -f 600 or aplay filename.wav. the wav file plays fine on my windows laptop and aplay identifies it properly but just static for audio. what may I have missed?

BTW, I don’t have the LEDs defined in my DTO so you will have to add those back in to my DTO if you want those to work.

Regards,
John

What LED’s are you referring to? the audio board has no LED’s.

Eric

John,

here’s what happens when I use your .dts file:

root@beaglebone:~# export SLOTS=/sys/devices/bone_capemgr.*/slots
root@beaglebone:~# echo BB-BONE-AUDI-02 > $SLOTS
-bash: echo: write error: Invalid argument

and when I use the one linked to in the instructions (http://elinux.org/images/1/10/BB-BONE-AUDI-02-00A0.zip) - yes I extracted the file from the zip archive first…):

root@beaglebone:~# export SLOTS=/sys/devices/bone_capemgr.*/slots
root@beaglebone:~# echo BB-BONE-AUDI-02 > $SLOTS

(no errors)

Thanks,

Eric

ok,

seems the issue was one related to software and expectations… and maybe a messed up debian install. when I entered the command 'speaker-test -c2 -f600 I expected a 600hz tone… I got white noise - but paying close attention to the text output, it said it was playing noise. starting with a freshly imaged card and following the instructions from there seems to have it working with the files linked from the instructions. Note to the designers of this cape - adding a stereo audio amp to drive headphones to a bit higher level would be extremely welcome.

Eric

ok,

seems the issue was one related to software and expectations… and maybe a messed up debian install. when I entered the command 'speaker-test -c2 -f600 I expected a 600hz tone… I got white noise - but paying close attention to the text output, it said it was playing noise. starting with a freshly imaged card and following the instructions from there seems to have it working with the files linked from the instructions. Note to the designers of this cape - adding a stereo audio amp to drive headphones to a bit higher level would be extremely welcome.

Use amixer to increase the volume.

Regards,
John

What LED’s are you referring to? the audio board has no LED’s.

I don’t know since I don’t have an audio cape. The audio cape DTS refers to two LEDs on the board.

Regards,
John

John,

here’s what happens when I use your .dts file:

root@beaglebone:~# export SLOTS=/sys/devices/bone_capemgr.*/slots
root@beaglebone:~# echo BB-BONE-AUDI-02 > $SLOTS
-bash: echo: write error: Invalid argument

That is very strange. How did you compile the audio cape DTS? I just place it in the firmware/cape folder and updated the makefile so that it is compiled when I build the kernel.

Regards,
John

I had a similar issue with this. I had to change this commands a little.

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

Regards,