[alsa-devel] Cross compiling alsa-lib (again)

Adrian McMenamin lkmladrian at gmail.com
Mon Jan 7 00:42:40 CET 2008


Well, I searched through 96 weeks of archived alsa-devel postings to
get to this one:

http://article.gmane.org/gmane.linux.alsa.devel/37120

(Which shows I am doing the right thing in any case.)

This post recommends this:

CFLAGS="-Os -m4 -ml" ./configure --prefix=/usr
--host=sh4-unknown-linux-gnu --target=sh4-unknown-linux-gnu
--build=i686-pc-linux-gnu

I admit to not using the additional cflags stuff before, but even if I use this:

CFLAGS="-Os -m4 -ml" ./configure --host=sh4-linux --prefix=/usr
CC=/home/adrian/dreamy-linux/buildroot/build_sh4/staging_dir/bin/sh4-linux-gcc
--disable-python --disable-rawmidi --enable-static
--with-confdir=/home/adrian/dreamy-linux/buildroot/project_build_sh4/dreamcast/root/usr/share/alsa
 --disable-mixer --enable-static=yes --enable-shared=no
--target=sh4-linux --build=i686-linux

Followed by:

make and
make DESTDIR=/home/adrian/dreamy-linux/buildroot/project_build_sh4/dreamcast/root
install

I still get this:

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: AICA [AICA], device 0: AICA PCM [AICA PCM]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Followed by:

$ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)

$ aplay /aine-email.wav
Playing WAVE '/aine-email.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono
ALSA lib pcm_plug.c:773:(snd_pcm_plug_hw_refine_schange) Unable to
find an usable access for '(null)'
aplay: set_params:895: Access type not available

$ aplay -D hw:0,0 /aine-email.wav
Playing WAVE '/aine-email.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono
aplay: set_params:895: Access type not available

Just as before. Any clues?


More information about the Alsa-devel mailing list