From: Takashi Iwai <tiwai@suse.de>
To: Georgi Georgiev <chutz@gg3.net>
Cc: alsa-devel@alsa-project.org
Subject: Re: snd-ioctl32 is failing on x86_64 (no crashes, just errors)
Date: Mon, 10 Jan 2005 12:26:28 +0100 [thread overview]
Message-ID: <s5h7jmlv82j.wl@alsa2.suse.de> (raw)
In-Reply-To: <20050108074026.GA8595@lion.gg3.net>
At Sat, 8 Jan 2005 16:40:27 +0900,
Georgi Georgiev wrote:
>
> 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)
It's SNDRV_CTL_IOCTL_ELEM_READ. Could you check which place returns
-EINVAL in _snd_ioctl32_ctl_elem_value in
alsa-kernel/core/ioctl32/ioctl32.c?
> > > 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.
Yes, but the code in 2.6.10 may crash your system.
(On x86-64, this might work, though...)
> 2.6.10 or older pretty much covers every kernel out there. What kernel
> version is it OK to test this with?
The one in latest alsa-driver (alsa-kernel) tree.
I think Linus's bk and mm trees have included already fixes.
Takashi
-------------------------------------------------------
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
next prev parent reply other threads:[~2005-01-10 11:26 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
2005-01-10 11:26 ` Takashi Iwai [this message]
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=s5h7jmlv82j.wl@alsa2.suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=chutz@gg3.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox