audio issue in beagle board

Hi,

I am working on rev b7 beagle board.

using arecord and aplay, we are able to test the mic-in and speaker.

Then, i ported linphone to the beagle board.

Then i tested voice chat having between PC and linphone on beagle board.

the result is,

  1. able to hear the voice at beagle board whatever user speaks at PC.
  2. not able to hear the voice at PC whatever user speaks from beagle board.

Thus twl4030 codec driver full deplex.

when i debug linphone, stereo mode is 0 and channels set is 1.

the output of aplay and acrecord , strero mode is 1 and channels set is 2.

where to get the aplay and arecord code for beagle board.

Thanks and Regards,
HarishKumar.V

HI Harishkumar,

I am also porting linphone on beagleboard.
From your mail it looks like you can able to hear the voice from PC to
beagle baord.

Can you please provie the following information,which will be helpful
for me
1.What is the version of linphone you have ported?
2.Did you build it using OpenEmbedded(OE) or cross compiled?

Regards,
Madhav

Hi,

now, it perfectly works, both the audio and video.

the problem is solved. its due to codec optimization for arm.

thanks and regards,
HarishKumar.V

Hi Harish:

I have BB Rev.C2 board and u-boot,x-load and kernel sources from
http://code.google.com/p/beagleboard/wiki/BeagleSourceCode
Tool chain installed is 2007q3 from CodeSourcery.
I am newbie to OMAP and BB.
I would like to develop a simple application that can play wav file or
small amount of predefined data from buffer.
Could you please help me
1. what are the options I have to select in kernel with " make
menuconfig "
2. Is there any driver available in kernel
3. what is driver and where it is in kernel
4. Is there any guidelines/ docs available for audio codec to use
5. what are the things to be done in application and kernel

Aslo
I downloaded pre-built images for validation from
http://code.google.com/p/beagleboard/wiki/BeagleboardRevCValidation.
I followed the instructions given in the above link. I tried to
validate Audio-In and Audio-Out in BB but I did not hear audio from
Audio-Out line of BB but it is only noise sound.
Of course I also tried the recorded file play in PC but nothing
audible it is only noise...
If I try mplayer then I can hear audio.
Are you having any idea what could be the problem ?
I have connected the UART cable to PC, SDcard to BB, Audio-In cable
from PC and Audio-Out to self powered speakers.
Then I connected USB cable from OTG port of BB to Host port of PC
while pressing USER button and I followed the instructions given in
the above link.
Also I would like to have sources of pre-built images and kindly tell
me
1. how I can get those sources from windows PC ( some of the links
given are not active)
     http://git.gitorious.org/x-load-omap3/mainline.git
     http://git.gitorious.org/beagleboard/mainline.git
2. guide to build the sources
3. Can I use same toolchain arm-2007q3-51-arm-none-linux-gnueabi-i686-
pc-linux-gnu.tar.bz2 form codesourcery ? if any any other pls mention

TIA

Hi,

try to play a wav file using aplay from you BB.

#aplay file.wav

The audio should come.

Thanks and Regards,
HarishKumar.V

Hi ,
I tried to play .wav file but still I could not hear audio, it is
giving only noise.

I think the kernel from code.google is good enough to start for simple
wav file or small amount of predefined data from buffer to playback.
But I am NOT getting any inputs from the group to start simple
application which can play wav file.
For this to be done someone on this group should help me

1. what are the options I have to select in kernel with " make
menuconfig "
2. Is there any driver available in kernel
3. what is driver and where it is in kernel
4. Is there any guidelines/ docs available for audio codec to use
5. what are the things to be done in application and kernel

I believe someone can help me to move forward !!

TIA

try pcm

Hi,

try this link, it should work.

http://code.google.com/p/beagleboard/wiki/BeagleboardRevCValidation

Thanks and Regards,
HarishKumar.V

Hi,
I have followed the link given also tried pre-build images given in
the link but it also behaves same ( only NOISE).
( If I play mplayer /sample_video.avi I could hear audio. It confirms
that audio out on BB is fine )

I did the following after booting up the kernel

mmcinit
fatload mmc 0 0x80300000 uImage
setenv bootargs console=ttyS2,115200n8 ramdisk_size=8192 root=/dev/
ram0 rw rootfstype=ext2 initrd=0x81600000,8M nohz=off
fatload mmc 0 0x81600000 rd-ext2.bin
bootm 0x80300000

mount -t vfat /dev/mmcblk0p1 /mnt
cd /mnt

ls ( it lists the below files)
16khz.wav boot.scr mlo u-boot.bin x-load.bin
16khzpcm.bin hello-world rd-ext2.bin uImage

I tried .wav file by giving " aplay 16khz.wav " but it gives only
NOISE.
I tried pcm file by giving " aplay -t wav -c 2 -r 16000 -f S16_LE -v
16khzpcm.bin " but only NOISE

If I am doing anything wrong please correct me.

I appreciate your great help.

TIA

If mplayer plays audio then there is nothing that needs to be done in
the kernel.

The sound driver is called alsa. There is a also a library for writing
applications. Search for information on alsa.

David.

Hi,
if nothing needs to be done with kernel then why audio alone is not
playing ?
it would be great if someone clarify the same.
If I am doing anything wrong while trying to play .wav file please
correct me.

If mplayer plays audio then there is nothing that needs to be done in
the kernel.

The sound driver is called alsa. There is a also a library for writing
applications. Search for information on alsa.

What is library for writing applications that is available in kernel,
Is this separate from alsa ?
What is driver name and it's path in kernel ?
Is there any guidelines/ docs available for audio codec to use ?

I appreciate your great help.
TIA

Hi Harishkumar,
I´m currently testing linphone version 1.6 from OE, but I would like to try version 3.x for my application.
Could you please share some info about how to compile version 3.x or to get the pkg files?

I will really appreciate your help.

Regards,
Alex.