On Sun, 7 Dec 2003, Arve Knudsen wrote:

> 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?

Nope. You ask for runtime information. This information can change due 
various hardware contraints so we cannot give you an useful information 
without blocking the device.

Anyway, auto-probing for devices is a bad idea. Let user to choose the
device (hw:X,Y or plughw:X,Y or some "abstract" name in a dialog box)
yourself. The hw:X,Y numbers can be determined using the control API in a
non-blocking way.

I think that we should provide the list of devices with a description via 
some interface in alsa-lib.

                                                Jaroslav

-----
Jaroslav Kysela <[EMAIL PROTECTED]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs


-------------------------------------------------------
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/
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to