Audio Cape on BBB rev C

Good… Then 8 minutes is ok on the rev c. I was thinking those numbers musta been good for the rev b. Think that’s an OK download place…BeagleBoard.org took me there?

ok, I think I got it by NOT following that tutorial and following advice here. Now I got this:

root@beaglebone:/home/debian# cat /sys/devices/bone_capemgr*/slots
0: 54:PF—
1: 55:PF—
2: 56:PF—
3: 57:PF—
4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
5: ff:P-O-- Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI
6: ff:P-O-L Bone-Black-HDMIN,00A0,Texas Instrument,BB-BONELT-HDMIN
7: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-BONE-AUDI-02

What I did as root was edit /boot/uEnv.txt and uncomment the audio cape lines so that it looks like this:

#Docs: http://elinux.org/Beagleboard:U-boot_partitioning_layout_2.0

uname_r=3.8.13-bone70
#dtb=
cmdline=quiet init=/lib/systemd/systemd

##Example
#cape_disable=capemgr.disable_partno=
#cape_enable=capemgr.enable_partno=

##Disable HDMI/eMMC
#cape_disable=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN,BB-BONE-EMMC-2G

##Disable HDMI
#cape_disable=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN

##Disable eMMC
#cape_disable=capemgr.disable_partno=BB-BONE-EMMC-2G

##Audio Cape (needs HDMI Audio disabled)
cape_disable=capemgr.disable_partno=BB-BONELT-HDMI
cape_enable=capemgr.enable_partno=BB-BONE-AUDI-02

##enable BBB: eMMC Flasher:
#cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh

uuid=c92d7bef-e149-4c25-83f4-fffb66c655cb

mplayer isn’t happy now. It ends with this:

Failed to initialize audio driver ‘sdl:aalib’
Could not open/initialize audio device → no sound.
Audio: no sound
Video: no video

Exiting… (End of file)

Which part of the tutorial did you not do? Note that it is a wiki, so
when things change, you can always update the tutorial.

I unconsumed both lines under audio cape but now mplayer doesn’t work so I’m not thinking this wiki needs to be revised by me yet. The wiki is for the rev b and not my c, though.

Feel free to add Rev C notes :wink:

I unconsumed both lines under audio cape but now mplayer doesn’t work so I’m not thinking this wiki needs to be revised by me yet. The wiki is for the rev b and not my c, though.

The wiki was written for the old may 2014 release, the march 2015 is now the official release, it will take time for ‘all’ wiki’s will be updated. Please update it for us. :wink:

Wow, this is a new rev c!

Don't overwrite old content though. Be sure to note that for your
board, things are different.

Yeah I’m not sure what I did is the correct way of doing things. Since I don’t have sound yet I’m thinking not but maybe somebody will build on that and set me straight :slight_smile:

Yeah I’m not sure what I did is the correct way of doing things. Since I don’t have sound yet I’m thinking not but maybe somebody will build on that and set me straight :slight_smile:

The easiest thing to do is add the value of cat /etc/dogtag as that tells everyone what version they have and how it’s setup.

Did you disable HDMI audio?

What does aplay -l (or is it -L) output.

Does speaker-test work?

HDMI audio appears to be disabled since BB-BONELT-HDMIN shows up with cat /sys/devices/bone_capemgr*/slots. That was a good idea, Jesse, about checking with aplay -L. I hadn’t tried that for this (though that is how I got sound to work through a cheap USB adapter) until now. Unfortunately, it does not list any of the devices that that capemgr lists and no sound works except for a USB adapter (mplayer -ao alsa:device=default=Device -playlist filename.pls is how u stream internet music with a USB soundcard).

So does the audio cape work on the rev C with the may 2014 image?

Has anyone come right using audio card (rev B) together with 4DCAPE-43T and BBB Rev C running kernel 3.8.13-bone70?

My setup works flawless using kernel 3.8.13-bone50 but after updating to use 3.8.13-bone70 there seems to be an issue when LCD is connected.

“aplay -l” shows audio device and running “aplay mytunes.wav” just makes a single click sound and nothing more (no music).

If I disconnect the LCD then aplay works just fine.

On prior kernel I did modify BB-BONE-AUDI-02 as the dts file specified exclusive gpio1_18 and gpio1_19 use (and as far I recall, these pins weren’t even used) causing conflict with LCD Cape overlay - until updating kernal to bone70.

dts snippet:
`

exclusive-use =
/* the pin header uses /
“P9.31”, /
mcasp0: mcasp0_aclkx /
“P9.29”, /
mcasp0: mcasp0_fsx /
“P9.28”, /
mcasp0: mcasp0_axr2 /
“P9.25”, /
mcasp0: mcasp0_ahclkx /
/
the hardware ip uses /
/
“gpio1_18”, “gpio1_19”,*/
“mcasp0”;
`

root@beaglebone:~# cat /sys/devices/bone_capemgr.9/slots

