Audio from BBB HDMI when using a LCD cape

I am running ubuntu 13.10 on my BBB and I want to get an audio signal from the I2S pins on the P9 header. I am also trying to use a LCD cape on the BBB.

I get an audio signal without the display connected. I am able to play mp3 files using mplayer and alsa.

However, when I connect the display, aplay -l reports

aplay: device_list:268: no soundcards found…

I have tried the options in the uEnv.txt files,

optargs=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN

optargs=capemgr.enable_partno=BB-BONE-AUDI-01

but that does not work.

How can I get an audio output and also use the LCD cape at the same time?

This has to be one line, as you are redefining the "optargs" variable,
before it has a chance to disable the other two..

Regards,

Do i change the line to

optargs=capemgr.enable_partno=BB-BONE-AUDI-01 capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN

or

optargs=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN capemgr.enable_partno=BB-BONE-AUDI-01

Probably the 2nd, not sure if order actually matters.

Regards,

I use the later, enable last and it works as expected.

I seem to be making a mistake here.

I don’t have an audio cape, which i have been trying to enable in the uEnv.txt.

I am using a DAC connected to the I2S pins on the P9 header. This works when there is no display, but doesn’t work when there is a display connected.