From: Thomas Rabe <raven@drehmoment.org>
To: alsa-devel@lists.sourceforge.net
Cc: us428@drehmoment.org
Subject: questions about usbmidi
Date: Wed, 09 Apr 2003 15:01:05 +0200 [thread overview]
Message-ID: <3E941991.7080000@drehmoment.org> (raw)
hello,
I try to hack a little bit on Karstens tascam-us428 alsa patch and have
some problems to integrate usbmidi (usbaudio works). in the patch
(written for alsa rc3?) this was done with:
8<-----------------------------------------------------------
static int snd_us428_create_usbmidi( snd_card_t* card )
{
#if defined(CONFIG_SND_SEQUENCER) || defined(CONFIG_SND_SEQUENCER_MODULE)
static snd_usb_audio_quirk_t quirk = {
.vendor_name = "TASCAM",
.product_name = "US-428",
.ifnum = 0,
.endpoints = {{
.epnum = 6,
.out_cables = 3,
.in_cables = 3
}}
};
snd_seq_device_t *seq_device;
snd_usb_midi_t *umidi;
int err;
err = snd_seq_device_new( card, us428( card)->chip.next_seq_device,
SNDRV_SEQ_DEV_ID_USBMIDI,
sizeof(snd_usb_midi_t), &seq_device);
if (err < 0)
return err;
us428( card)->chip.next_seq_device++;
strcpy(seq_device->name, card->shortname);
umidi = (snd_usb_midi_t *)SNDRV_SEQ_DEVICE_ARGPTR(seq_device);
umidi->chip = &us428( card)->chip;
umidi->ifnum = 0;
umidi->quirk = &quirk;
umidi->seq_client = -1;
#endif
return 0;
}
8<------------------------------------------------------------------
i changed this to:
8<----------------------------------------------------------------
static int snd_us428_create_usbmidi( snd_card_t* card )
{
#if defined(CONFIG_SND_SEQUENCER) || defined(CONFIG_SND_SEQUENCER_MODULE)
static snd_usb_audio_quirk_t quirk = {
.vendor_name = "TASCAM",
.product_name = "US-428",
.ifnum = 0,
.type = QUIRK_MIDI_FIXED_ENDPOINT,
.data = & (const snd_usb_midi_endpoint_info_t) {
.out_ep =0x06,
.in_ep = 0x86,
.out_cables = 0x003,
.in_cables = 0x003
}
};
int err;
err = snd_usb_create_midi_interface(&us428( card)->chip, us428(
card)->chip.dev->actconfig->interface , &quirk);
if (err < 0)
return err;
#endif
return 0;
}
8<--------------------------------------------------------------------
but if i insert the module with modprobe i get segfault + kernel oops.
what should be wrong?
is it a good idea to link against usbmidi.o? (the us428 is non standard
audio/midi device).
btw: karstens original code is available at
http://hal9000.drehmoment.org/tascam
Greetings,
Thomas Rabe.
-- mail: raven at drehmoment dot org
-- home: http://hal9000.drehmoment.org
-- more: http://drehmoment.org
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
next reply other threads:[~2003-04-09 13:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-09 13:01 Thomas Rabe [this message]
2003-04-09 14:34 ` questions about usbmidi Clemens Ladisch
2003-04-09 16:08 ` Thomas Rabe
2003-04-10 6:45 ` Clemens Ladisch
2003-04-10 7:29 ` Thomas Rabe
2003-04-10 10:47 ` Clemens Ladisch
-- strict thread matches above, loose matches on Subject: below --
2003-04-10 14:38 Thomas Rabe
2003-04-10 15:38 ` Clemens Ladisch
2003-04-10 18:18 ` Thomas Rabe
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=3E941991.7080000@drehmoment.org \
--to=raven@drehmoment.org \
--cc=alsa-devel@lists.sourceforge.net \
--cc=us428@drehmoment.org \
/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.