On 7/19/10, John Simpson john@swajime.com wrote:
On 7/19/10, John Simpson john@swajime.com wrote:
On 7/19/10, Clemens Ladisch clemens@ladisch.de wrote:
John Simpson wrote:
[1|user@Nokia-N810-43-7|~/alsa-lib-1.0.23/test]cc -lasound control.c -o control
These test programs can be compiled with "make check".
Thanks! I needed that :-D Works good on my ubuntu system.
[1|user@Nokia-N810-43-7|~/alsa-lib-1.0.23/test]./control PCM next device error: Inappropriate ioctl for device
On embedded devices, this usually happens when the library is not compiled with the same machine architecture options as the kernel, which makes some structures have a different size due to different sizes for 'long' or different alignment.
Somewhere in the mess, I bricked my n810. I'm trying this time with https://garage.maemo.org/plugins/scmsvn/viewcvs.php/trunk/alsa-lib/test/?roo... but I'm still having no success ( see inquiry at https://garage.maemo.org/pipermail/dsp-alsa-user/2010-July/000002.html )
Still no luck. I went through the complete process again with 1.0.25. It bricks my n810. :-( I logged the install process at http://www.swajime.com/n810/alsa-lib.log
I don't see anything that I've done wrong ?
I think I'm getting closer. I believe I've found the right version of the alsa-lib for the n810 ( finally :-| ). However I am still getting the ioctl error instead of sound. :-(
The short version: [1|user@Nokia-N810-43-7|~/src]apt-get source libasound2 [1|user@Nokia-N810-43-7|~/src/alsa-lib-1.0.14sa]./configure [1|user@Nokia-N810-43-7|~/src/alsa-lib-1.0.14sa]make [1|user@Nokia-N810-43-7|~/src/alsa-lib-1.0.14sa]sudo make install [1|user@Nokia-N810-43-7|~/src/alsa-lib-1.0.14sa]make check [1|user@Nokia-N810-43-7|~/src/alsa-lib-1.0.14sa]ls acinclude.m4 ChangeLog config.sub debian include ltconfig Makefile.in NOTES utils aclocal.m4 config.guess configure depcomp INSTALL ltmain.sh MEMORY-LEAK src version alsalisp config.log configure.in doc install-sh Makefile missing test aserver config.status COPYING hgcompile libtool Makefile.am modules TODO
[1|user@Nokia-N810-43-7|~/src/alsa-lib-1.0.14sa]cd test
[1|user@Nokia-N810-43-7|~/src/alsa-lib-1.0.14sa/test]ls control Makefile midiloop oldapi pcm_min.c queue_timer seq timer.c control.c Makefile.am midiloop.c oldapi.c pcm_min.o queue_timer.c seq.c timer.o control.o Makefile.in midiloop.o oldapi.o pcm.o queue_timer.o seq-decoder.c latency midifile.3 namehint pcm playmidi1 rawmidi seq.o latency.c midifile.c namehint.c pcm.c playmidi1.c rawmidi.c seq-sender.c latency.o midifile.h namehint.o pcm_min playmidi1.o rawmidi.o timer
[1|user@Nokia-N810-43-7|~/src/alsa-lib-1.0.14sa/test]./control Soundcard #1: card - 0 id - 'EAC' driver - 'EAC' name - 'OMAP24xx EAC' longname - 'OMAP24xx EAC with codec TLV320AIC33' mixername - 'TLV320AIC33' components - '' PCM next device error: Inappropriate ioctl for device RAWMIDI next device error: Inappropriate ioctl for device
[1|user@Nokia-N810-43-7|~/src/alsa-lib-1.0.14sa/test]./pcm_min Playback open error: Inappropriate ioctl for device
[1|user@Nokia-N810-43-7|~/src/alsa-lib-1.0.14sa/test]cat ../../alsa-lib_1.0.14sa-2maemo2.dsc Format: 1.0 Source: alsa-lib Version: 1.0.14sa-2maemo2 Binary: lib32asound2-dev, lib64asound2, lib32asound2, libasound2-dev, libasound2, libasound2-doc, libasound2-dbg, lib64asound2-dev Maintainer: Debian ALSA Maintainers pkg-alsa-devel@lists.alioth.debian.org Architecture: any Standards-Version: 3.7.2 Build-Depends: debhelper (>= 4.2.32), quilt (>= 0.40), autotools-dev, doxygen, libc6-dev-powerpc [ppc64], libc6-dev-i386 [amd64], libc6-dev-ppc64 [powerpc], libc6-dev-s390x [s390], libc6-dev-sparc64 [sparc], lib32gcc1 [amd64 ppc64], libc6-dev (>= 2.5) [armel] Vcs-Browser: http://svn.debian.org/wsvn/pkg-alsa/trunk/alsa-lib/ Uploaders: Jordi Mallach jordi@debian.org, Mikael Magnusson mikma@users.sourceforge.net, Elimar Riesebieter riesebie@lxtec.de, Marc-Andre Lureau marc-andre.lureau@nokia.com Vcs-Svn: svn://svn.debian.org/pkg-alsa/trunk/alsa-lib Files: 5542a18a1479e4de4b9890e30e94588e 1099165 alsa-lib_1.0.14sa.orig.tar.gz fc02aa3dbf2f66fb090e02ada703cc1d 47455 alsa-lib_1.0.14sa-2maemo2.diff.gz
I logged the complete install process at http://www.swajime.com/n810/alsa-lib_1.0.14sa-2maemo2.log
Again ... any help will be appreciated.