Beaglebone Audio Cape Rev B audio Input

266 views
Skip to first unread message

Raphael Philipe

unread,
May 18, 2014, 6:30:39 PM5/18/14
to beagl...@googlegroups.com

Hi

I've acquired an Audio Cape Rev B http://elinux.org/CircuitCo:Audio_Cape_RevB for my Beaglebone Black.

Following the instructions I was able to make it work. The audio playback is working pretty well. However, I cannot test the audio input. I saw that it is a line level input (line in), so it cannot be connected to a regular microphone. 

I want to test it through an echo scheme. I will produce some sound through q source (connected to the line in input of the cape) and check the response in the audio output, through an earphone.

I tried to connect the cape line in to the earphone output of an old cellphone through a male male jack cable (I saw in some forums that the line level is similar to the earphone output of some appliances, apart from the impedance difference.). Unfortunately, it didn't work.

The interesting thing is that when the cable is connected to the cape audio input and the other connector is unplluged, I can hear the noise from static, similar to an unplugged to the amplifier electric guitar .

Can someone suggest me a simple form to test the audio input?

Regards.

John Syn

unread,
May 18, 2014, 7:22:39 PM5/18/14
to beagl...@googlegroups.com

From: Raphael Philipe <rap...@gmail.com>
Reply-To: <beagl...@googlegroups.com>
Date: Sunday, May 18, 2014 at 3:30 PM
To: <beagl...@googlegroups.com>
Subject: [beagleboard] Beaglebone Audio Cape Rev B audio Input
I don’t have the Audio Cape, but I do have a TLV320AIC3106EVM connected to my BBB and it works fine. You may want to try the following command:

arecord -r 44100 -c 1 -f S16_LE -t wav -vv -d 25 example.wav

This will show you a bar graph in the terminal so you can see the input levels. I would just connect the output from you phone to the line input of your audio cape. In another terminal, run amixer to adjust the input levels.

Regards,
John 

Regards.

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raphael Philipe

unread,
May 20, 2014, 6:40:29 AM5/20/14
to beagl...@googlegroups.com
It seems that I messed with the amixer parameters. Now I can not even
hear from the speaker test. Is there a way of reseting alsa
parameters, not only the general audio volume?

I saw something like
alsactl restore -P
and removing '/var/lib/alsa/asound.state
but it didn't work for parameters specifically to the DA830 EVM.

Why the audio cape is recognized as a DA830 EVM?

I suspect that the audio input is not working due to one of that parameters.

Regards, Raphael.

John Syn

unread,
May 20, 2014, 3:40:56 PM5/20/14
to beagl...@googlegroups.com

On 5/20/14, 3:40 AM, "Raphael Philipe" <rap...@gmail.com> wrote:

>It seems that I messed with the amixer parameters. Now I can not even
>hear from the speaker test. Is there a way of reseting alsa
>parameters, not only the general audio volume?
>
>I saw something like
>alsactl restore -P
>and removing '/var/lib/alsa/asound.state
After this, you need to restart alsa-utils. Also make sure you don¹t have
.asoundrc in your home folder.

>but it didn't work for parameters specifically to the DA830 EVM.
>
>Why the audio cape is recognized as a DA830 EVM?
The TLV320AIC3xxx codec is recognized as a DA830 EVM. If you look in the
audio cape DTS file, you will see ti,model = ³DA830 EVM².

Regards,
John

John Syn

unread,
May 20, 2014, 4:27:00 PM5/20/14
to beagl...@googlegroups.com

On 5/20/14, 3:40 AM, "Raphael Philipe" <rap...@gmail.com> wrote:

>It seems that I messed with the amixer parameters. Now I can not even
>hear from the speaker test. Is there a way of reseting alsa
>parameters, not only the general audio volume?
>
>I saw something like
>alsactl restore -P
>and removing '/var/lib/alsa/asound.state
To restart alsa-utils, do the following:

invoke-rc.d alsa-utils restart

Regards,
John

Eric Fort

unread,
May 20, 2014, 5:13:29 PM5/20/14
to beagleboard
in my use of audio and this card from the console I found alasmixer much easier to use.  I just went through and set all the levels to 100% and it works well.  Try using alsamixer it should get things fixed up in an easy and intuitive way.  F1 and the man page cover the controls.

Eric

John Syn

unread,
May 20, 2014, 6:17:14 PM5/20/14
to beagl...@googlegroups.com

From: Eric Fort <eric...@gmail.com>
Reply-To: <beagl...@googlegroups.com>
Date: Tuesday, May 20, 2014 at 2:13 PM
To: beagleboard <beagl...@googlegroups.com>
Subject: Re: [beagleboard] Beaglebone Audio Cape Rev B audio Input

in my use of audio and this card from the console I found alasmixer much easier to use.  I just went through and set all the levels to 100% and it works well.  Try using alsamixer it should get things fixed up in an easy and intuitive way.  F1 and the man page cover the controls.
This is true, and if you run alsamixer in a SSH session, it looks much better than in a tty console like minicom. 

Regards,
John

Raphael Philipe

unread,
May 20, 2014, 8:21:09 PM5/20/14
to beagl...@googlegroups.com
Hey folks,

Thank you all for the support so far. I did it. Now it is working.

