running out of sequencer client numbers
Currently, sequencer client numbers of kernel drivers are allocated statically, with each card getting a range of eight numbers out of the 64..127 range.
This will no longer be possible when the maximum number of sound cards will is increased (which I'm going to do soon).
1) We could allocate client numbers dynamically (like for user space applications), but it's desirable to have stable client numbers because there are applications that identify ports by their client number instead of by their name.
2) We could reduce the number of sequencer clients per sound card, but this would limit us to 16 cards because we still need four clients per card.
3) We could reuse some of the numbers from the system range (0..63). Currently, only a few of those are actually used.
I intend to combine all three points: Allow only four sequencer clients per cards; give the first 16 card static numbers from the 64..127 range; cards >=17 get dynamically allocated numbers from the 16..47 range (0..15 and 48..63 still available for system clients).
Comments?
Clemens
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
At Fri, 18 Nov 2005 11:29:43 +0100,
Quoted 22 lines · Clemens Ladisch
Currently, sequencer client numbers of kernel drivers are allocated statically, with each card getting a range of eight numbers out of the 64..127 range.
This will no longer be possible when the maximum number of sound cards will is increased (which I'm going to do soon).
1) We could allocate client numbers dynamically (like for user space applications), but it's desirable to have stable client numbers because there are applications that identify ports by their client number instead of by their name.
2) We could reduce the number of sequencer clients per sound card, but this would limit us to 16 cards because we still need four clients per card.
3) We could reuse some of the numbers from the system range (0..63). Currently, only a few of those are actually used.
Quoted 5 lines
I intend to combine all three points: Allow only four sequencer clients per cards; give the first 16 card static numbers from the 64..127 range; cards >=17 get dynamically allocated numbers from the 16..47 range (0..15 and 48..63 still available for system clients).
This sounds reasonable from the compatibility viewpoint (although client 0 must be reserved for the system).
I think 0..15 should suffice for the static system clients. More should be assigned dynamically and probed in another way.
Takashi
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
Quoted 2 lines · Takashi Iwai
I think 0..15 should suffice for the static system clients. More should be assigned dynamically and probed in another way.
The dummy and OSS clients numbers (62 and 63) are currently part of the public API (SND_SEQ_CLIENT_xxx). However, I don't think anybody has ever used them.
Regards,
Clemens
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
At Fri, 18 Nov 2005 12:29:47 +0100,
Quoted 9 lines · Clemens Ladisch
Quoted 2 lines · Takashi Iwai
I think 0..15 should suffice for the static system clients. More should be assigned dynamically and probed in another way.
The dummy and OSS clients numbers (62 and 63) are currently part of the public API (
SND_SEQ_CLIENT_xxx). However, I don't think anybody has ever used them.
Ouch, let's drop them from the public header!
Takashi
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click