All of lore.kernel.org
 help / color / mirror / Atom feed
From: Georgi Georgiev <chutz@gg3.net>
To: alsa-devel@alsa-project.org
Subject: Re: snd-ioctl32 is failing on x86_64 (no crashes, just errors)
Date: Sat, 8 Jan 2005 16:40:27 +0900	[thread overview]
Message-ID: <20050108074026.GA8595@lion.gg3.net> (raw)
In-Reply-To: <s5h1xcxy0tj.wl@alsa2.suse.de>

maillog: 07/01/2005-11:45:44(+0100): Takashi Iwai types
> At Thu, 6 Jan 2005 22:06:50 +0900,
> Georgi Georgiev wrote:
> > 
> > Running a 32-bit version of any application fails with:
> > 
> > amixer: Mixer hw:0 load error: Invalid argument
> > 
> > for example. I have snd-ioctl32 loaded properly (lsmod shows it).
> 
> Try strace amixer and see which ioctl failed.  Maybe it's the size
> mismatching of argument, or an unimplemented ioctl.

Here is the relevant part of a diff between the output of stracing 32
and 64-bit versions of amixer on 2.6.10:

--- amixer.2.6.10-y2.32.log     2005-01-08 16:07:48.000000000 +0900
+++ amixer.2.6.10-y2.64.log     2005-01-08 16:07:27.000000000 +0900
-ioctl(3, USBDEVFS_CONTROL, 0xffffcd4c)  = 0
-fcntl64(3, F_GETFL)                     = 0x2 (flags O_RDWR)
-fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
-ioctl(3, USBDEVFS_RELEASEINTERFACE, 0xffffcf90) = 0
-ioctl(3, USBDEVFS_RELEASEINTERFACE, 0xffffcf90) = 0
-ioctl(3, USBDEVFS_CONNECTINFO, 0xffffcc80) = 0
-ioctl(3, USBDEVFS_IOCTL, 0xffffc510)    = -1 EINVAL (Invalid argument)
-write(2, "amixer: ", 8)                 = 8
-write(2, "Mixer default load error: Invali"..., 42) = 42
-write(2, "\n", 1)                       = 1
+ioctl(3, USBDEVFS_CONTROL, 0x7fbfffeb7c) = 0
+fcntl(3, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE|0x8000)
+fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK|0x8000) = 0
+ioctl(3, USBDEVFS_RELEASEINTERFACE, 0x7fbfffed90) = 0
+ioctl(3, USBDEVFS_RELEASEINTERFACE, 0x7fbfffed90) = 0
+open("/etc/mtab", O_RDONLY)             = 4
+fstat(4, {st_mode=S_IFREG|0644, st_size=1041, ...}) = 0
+mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a9556c000
+read(4, "/dev/hdc3 / reiserfs rw,noatime,"..., 131072) = 1041
+close(4)                                = 0
+munmap(0x2a9556c000, 131072)            = 0
+open("/proc/meminfo", O_RDONLY)         = 4
+fstat(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
+mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a9556c000
+read(4, "MemTotal:       768156 kB\nMemFre"..., 1024) = 600
+close(4)                                = 0
+munmap(0x2a9556c000, 4096)              = 0
+ioctl(3, USBDEVFS_CONNECTINFO, 0x7fbfffeac0) = 0
+ioctl(3, USBDEVFS_IOCTL, 0x7fbfffd980)  = 0
+ioctl(3, USBDEVFS_CONNECTINFO, 0x7fbfffeac0) = 0
+ioctl(3, USBDEVFS_IOCTL, 0x7fbfffd980)  = 0
+ioctl(3, USBDEVFS_IOCTL, 0x7fbfffd980)  = 0

Except for minor differences (like 0x7fbfffda40 instead of 0x7fbfffeac0,
etc.), the log from 2.6.7 was identical to the one from 2.6.10.

> > 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.
> 
> ALSA ioctl32 in 2.6.10 or older is buggy.  Try to avoid it.

Avoid using ioctl32? I don't have much of a choice since it doesn't work
anyway. It would be nice to get some sound on flash pages and wine,
though.

2.6.10 or older pretty much covers every kernel out there. What kernel
version is it OK to test this with?

-- 
*)   Georgi Georgiev   *) What hath Bob wrought?                       *)
(*    chutz@gg3.net    (*                                              (*
*)  +81(90)6266-1163   *)                                              *)


-------------------------------------------------------
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

  reply	other threads:[~2005-01-08  7:40 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-06 13:06 snd-ioctl32 is failing on x86_64 (no crashes, just errors) Georgi Georgiev
2005-01-07 10:45 ` Takashi Iwai
2005-01-08  7:40   ` Georgi Georgiev [this message]
2005-01-10 11:26     ` Takashi Iwai
2005-01-10 12:33       ` Georgi Georgiev
2005-01-10 13:39         ` Takashi Iwai
2005-01-10 16:15           ` Georgi Georgiev
2005-01-11 13:11             ` Takashi Iwai
2005-01-12  2:24               ` Georgi Georgiev
2005-01-12 11:20                 ` Takashi Iwai
2005-01-14  6:13                 ` Juergen Kreileder
2005-01-14 10:26                   ` Takashi Iwai
2005-01-14 10:59                     ` Juergen Kreileder
2005-01-14 11:01                       ` Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050108074026.GA8595@lion.gg3.net \
    --to=chutz@gg3.net \
    --cc=alsa-devel@alsa-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.