On 7/18/07, ming qian <bruceharbin@xxxxxxxxx> wrote: > 1. recompile the kernel with the alsa driver. ( linux 2.6.17 > )(alsa-1.0.11rc4) > 2. cross compile alsa-lib-1.0.14 > 3. copy the asoundrc.txt in the alsa-lib package to ~/.asoundrc > 4. mknod /dev/snd/pcmC0D0p c 116 16 > mknod /dev/snd/controlC0 c 116 0 > mknod /dev/snd/hwC0D0 c 116 4 > > > and I write a very simple application, > when run it (as root), some error appeal. > > snd_pcm_open_noupdate() pcm.c 2144 : Unknown PCM HW:0,0 Install strace and strace your app. Chances are that alsa-lib is looking for its configuration in the wrong place (using the host path rather than the target path). Search alsa-devel archives for "embedded", many people have the same problem. The fix is probably to change your build command. Lee ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Alsa-user mailing list Alsa-user@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-user