On Tue, Jun 13, 2006 at 11:35:34AM +0200, Takashi Iwai wrote: > At Mon, 12 Jun 2006 17:57:23 -0400, > Lee Revell wrote: > > > > On Mon, 2006-06-12 at 13:03 +0200, Takashi Iwai wrote: > > > At Sat, 10 Jun 2006 12:59:15 -0400, > > > Lee Revell wrote: > > > > > > I found the problem by installing strace on the PPC board. alsa-lib is > > > > > > looking for its config files using the original path from the build > > > > > > host. Either my build environment is still incorrect or it's a bug - > > > > > > probably the former ;-) > > > > > > > > > > > > Once I am done maybe I will write an embedded ALSA HOWTO. > > > > > > > > > > > > Lee > > > > > > > > > > > > > > > > I had/have a very similar problem with the Dreamcast - I can only use > > > > > the oss emulation > > > > > > > > > > Asking about here didn't get me an answer so I await any answers to your > > > > > problem with anticipation... > > > > > > > > > > / # aplay -l > > > > > **** List of PLAYBACK Hardware Devices **** > > > > > aplay: device_list:230: control open (0): Invalid argument > > > > > > > > I don't know how I ever could have solved this without strace - the ALSA > > > > library is a twisty maze of function pointers. > > > > > > Yeah, plugins hell. > > > > > > > Have you looked into > > > > porting strace to your platform? > > > > > > The open/close of all config stuff is done only in src/input.c and > > > output.c. The open of device files is done via snd_open_device() > > > defined in include/local.h. So, checking these entries cover most of > > > open/close operations in alsa-lib. > > > > How can I build alsa-lib with a non-standard --prefix, but at runtime > > have it look for its config files in the standard location? IOW how do > > I prevent the --prefix from being prepended? > > How about specifying --datadir=/usr/share explicitly? > The default config directory is $DATADIR/alsa/alsa.conf. I just cross-compiled alsa-lib for SH4 on x86, and --prefix works without problems: CFLAGS="-Os -m4 -ml" ./configure --prefix=/usr --host=sh4-unknown-linux-gnu --target=sh4-unknown-linux-gnu --build=i686-pc-linux-gnu make DESTDIR=/var/chroot/sh install /var/chroot/sh is my target's NFSroot. shlinux # / aplay -l **** List of PLAYBACK Hardware Devices **** card 0: sh7760-ac97 [sh7760-ac97-0], device 0: sh7760-ac97-PCM [] Subdevices: 1/1 Subdevice #0: subdevice #0 -- ml. _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-devel