All of lore.kernel.org
 help / color / mirror / Atom feed
From: Georgi Georgiev <chutz@gg3.net>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: snd-ioctl32 is failing on x86_64 (no crashes, just errors)
Date: Mon, 10 Jan 2005 21:33:42 +0900	[thread overview]
Message-ID: <20050110123342.GA243173@lion.gg3.net> (raw)
In-Reply-To: <s5h7jmlv82j.wl@alsa2.suse.de>

maillog: 10/01/2005-12:26:28(+0100): Takashi Iwai types
> At Sat, 8 Jan 2005 16:40:27 +0900, Georgi Georgiev wrote:
> 
> 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?

It says:

        /* FIXME: indirect access is not supported */
        if (data->indirect) {
                err = -EINVAL;
                goto __end;
        }

There is another one shortly after this:

        switch (type) {
	...
        default:
                printk(KERN_ERR "snd_ioctl32_ctl_elem_value: unknown type %d\n", type);
                err = -EINVAL;
                goto __end;
        }

Seeing the printk I checked my logs:

Jan 10 21:08:24 lion ioctl32(amixer:243138): Unknown cmd fd(3) cmd(c2c45512){02} arg(ffffc610) on /dev/snd/controlC0
Jan 10 21:08:27 lion ioctl32(amixer:243139): Unknown cmd fd(3) cmd(c2c45512){02} arg(ffffc600) on /dev/snd/controlC0
Jan 10 21:21:06 lion ioctl32(amixer:243280): Unknown cmd fd(3) cmd(c2c45512){02} arg(ffffc670) on /dev/snd/controlC0
Jan 10 21:21:09 lion ioctl32(amixer:243281): Unknown cmd fd(3) cmd(c2c45512){02} arg(ffffc670) on /dev/snd/controlC0

though the error message is quite different than the printk above, it
could still be helpful.

I also don't see any differences between ioctl32.c from CVS and
1.0.8rc2. CVS version is at rev.1.26 and tagged as v1-0-8rc1.

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

The most important point that I did not get -- your advice about
avoiding ioctl32 is a different point of concern, that is completely
unrelated to the current problem, is it? In case this sounded rude --
advice is appreciated. Looked into it (I actually read a few reports
from sparc people whose machines ioctl32 broke, before submitting mine),
and if my machine ever crashes, I'll first upgrade the kernel and then
submit bugreports. But I don't have to worry about it until (if ever) my
machine hangs, right?

-- 
|    Georgi Georgiev   |  Zounds! I was never so bethumped with        |
|     chutz@gg3.net    |  words since I first called my brother's      |
|   +81(90)6266-1163   |  father dad. -- William Shakespeare, "Kind    |
|  ------------------- |  John" er                                     |


-------------------------------------------------------
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-10 12:33 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
2005-01-10 12:33       ` Georgi Georgiev [this message]
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=20050110123342.GA243173@lion.gg3.net \
    --to=chutz@gg3.net \
    --cc=alsa-devel@alsa-project.org \
    --cc=tiwai@suse.de \
    /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.