All of lore.kernel.org
 help / color / mirror / Atom feed
* Device creation order
@ 2009-04-03  1:54 Lennart Poettering
  2009-04-03  7:12 ` Jaroslav Kysela
  0 siblings, 1 reply; 16+ messages in thread
From: Lennart Poettering @ 2009-04-03  1:54 UTC (permalink / raw)
  To: ALSA Development Mailing List

Heya!

PulseAudio listens for hotplugged audio devices via hal/udev. For each
card ALSA creates a bunch of device nodes in /dev. Before PA can open
the card it needs to make sure that all devices nodes of the card got
properly created. I.e. to make sure that surround sound and SPDIF
works it is not sufficient to wait until one PCM device is available,
but instead that *all* devices that belong to the card are available,
i.e. device nodes created with permissions and ACLs set up
correctly. Unfortunately there is no signal from udev/hal/kernel that
would tell me explicitly that all subdevices of a specific devices are
completely enumerated and device files created for. I have been
discussing this a bit with Kay Sievers and we came to the conclusion
that a simple fix would be if we could rely that the control
(i.e. /dev/snd/controlCxx) device is always the last device to be
created for a card.

Looking at the drivers this seems to be generally the case, so I was
wondering if I can rely on this? Do all drivers behave like this? Do
all drivers expose a control device? Can we officially declare it part
of the userspace API that the control device is the last one to be
created?

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net         ICQ# 11060553
http://0pointer.net/lennart/           GnuPG 0x1A015CC4

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2009-04-05 20:29 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-03  1:54 Device creation order Lennart Poettering
2009-04-03  7:12 ` Jaroslav Kysela
2009-04-03  7:20   ` Daniel Mack
2009-04-03  7:31     ` Jaroslav Kysela
2009-04-03  7:40       ` Daniel Mack
2009-04-03 10:34       ` Colin Guthrie
2009-04-03 11:51       ` Lennart Poettering
2009-04-03 11:43     ` Lennart Poettering
2009-04-03  7:38   ` Clemens Ladisch
2009-04-03  7:50     ` Jaroslav Kysela
2009-04-03 11:58       ` Lennart Poettering
2009-04-03 11:56     ` Lennart Poettering
2009-04-05 13:16       ` Wu Fengguang
2009-04-05 14:40         ` Lennart Poettering
2009-04-05 20:29           ` Mark Brown
2009-04-03 11:42   ` Lennart Poettering

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.