On Fri, 3 Jan 2003, Anders Torger wrote:

> I have noticed that some (most) low level drivers support multiple open, 
> that is a sound card which is already opened, can be opened again.

Yes, but hardware must support this feature (it must mix multiple streams 
in hardware and have appropriate amount of DMA engines).

> I noticed that also my rme96 driver supported this sort of, although it 
> probably does not feel very good about it. If the sound card is in ADAT 
> mode, it is not so good if it is reopened in SPDIF mode from another 
> application for example.
> 
> I'd like to just return -EBUSY if it is already open, is that ok?

If you pass value one to snd_pcm_new() - substream counts, then the 
midlevel code takes care about this constraint. No special code is 
required on the driver side.

                                                Jaroslav

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



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to