0: 54:PF--- 1: 55:PF--- 2: 56:PF--- 3: 57:P---L 4D 4.3 LCD CAPE- 4DCAPE-43T ,00A1,4D SYSTEMS ,BB-BONE-LCD4-01 4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G 5: ff:P-O-- Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI 8: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-BONE-AUDI-03

Hello Colin.

Keenly interested in getting a known good setup. Which distro/rfs package were you using with that kernel?

Thx++

Hello Colin.

Keenly interested in getting a known good setup. Which distro/rfs package were you using with that kernel?

Thx++

What works for me:
Debian emmc flasher image: BBB-eMMC-flasher-debian-7.5-2014-05-14-2gb.img
BBB Rev C Board
4D Systems 4DCAPE -43T LCD4
Audio Cape (Rev B1)

I basically followed instructions for audio cape from http://elinux.org/BBB_Audio_Cape_RevB_Getting_Started but needed to edit the dts file before compiling, removing the exclusive use of gpio1_18 and gpio1_19.

Some more follow up.

If I disable (via capemgr) loading of BB-BONE-LCD4-01 with LCD connected then audio works - running dmesg after trying to run aplay with and without BB-BONE-LCD4-01 loaded shows two different results.

With BB-BONE-LCD4-01 loaded (enabled):

`

[ 323.373068] bone-capemgr bone_capemgr.9: slot #14: Requesting part number/version based 'BB-BONE-AUDI-03-00A0.dtbo
[ 323.373129] bone-capemgr bone_capemgr.9: slot #14: Requesting firmware ‘BB-BONE-AUDI-03-00A0.dtbo’ for board-name ‘Override Board Name’, version ‘00A0’
[ 323.373457] bone-capemgr bone_capemgr.9: slot #14: dtbo ‘BB-BONE-AUDI-03-00A0.dtbo’ loaded; converting to live tree
[ 323.376959] bone-capemgr bone_capemgr.9: slot #14: #4 overlays
[ 323.420327] of_get_named_gpio_flags: can’t parse gpios property
[ 323.427162] pinctrl-single 44e10800.pinmux: pin 44e10998 already requested by gpio_keys.13; cannot claim for 48038000.mcasp
[ 323.439210] pinctrl-single 44e10800.pinmux: pin-102 (48038000.mcasp) status -22
[ 323.447022] pinctrl-single 44e10800.pinmux: could not request pin 102 on device pinctrl-single
[ 323.492148] davinci-mcasp 48038000.mcasp: pins are not configured from the driver
[ 323.501912] 1-0018 supply IOVDD not found, using dummy regulator
[ 323.502111] 1-0018 supply DVDD not found, using dummy regulator
[ 323.502290] 1-0018 supply AVDD not found, using dummy regulator
[ 323.502438] 1-0018 supply DRVDD not found, using dummy regulator
[ 323.527081] davinci_evm sound.19: tlv320aic3x-hifi <-> 48038000.mcasp mapping ok
[ 323.569598] bone-capemgr bone_capemgr.9: slot #14: Applied #4 overlays.

`

With BB-BONE-LCD4-01 disabled:

[ 152.155372] bone-capemgr bone_capemgr.9: part_number 'BB-BONE-AUDI-03', version 'N/A' [ 152.155561] bone-capemgr bone_capemgr.9: slot #12: generic override [ 152.155606] bone-capemgr bone_capemgr.9: bone: Using override eeprom data at slot 12 [ 152.155654] bone-capemgr bone_capemgr.9: slot #12: 'Override Board Name,00A0,Override Manuf,BB-BONE-AUDI-03' [ 152.157917] bone-capemgr bone_capemgr.9: slot #12: Requesting part number/version based 'BB-BONE-AUDI-03-00A0.dtbo [ 152.157980] bone-capemgr bone_capemgr.9: slot #12: Requesting firmware 'BB-BONE-AUDI-03-00A0.dtbo' for board-name 'Override Board Name', version '00A0' [ 152.161585] bone-capemgr bone_capemgr.9: slot #12: dtbo 'BB-BONE-AUDI-03-00A0.dtbo' loaded; converting to live tree [ 152.163815] bone-capemgr bone_capemgr.9: slot #12: #4 overlays [ 152.187525] of_get_named_gpio_flags: can't parse gpios property [ 152.201242] 1-0018 supply IOVDD not found, using dummy regulator [ 152.201434] 1-0018 supply DVDD not found, using dummy regulator [ 152.201606] 1-0018 supply AVDD not found, using dummy regulator [ 152.201756] 1-0018 supply DRVDD not found, using dummy regulator [ 152.220127] davinci_evm sound.15: tlv320aic3x-hifi <-> 48038000.mcasp mapping ok [ 152.246252] bone-capemgr bone_capemgr.9: slot #12: Applied #4 overlays.

Running same test on 3.8.13-bone50 shows no such error.

Note specifically error message regarding pinctrl-single 44e10800.pinmux with LCD4 loaded.

Is this a red herring or indication of conflict?

Excellent stuff. Thank you. The dmesg spw below is from your bone70 installation (?). Let me try and get that bone50 set up to work first.

rfs == root file system (in case you were using something generated by Buildroot for example)

BR

Jerry.