All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Enderborg <pme@ufh.se>
To: Jaroslav Kysela <perex@suse.cz>
Cc: "alsa-devel@lists.sourceforge.net" <alsa-devel@lists.sourceforge.net>
Subject: Re: Number of subdevices on midi.
Date: Thu, 04 Apr 2002 22:30:03 +0200	[thread overview]
Message-ID: <3CACB7CB.50CCD428@ufh.se> (raw)
In-Reply-To: Pine.LNX.4.33.0204040948190.891-100000@pnote.perex-int.cz

Jaroslav Kysela wrote:

> On Wed, 3 Apr 2002, Peter Enderborg wrote:
>
> > I have tryed to get some answer from Jaroslav about subdevices on midi.
> > Im trying to write a driver for midisport 8x8/s and that have 9 midi
> > ports. On my hack to figure out the protocol I use virmidi to handle the
> > interface to alsa. But virmidi only have four subdevices per device. I
>
> You can set up to eight virmidi devices (snd_midi_devs parameter controls
> this count). On rawmidi side, there is 16 rawmidi substreams (subdevices)
> per one virmidi device. These subdevices are used for event merging
> (write) and coping (read). On sequencer side, there is one client and
> one port connected to virmidi device.
>
> > need to see the driver for a midi interface that using all the 16
> > subdevices. Since I don't get answer from Jaroslav i guess he don't have
> > the time or my question is stupid. But can someone help me out? Where
> > should I look?
>
> There are two ways:
>
> 1) we can add a new mode to virmidi code which suppress copying and
>    merging and connects more sequencer ports per a sequencer client
>    to rawmidi subdevices to handle such devices
> 2) without any change - simply use more than one virmidi card and connect
>    your code to more clients:
>

That is what I do now. But it is not pretty. My plan is to do a real driver
not a virmidi user.


>
>         modprobe snd-virmidi snd_index=1,2 snd_enable=1,1 snd_midi_devs=8,8
>
>         (use index values as you wish)
>

Have you done that? This is what I get.

[root@pescadero pme]# /sbin/modprobe snd-virmidi snd_enable=1,1
snd_midi_devs=8,8
/lib/modules/2.4.16/misc/snd-virmidi.o: init_module: No such device
Hint: insmod errors can be caused by incorrect module parameters, including
invalid IO or IRQ parameters
/lib/modules/2.4.16/misc/snd-virmidi.o: insmod
/lib/modules/2.4.16/misc/snd-virmidi.o failed
/lib/modules/2.4.16/misc/snd-virmidi.o: insmod snd-virmidi failed


[root@pescadero pme]# /sbin/modprobe snd-virmidi snd_enable=1,1
snd_midi_devs=8
/lib/modules/2.4.16/misc/snd-virmidi.o: init_module: No such device
Hint: insmod errors can be caused by incorrect module parameters, including
invalid IO or IRQ parameters
/lib/modules/2.4.16/misc/snd-virmidi.o: insmod
/lib/modules/2.4.16/misc/snd-virmidi.o failed
/lib/modules/2.4.16/misc/snd-virmidi.o: insmod snd-virmidi failed


[root@pescadero pme]# /sbin/modprobe snd-virmidi snd_enable=1,1
snd_midi_devs=4,4
[root@pescadero pme]#

I also get the same with 5.

>
>         In this case, you should have available this routing table:
>
>         sequencer (client:port)         rawmidi (card:device:subdevice)
>         72:0                            1:0:any
>         73:0                            1:1:any
>         ....                            ....
>         79:0                            1:7:any
>         80:0                            2:0:any
>         ....                            ...
>         87:0                            2:7:any
>
>                                                 Jaroslav
>
> -----
> Jaroslav Kysela <perex@suse.cz>
> Linux Kernel Sound Maintainer
> ALSA Project  http://www.alsa-project.org
> SuSE Linux    http://www.suse.com
>
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/alsa-devel

--
foo!

  reply	other threads:[~2002-04-04 20:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-03 19:23 Number of subdevices on midi Peter Enderborg
2002-04-04  7:17 ` Michael Ashton
2002-04-04  8:01 ` Jaroslav Kysela
2002-04-04 20:30   ` Peter Enderborg [this message]
2002-04-07 20:22     ` Jaroslav Kysela
2002-04-08 15:02       ` Takashi Iwai
2002-04-09  6:36         ` Jaroslav Kysela

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3CACB7CB.50CCD428@ufh.se \
    --to=pme@ufh.se \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=perex@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.