From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Pearson Subject: Re: Problems with 32 bit apps on 64 bit OS using dmix and snd-ioctl32 Date: Wed, 05 Sep 2007 17:54:35 +0100 Message-ID: <46DEDF4B.7050108@moving-picture.com> References: <46DE8EB0.90208@moving-picture.com> <46DEBF69.6070307@moving-picture.com> <46DECCEA.4060306@moving-picture.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from moving-picture.com (mpc-26.sohonet.co.uk [193.203.82.251]) by alsa0.perex.cz (Postfix) with ESMTP id A57D810383B for ; Wed, 5 Sep 2007 18:54:35 +0200 (CEST) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Takashi Iwai Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org Takashi Iwai wrote: >> >>OK, I'll do a bit more poking about to see if I can get 1.0.15rc1 to >>build ... >> >>Thanks >> >>James Pearson >> >>Configure output: >> >># ./configure --with-redhat=yes > > > The output looks OK to me. > Does the patch (to alsa-driver tree) fix the problem? > > > Takashi > > diff -r adfe4179d670 misc/ac97_bus.c > --- a/misc/ac97_bus.c Fri Aug 31 12:22:35 2007 +0200 > +++ b/misc/ac97_bus.c Wed Sep 05 18:09:42 2007 +0200 > @@ -1,1 +1,3 @@ > +#include > +#include > #include "../alsa-kernel/ac97_bus.c" Yes ... I did something similar - copied in ../alsa-kernel/ac97_bus.c and patched with alsa-driver-1.0.13/pci/ac97/ac97_bus.patch - which makes it compile - it bombs out later on some of the soc/ code - but as nothing similar exists in 1.0.13, I just skipped that with 'make -i' ... However, with these 1.0.15rc1 modules installed, and using alsa-lib-1.0.15rc1, I get exactly the same problem with 32 bit apps: Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono aplay: pcm_write:1268: write error: Invalid argument amd dmesg has: ioctl32(aplay:6228): Unknown cmd fd(3) cmd(40045402){00} arg(ffffac98) on /dev/snd/timer ioctl32(aplay:6228): Unknown cmd fd(5) cmd(c008551a){00} arg(0806ccd0) on /dev/snd/controlC0 ioctl32(aplay:6228): Unknown cmd fd(5) cmd(c008551b){00} arg(0806ccd0) on /dev/snd/controlC0 ioctl32(aplay:6228): Unknown cmd fd(3) cmd(000054a0){00} arg(00000325) on /dev/snd/timer James Pearson