MIDI Through Port Number in ALSA Sequencer

Takashi Iwai tiwai at suse.de
Tue Jul 27 10:36:24 CEST 2021


On Sat, 24 Jul 2021 12:07:14 +0200,
rv71 at onet.eu wrote:
> 
> Hello, 
> 
> ALSA Sequencer always creates MIDI Through Port with the id 14:0. However, I can't find where it is defined that this special port will have this particular id/number. I also don't see any definition in seq.h regarding this ( unlike the timer and announce special port, for example). Can you explain? 

It's a fixed client number defined with SNDRV_SEQ_CLIENT_DUMMY in the
kernel header include/uapi/sound/asequencer.h (which will be installed
in /usr/include/sound/asequencer.h).

Oh, and now I noticed that the comment in sound/core/seq/seq_dummy.c
is with an old number that is no longer correct.  Will fix up :)


Takashi


More information about the Alsa-devel mailing list