Re: [linux-audio-dev] [ot] rawmidi && alsa

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] [ot] rawmidi && alsa
From: Knos (knos_AT_free.fr)
Date: Mon Apr 23 2001 - 14:05:22 EEST


[Frank Neumann <Frank.Neumann_AT_st.com>]
|
| Hi,
| knos_AT_free.fr wrote:
|
| > does midi / rawmidi devices work _at all_ with the current alsa-cvs?
| >
| > i always get returned EBUSY on my setup, I thought it may be some
| > misconfiguration of my own or some specific driver problem,
| > but I posted on alsa-dev and i've seen other posts and bug reports
| > about this problem not beeing answered.
| >
| > It may of course be an example of collective sillyness, but knowing
| > if the problem comes from me or the alsa drivers would help a lot..
| >
| > so i'd be happy to know if any of you manages to get access to the
| > rawmidi devices with current alsa(s)..
|
| I discovered the same problem over the weekend - wanted to rewrite a
| small OSS-based MIDI tool to work with ALSA (currently using
| 0.9.0beta3), but I had to discover that even the rawmidi example from
| the alsa-lib archive wouldn't compile (and changing some obvious
| constants didn't help me there - I did not follow the ALSA API
| development at all yet).
|
| Looks like the tools are a bit outdated compare to the actual driver/lib
| stuff..
|

Yes although the rawmidi api shoud be very very simple

here is a stupid program i made to test it:
<rawmidi.c------------------------------------------------------------->
#include <sys/asoundlib.h>

main()
{
    int err;
    snd_rawmidi_t* input;
    
    if( (err = snd_rawmidi_open(&input, NULL, "ININ",
                                O_RDONLY | SND_RAWMIDI_NONBLOCK)) < 0) {
        fprintf(stderr, "+/- %s\n", snd_strerror(err));
        exit(-1);
    }
    printf("midi opened.\n");
    snd_rawmidi_close(input);
}
<----------------------------------------------------------------------->

to make it work you need something like:

<~/.asoundrc------------------------------------------------------------>
rawmidi.ININ {
        type hw
        card 0
}
<----------------------------------------------------------------------->

it always stops with port busy. ...

| Sure, this should have been asked on alsa-devel, but since it has been
| raised here... :-}

yes i don't know what to do i haven't got any answer, i suppose they
know about it or its a typical stupid configuration error .. but i
can load the modules by hand, try with or without the sequencers module,
try only one card, it's always returning BUSY even with the virmidi
devices.

It's really the first time i'm frustrated by linux (in quite a few years
of use) perhaps because i just got my ibk 10control (nice controller box)
and was looking forward to play realtime with jmax + csound.

--
  n
++k


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Mon Apr 23 2001 - 14:30:17 EEST