IMX53 QSB: ALSA Sound issue on target

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX53 QSB: ALSA Sound issue on target

907 Views
Swamy
Contributor III

Hello All,

 

I am running my application in IMX 53 QSB. I am not able to hear any sound.But if play mp3 songs I am able to hear...I guess it is something wrong with my application initializing the sound. Not sure..Please help

 

My system configuration:

$ cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.23.

 

In my application(.c file) the device is configured for,

playback_device = "plughw:0,0";
capture_device = "hw:1,0";

 

Speaker test shows.....

root@freescale$ /usr/bin/speaker-test

speaker-test 1.0.11rc2

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 3343 to 6687
Period size range from 1671 to 1672
Periods = 4
Buffer time size 2525
To choose buffer_size = 6684
To choose period_size = 1671
was set period_size = 1671
was set buffer_size = 6687
 0 - Front Left
Time per period = 2.853633

 

I am getting following error.... Request your help. Also i have attached asound.conf

 

Regards,

Swamy

 

...starting audio service
ALSA lib dlmisc.c:259:(snd1_dlobj_cache_get) symbol _snd_pcm_plug_open is not defined inside [builtin]
Error opening PCM playback device: -6, No such device or address
Retrying..
waiting for video service to end...
video_thread_loop: started
event_thread_loop: started
ALSA lib dlmisc.c:259:(snd1_dlobj_cache_get) symbol _snd_pcm_plug_open is not defined inside [builtin]
Retrying..
Maximum nr of retries reached.. Giving up..
9.18 frames/second

Original Attachment has been moved to: 603-asound.conf

Labels (1)
0 Kudos
3 Replies

579 Views
daiane_angolini
NXP Employee
NXP Employee

You may take a look on aplay source code in order to have some idea for your code.

0 Kudos

579 Views
Swamy
Contributor III

Thanks for the response..

Could you please tell me what all the libraries I need to install. Currently I have taken alsa-lib-1.0.24.1.tar.bz2  and cross compiled for ARM and I am using libasound.a for my application which is a Navigation module.

 

However if I use aplay -D plughw:0,0 test.wav, I am able to hear the sound.

 

Please suggest...

Regards,

Swamy

0 Kudos

579 Views
RandyKrakora
NXP Employee
NXP Employee
Are you sure you have all the dependent libraries installed?
0 Kudos