All of lore.kernel.org
 help / color / mirror / Atom feed
* Query devices in a non-blocking fashion
@ 2003-12-07 17:07 Arve Knudsen
  2003-12-07 18:40 ` Jaroslav Kysela
  0 siblings, 1 reply; 31+ messages in thread
From: Arve Knudsen @ 2003-12-07 17:07 UTC (permalink / raw)
  To: alsa-devel@lists.sourceforge.net

I'd like to be able to query the capabilities (number of channels, buffer 
size etc.) of ALSA devices in the system, even if they should be in use by 
some other process. The only current way to probe device capabilities is 
to open a pcm, and use snd_pcm_hw_params, correct? At least this is my 
current approach, but I'd like to query the devices without first 
acquiring exclusive access. If there is currently no way around acquiring 
a device for querying, maybe this requirement could be loosened in a 
future version of ALSA?

Regards

Arve Knudsen


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/

^ permalink raw reply	[flat|nested] 31+ messages in thread
* Re: Query devices in a non-blocking fashion
@ 2003-12-12 18:31 Andrew Burgess
  0 siblings, 0 replies; 31+ messages in thread
From: Andrew Burgess @ 2003-12-12 18:31 UTC (permalink / raw)
  To: alsa-devel

>> Perhaps this could be refined in a future design of ALSA?

>We all think in the same way, but there's no simple solution for this
>problem. I prefer to have such configuration information in an user-space 
>database accessed via an alsa-lib API. It's nothing for the kernel space.

It seems like a program could be run at boot time or immediately after a
module is loaded and could query the sound device and compute this database.
Then no conflicts are possible since noone else has it open yet.



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/

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

end of thread, other threads:[~2003-12-15  9:39 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-07 17:07 Query devices in a non-blocking fashion Arve Knudsen
2003-12-07 18:40 ` Jaroslav Kysela
2003-12-07 18:56   ` Arve Knudsen
2003-12-07 19:19     ` Paul Davis
2003-12-07 19:31       ` Arve Knudsen
2003-12-07 19:38         ` Jaroslav Kysela
2003-12-07 19:51           ` Arve Knudsen
2003-12-07 20:00             ` Jaroslav Kysela
2003-12-07 20:13               ` Arve Knudsen
2003-12-07 20:44                 ` Jaroslav Kysela
2003-12-07 21:11                   ` Arve Knudsen
2003-12-08 10:49                 ` Frank Barknecht
2003-12-08 11:08                   ` Arve Knudsen
2003-12-08 11:39                     ` Frank Barknecht
2003-12-08 11:52                       ` [Alsa-devel][OT]Was: " Arve Knudsen
2003-12-07 19:56           ` Paul Davis
2003-12-07 20:05             ` Jaroslav Kysela
2003-12-08 15:19       ` Giuliano Pochini
2003-12-08 15:54         ` Arve Knudsen
2003-12-08 16:57           ` Jaroslav Kysela
2003-12-08 17:43             ` Arve Knudsen
2003-12-14 16:17               ` Patrick Shirkey
2003-12-14 16:38                 ` Paul Davis
2003-12-14 16:46                 ` Arve Knudsen
2003-12-14 19:06                   ` Query devices in a non-blocking fashion / 3D capabilties Manuel Jander
2003-12-15  9:02                     ` Jaroslav Kysela
2003-12-15  8:59                   ` Query devices in a non-blocking fashion Jaroslav Kysela
2003-12-15  9:39                     ` Arve Knudsen
2003-12-10 11:26           ` Giuliano Pochini
2003-12-08 17:04         ` Paul Davis
  -- strict thread matches above, loose matches on Subject: below --
2003-12-12 18:31 Andrew Burgess

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.