On Sunday 05 January 2003 15.34, Jaroslav Kysela wrote:
> > 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.

Ok, thanks for the information, you are being most helpful.

I have another question. The rme96 driver provides two sub devices, one 
which is the card in adat mode, and one which is the card in spdif 
mode. These cannot be run at the same time.

If I had written the driver today, I suppose I would have had only one 
device, which supports 2 or 8 channels. Do you agree that it would be a 
better design, than the two sub-devices I have now? I don't think I 
will change that now though, if you don't insist that I should (I think 
it will be quite easy to do the change).

If I keep the two sub-devices, I suppose then returning EBUSY in the 
open function is the correct way if the card is busy running the ADAT 
subdevice when trying to open the SPDIF subdevice (or the other way 
around).

/Anders Torger


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