2010-10-05 03:01:32     ALSA snd_pcm_open error

Document created by Aaronwu Employee on Aug 23, 2013
Version 1Show Document
  • View in full screen mode

2010-10-05 03:01:32     ALSA snd_pcm_open error

Chandrashekhar Lavania (INDIA)

Message: 94179   

 

Hi,

 

I am creating a simple test code to read samples from the SSM2602 AudioCodec. I am using the Blackfin FDPIC toolchain for compiling and linking purposes.

 

 

 

When I execute my binary I get the following errors:

 

 

 

ALSA lib ../../../alsa-lib-1.0.18/src/pcm/pcm.c:2166:(snd_pcm_open_conf) symbol _snd_pcm_hw_open is not defined inside [builtin]

./AudioNugget_V1_1: ../../../alsa-lib-1.0.18/src/pcm/pcm.c: 1297: snd_pcm_readi: Assertion `pcm' failed.

Abort

 

 

My linker is linking to the libraries asound and dl.

 

How can this error be resolved?

 

Regards,

 

Shekhar.

 

PS: I am using BF527 with silicon revision 0.2

QuoteReplyEditDelete

 

 

2010-10-05 06:27:17     Re: ALSA snd_pcm_open error

Chandrashekhar Lavania (INDIA)

Message: 94189   

 

Hi,

 

I missed out the version..

 

I am using 2009R1.

 

Regards,

 

Shekhar

QuoteReplyEditDelete

 

 

2010-10-06 08:54:53     Re: ALSA snd_pcm_open error

Chandrashekhar Lavania (INDIA)

Message: 94272   

 

Hi,

 

The problem is solved...apparently.

 

I recompiled the kernel and gave the path " ../staging/lib " for the purpose of linking.

 

I basically used the method supplied here:

 

  docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:existing_libraries under the " Using Libs in external Application section"

 

By doing this my application was able to execute successfully.

 

 

 

I would like to point out that by doing this the linkage to libasound.so is established and not libasound.a(the original case), which  maybe the reason why there were errors at the execution time.

Attachments

    Outcomes