All of lore.kernel.org
 help / color / mirror / Atom feed
From: Werner Van Belle <werner@yellowcouch.org>
To: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
Subject: Third time: Unlink PCM resource ?
Date: Mon, 25 May 2009 17:30:19 +0200	[thread overview]
Message-ID: <4A1AB98B.9010604@yellowcouch.org> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1448 bytes --]

Hello,

This is the third time I tried to get information on the same topic but
there has been no response. Since it is crucial for me to get this to
work, I really would appreciate your input. If necssary I can provide
further documentation. The problem is as follows: if a process which
opened a DSP device forks of a new process, then this child will have
the same handle towards the DSP. What I now want to do is to release the
handle in the child without closing the device for the parent as well.
So essentially the sequence below illustrates the problem if one is
unable to 'unlink' a dsp device.

a- parent process creates and open dsp device
b- parent process forks of a child 1. Child 1 has access to the same dsp
device
c- parent process closes the DSP device
d- client process can no longer write to the DSP device (these are
already odd semantics, but okay, can live with it)
e- parent process forks of a second child. Child 2 has no dsp device
f- Child 2 tries to open the DSP device. This fails because the device,
although closed, is not released yet by Child 1.

Is this normal behavior ?
Is there some rigid documentation on the closing and sharing semantics
of pcm devices ?
Is there a way to unlink a device without closing it ?

If this is the wrong mailinglist, then who should I contact regarding
these erratic semantics ?

Wkr,

-- 
Dr. Werner Van Belle
http://werner.yellowcouch.org/



[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

             reply	other threads:[~2009-05-25 15:28 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-25 15:30 Werner Van Belle [this message]
2009-05-25 15:43 ` Third time: Unlink PCM resource ? Takashi Iwai
2009-05-25 17:52   ` Werner Van Belle
2009-05-25 18:09     ` Jaroslav Kysela
2009-05-25 18:15       ` Werner Van Belle
2009-05-25 18:18     ` Takashi Iwai
2009-05-25 18:27       ` Werner Van Belle
2009-05-25 18:31         ` Jaroslav Kysela
2009-05-25 18:38           ` Takashi Iwai
2009-05-25 18:34         ` Takashi Iwai
2009-05-25 18:39           ` Jaroslav Kysela
2009-05-25 19:36             ` Werner Van Belle
2009-05-25 21:54               ` Jaroslav Kysela
2009-05-25 22:29                 ` Werner Van Belle
2009-05-26  5:53             ` Takashi Iwai
2009-05-26  8:14               ` Werner Van Belle
2009-05-26  8:17                 ` Takashi Iwai
2009-07-07 15:06                   ` Takashi Iwai
2009-05-25 21:25           ` Werner Van Belle

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=4A1AB98B.9010604@yellowcouch.org \
    --to=werner@yellowcouch.org \
    --cc=alsa-devel@alsa-project.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.