It's a shame to admit but It was the capture sound level that was too
low. I used alsamixer and entered in the capture tab (F4) and put all
the inputs in the highest level.

Regards,

evan....@electric-echidna.com

unread,
Sep 30, 2014, 2:35:26 PM9/30/14
to beagl...@googlegroups.com
Hi John,

Can you please send through details on how you connected the TLV320AIC3106EVM to the BBB - I am trying to do the same thing.

Cheers,
Evan

evilwulfie

unread,
Sep 30, 2014, 3:51:04 PM9/30/14
to beagl...@googlegroups.com
http://elinux.org/CircuitCo:Audio_Cape_RevB
schematics and everything there

Evan Davey

unread,
Sep 30, 2014, 3:59:24 PM9/30/14
to beagl...@googlegroups.com
Thanks, I also managed to subsequently dig this up http://article.gmane.org/gmane.comp.hardware.beagleboard.user/63099.

I’ll probably try the same thing but inject the 1.8V from my bench supply.


You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/tQpS9jL97iI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.

John Syn

unread,
Sep 30, 2014, 4:33:07 PM9/30/14
to beagl...@googlegroups.com

From: Evan Davey <evan.j...@gmail.com>
Reply-To: "beagl...@googlegroups.com" <beagl...@googlegroups.com>
Date: Tuesday, September 30, 2014 at 12:54 PM
To: "beagl...@googlegroups.com" <beagl...@googlegroups.com>
Subject: Re: [beagleboard] Beaglebone Audio Cape Rev B audio Input

Thanks, I also managed to subsequently dig this up http://article.gmane.org/gmane.comp.hardware.beagleboard.user/63099.

I’ll probably try the same thing but inject the 1.8V from my bench supply.
Look at /arch/arm/boot/dts/am335x-bone-common-pinmux.dtsi line 220. These are the pins used to connect to the TLV320AIC3106EVM. The table below shows how I got this working. 

BBB TLV320AIC3106EVM LTC3603
P9 J17 J16 J15 J5  
1 GND 4       5 GND     GND
3 3V3         9 3V3 2 VOUT_EN  
5 VDD_5V0         3 +5V     VIN
7 SYS_5V0                  
10 SYS_RESETN     14 RESETN          
19 I2C2.SCL 16 SCL              
20 I2C2.SDA 20 SDA              
25 mcasp0_ahclkx 17 MCLK              
28 mcasp0_axr2 13 DIN              
29 mcasp0_fsx 7 WCLK              
30 mcasp0_axr0 11 DOUT              
31 mcasp0_aclkx 3 BCLK              
43 GND 18                
            7 1V8D     VOUT

Regards,
John

Evan Davey

unread,
Oct 1, 2014, 12:23:33 PM10/1/14
to beagl...@googlegroups.com
Hi John,

Thanks for the detailed info.

I am actually trying to route to the mono line but having difficulties, have you attempted to do that?  We have a custom board with an on-board TLV320AIC3106 but want to connect up the EVM to a stock BBB to isolate potential hardware issues (and we can’t easily access the mono line as it is connected directly to the microphone input of another component).  Using alsamixer, we’ve turned on the mono line, upped the DAC mixing volume to max and turned on DAC L mixing.  DAC L is set to output to the mixer (L1).  I was able to get this to work using the Windows software using what look to be similar / identical settings.

Ultimately, we are trying to loopback USB microphone input on one of the digital channels through to the MONO line, while at the same time routing LINE1L to the LEFT channel.  Hopefully this is possible.  It’s an inherited board design so we’re hoping to avoid hardware changes.

One thing we’ve been struggling to understand is what the audio routing section does in the device tree overlay so any advice you can give on that would be appreciated.

Best Regards,
Evan

John Syn

unread,
Oct 1, 2014, 1:42:11 PM10/1/14
to beagl...@googlegroups.com
Date: Tuesday, September 30, 2014 at 2:00 PM

To: "beagl...@googlegroups.com" <beagl...@googlegroups.com>
Subject: Re: [beagleboard] Beaglebone Audio Cape Rev B audio Input

Hi John,

Thanks for the detailed info.

I am actually trying to route to the mono line but having difficulties, have you attempted to do that?  We have a custom board with an on-board TLV320AIC3106 but want to connect up the EVM to a stock BBB to isolate potential hardware issues (and we can’t easily access the mono line as it is connected directly to the microphone input of another component).  Using alsamixer, we’ve turned on the mono line, upped the DAC mixing volume to max and turned on DAC L mixing.  DAC L is set to output to the mixer (L1).  I was able to get this to work using the Windows software using what look to be similar / identical settings.

Ultimately, we are trying to loopback USB microphone input on one of the digital channels through to the MONO line, while at the same time routing LINE1L to the LEFT channel.  Hopefully this is possible.  It’s an inherited board design so we’re hoping to avoid hardware changes.

One thing we’ve been struggling to understand is what the audio routing section does in the device tree overlay so any advice you can give on that would be appreciated.
Look at /Documentation/devicetree/bindings/sound/tlv320aic3x.txt

I think you need MONO_LOUT connected to LINE1L

See also /Documentation/devicetree/bindings/sound/davinci-evm-audio.txt

Regards,
John
Reply all
Reply to author
Forward
0 new messages