From: Clemens Ladisch <clemens@ladisch.de>
To: "Lorenzo Fundaró" <lfundaro@etu.utc.fr>
Cc: alsa-devel@alsa-project.org
Subject: Re: about ioctl calls
Date: Thu, 26 May 2011 12:28:03 +0200 [thread overview]
Message-ID: <4DDE2B33.1090809@ladisch.de> (raw)
In-Reply-To: <BANLkTi=NFkcwxPiwULYxtLGv+=dgjXgFdg@mail.gmail.com>
Lorenzo Fundaró wrote:
> I have a program that constantly make ioctl calls like this:
>
> ioctl(4, 0x4122, 0x8b703)
> ioctl(4, 0x4122, 0xbfb65768)
>
> I suspect that this call pertains to ALSA, since I have straced other
> programs that play music and they always use in the ioctl request field the
> 0x4122 code.
This is SNDRV_PCM_IOCTL_HWSYNC.
> I am interested on finding out what's in the third argument of the ioctl
> call,
> is it a sort of struct that contains the audio samples ?
The samples and some control structures are in mmap()ed memory.
This ioctl tells the kernel to synchronize and update hardware status.
There is no third parameter; the values shown are random stack contents.
Regards,
Clemens
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
next prev parent reply other threads:[~2011-05-26 10:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-26 10:07 about ioctl calls Lorenzo Fundaró
2011-05-26 10:28 ` Clemens Ladisch [this message]
2011-05-26 12:37 ` Lorenzo Fundaró
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=4DDE2B33.1090809@ladisch.de \
--to=clemens@ladisch.de \
--cc=alsa-devel@alsa-project.org \
--cc=lfundaro@etu.utc.fr \
/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.