From: bugtrack@alsa-project.org Subject: [ALSA - driver 0000791]: snd-ioctl32 is failing on x86_64 (no crashes, just errors) Date: Mon, 10 Jan 2005 20:38:03 +0100 Message-ID: <60cdc46857388f4193327c6c21576369@bugtrack.alsa-project.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from bugtrack.alsa-project.org (gate.perex.cz [82.113.61.162]) by alsa.alsa-project.org (ALSA's E-mail Delivery System) with ESMTP id 1D5A82A5 for ; Mon, 10 Jan 2005 20:38:04 +0100 (MET) Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org A NOTE has been added to this issue. ====================================================================== ====================================================================== Reported By: chutzimir Assigned To: ====================================================================== Project: ALSA - driver Issue ID: 791 Category: OTHERS Reproducibility: always Severity: major Priority: normal Status: new Distribution: Gentoo Kernel Version: 2.6.10 ====================================================================== Date Submitted: 01-07-2005 02:28 CET Last Modified: 01-10-2005 20:38 CET ====================================================================== Summary: snd-ioctl32 is failing on x86_64 (no crashes, just errors) Description: Running a 32-bit version of any application on my 64-bit 2.6.10 kernel fails with: $ amixer -c 0 amixer: Mixer hw:0 load error: Invalid argument for example. I have snd-ioctl32 loaded properly (lsmod shows it). Kernel is vanilla 2.6.10 and I just tried it with version 1.0.8rc2 of alsa-driver. Also, alsa-lib and alsa-utils version 1.0.8rc2 are installed in my 64-bit environment, and also in the 32-bit chroot env where I am trying to run amixer from. The distro is Gentoo, and I also have their alsa-headers-1.0.8_rc2 installed in the 32-bit chroot. ====================================================================== ---------------------------------------------------------------------- chutzimir - 01-10-05 20:38 ---------------------------------------------------------------------- Thanks go to Takashi san for the following fix: Index: alsa-kernel/core/ioctl32/ioctl32.c =================================================================== RCS file: /suse/tiwai/cvs/alsa/alsa-kernel/core/ioctl32/ioctl32.c,v retrieving revision 1.30 diff -u -r1.30 ioctl32.c --- alsa-kernel/core/ioctl32/ioctl32.c 15 Dec 2004 15:26:24 -0000 1.30 +++ alsa-kernel/core/ioctl32/ioctl32.c 10 Jan 2005 13:36:49 -0000 @@ -238,7 +238,7 @@ struct sndrv_aes_iec958 iec958; } value; unsigned char reserved[128]; -}; +} __attribute__((packed)); /* hmm, it's so hard to retrieve the value type from the control id.. */ Issue History Date Modified Username Field Change ====================================================================== 01-07-05 02:28 chutzimir New Issue 01-07-05 02:28 chutzimir Distribution => Gentoo 01-07-05 02:28 chutzimir Kernel Version => 2.6.10 01-10-05 20:38 chutzimir Note Added: 0003138 ====================================================================== ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt