From: Maciej Hrebien <m_hrebien@wp.pl>
To: linux-assembly@vger.kernel.org
Subject: Re: OSS ioctls...
Date: Wed, 22 Dec 2004 22:45:03 +0100 [thread overview]
Message-ID: <41C9EADF.6A4143AD@wp.pl> (raw)
In-Reply-To: opsje7k0wruqea3r@sucks.airplane.fire
Richard Cooper wrote:
>
> The only thing I could think might be wrong is that the ioctl numbers are
> wrong, but I looked in soundcard.h and it says SNDCTL_DSP_GETFMTS is ('P',
> 11) which best I can figure has to be $500B.
OK, i have had time to check it... SNDCTL_DSP_GETFMTS is eq to
_SIOR('P',11,int) which evaluates to:
((int)(SIOC_OUT|((sizeof(t)&SIOCPARM_MASK)<<16)|(x<<8)|y))
where x='P', y=11, t=int
Look soundcard.h for more details. Hope this helps and sorry for 3 posts
-
somethimes it happens ;)
--
Maciej Hrebien
next prev parent reply other threads:[~2004-12-22 21:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-22 14:47 Where's Konstantin? Frank Kotler
2004-12-22 17:44 ` OSS ioctls Richard Cooper
2004-12-22 20:40 ` Maciej Hrebien
2004-12-22 21:20 ` Maciej Hrebien
2004-12-23 0:18 ` Richard Cooper
2004-12-23 9:25 ` Maciej Hrebien
2004-12-22 21:45 ` Maciej Hrebien [this message]
2004-12-22 23:58 ` Where's Konstantin? Brian Raiter
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=41C9EADF.6A4143AD@wp.pl \
--to=m_hrebien@wp.pl \
--cc=linux-assembly@vger.kernel.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.