From: Shaju Abraham <shaju@multitech.co.in>
To: Paul Davis <pbd@op.net>
Cc: Takashi Iwai <tiwai@suse.de>, alsa-devel@lists.sourceforge.net
Subject: Re: Calling snd_pcm_oss_write directly.
Date: Wed, 24 Jul 2002 19:57:46 +0530 [thread overview]
Message-ID: <3D3EB962.EC2C947E@multitech.co.in> (raw)
In-Reply-To: 200207241129.g6OBTIbt000943@multitech.co.in
Hi all,
I took the advice and used write() from the other task. It
promptly returned with < 0 error.
I do not know how the oss emulation in ALSA happens, so I do not know what
exactly went wrong.
Any more suggestions are welcome.
Again, continuing my experiment with calling snd_pcm_oss_write
directly, I traced the crash to few fns called from fn snd_pcm_prepare in
pcm_native.c . These fns seem to be making few ioctls like
..._IOCTL_PREPARE and ..._IOCTL_DRAIN. (more fns name ..ioctl than
ioctl() call itself). what are these fns doing and is it normal that they
are called after snd_pcm_oss_write has already been called.
--shaju abraham
Paul Davis wrote:
> > I am in a situation where I intend to call snd_pcm_oss_write
> >directly.
>
> AFAIK, this is not a supported use of the alsa-lib API. There is no
> guarantee that your application will continue to work in future
> versions of alsa-lib.
>
> >What exactly happens is - the open and all the initial ioctl calls are
> >done by the oss application. But the write call of the oss application
> >is not done but it is done by some other task.
>
> there is still no reason to be using snd_pcm_<type>_<function> directly.
>
> if you insist on using the OSS API (a big error, IMHO) then you can
> just use the OSS API in the other task.
>
> --p
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
next parent reply other threads:[~2002-07-24 14:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200207241129.g6OBTIbt000943@multitech.co.in>
2002-07-24 14:27 ` Shaju Abraham [this message]
[not found] <200207201425.KAA12713@bromo.msbb.uc.edu>
2002-07-22 11:21 ` fix for missing symbol in snd-ymfpci.o Takashi Iwai
2002-07-24 10:17 ` Calling snd_pcm_oss_write directly Shaju Abraham
2002-07-24 11:39 ` Paul Davis
2002-07-24 18:10 ` Jaroslav Kysela
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=3D3EB962.EC2C947E@multitech.co.in \
--to=shaju@multitech.co.in \
--cc=alsa-devel@lists.sourceforge.net \
--cc=pbd@op.net \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox