From: Federico Fuga <f.fuga@people.it>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: Inappropriate ioctl for device on alsalib with uclibc and arm platform
Date: Fri, 23 Nov 2007 18:49:17 +0100 [thread overview]
Message-ID: <4747129D.3020909@people.it> (raw)
In-Reply-To: <s5h8x4rj4cf.wl%tiwai@suse.de>
Takashi Iwai ha scritto:
>>> ioctl(4, USBDEVFS_HUB_PORTINFO, 0xbeab0768) = -1 ENOTTY (Inappropriate
>>>
>>>
>>> Looks like the definition of SNDRV_CTL_ICOTL_ELEM_WRITE doesn't match
>>> with the user-space and the kernel, most likely the size of struct
>>> snd_ctl_elem_value. This might be a word alignment issue.
>>>
> Well, I vaguely remember about the ARM cross-compiling problem.
> Checking the mail archive might help...
>
Hi,
I have solved that problem.
While compiling the kernel, the alsa modules (not the alsa-driver, but
that one included in the "vanilla" sources) are compiled with the option
-mabi=aapcs-linux.
When compiling the library, that option is missing, using, as default,
another abi and, evidently, another data alignment => another struct
size => another ioctl.
I send you that for reference, but I think that a more general solution
should be nice.
Best regards, ant thank you for your interest.
ing. Federico Fuga
prev parent reply other threads:[~2007-11-23 17:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-19 15:21 Inappropriate ioctl for device on alsalib with uclibc and arm platform Federico Fuga
2007-11-20 13:58 ` Takashi Iwai
2007-11-20 16:51 ` Federico Fuga
2007-11-21 10:11 ` Takashi Iwai
2007-11-23 17:49 ` Federico Fuga [this message]
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=4747129D.3020909@people.it \
--to=f.fuga@people.it \
--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.