Skip to contentSkip to conversation

: snd-ioctl32 is failing on x86_64 (no crashes, just errors)

ALSA - driver 0000791 [email protected] 1 participant 1 message Jan 10, 2005

lore
Share & tools
lore
#0 lore raw

A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=791>
======================================================================
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