: snd-ioctl32 is failing on x86_64 (no crashes, just errors)
The following issue has been RESOLVED.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=791>
======================================================================
Reported By: chutzimir Assigned To: tiwai ====================================================================== Project: ALSA - driver Issue ID: 791 Category: OTHERS Reproducibility: always Severity: major Priority: normal Status: resolved Distribution: Gentoo Kernel Version: 2.6.10 Resolution: fixed Fixed in Version: ====================================================================== Date Submitted: 01-07-2005 02:28 CET Last Modified: 01-12-2005 15:17 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.. */
----------------------------------------------------------------------
tiwai - 01-12-05 15:17
----------------------------------------------------------------------
Fixed on CVS.
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 01-12-05 15:17 tiwai Status new => resolved 01-12-05 15:17 tiwai Resolution open => fixed 01-12-05 15:17 tiwai Assigned To => tiwai 01-12-05 15:17 tiwai Note Added: 0003172
======================================================================
-------------------------------------------------------
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