[alsa-devel] [PATCH 0/5] ALSA: firewire-tascam: add MIDI functionality

Jonathan Woithe jwoithe at just42.net
Tue Oct 13 12:02:28 CEST 2015


On Tue, Oct 13, 2015 at 06:36:32PM +0900, Takashi Sakamoto wrote:
> On Oct 13 2015 07:20, Jonathan Woithe wrote:
> >On Mon, Oct 12, 2015 at 02:48:16PM +0200, Stefan Richter wrote:
> >>On Oct 12 Takashi Sakamoto wrote:
> >>>Although TASCAM FireWire series has physical controls, this patchset
> >>>doesn't support them. I think some facilities are required to enable this
> >>>functionality:
> >>>  * handling MIDI messages on virtual MIDI ports by this driver
> >>>  * handling status and control messages in isochronous packet by this
> >>>    driver
> >>
> >>As a side note, AFAIR, RME devices encapsulate status in their isochronous
> >>stream too... or was it MOTU?
> >
> >Both do, but in completely different ways for different purposes. ...
> 
> I don't know the reason that you're interested in it, while I'm not
> currently interested in it.

My comment was to clarify things for Stefan.  Stefan was simply making the
observation that Tascam are not the only devices which send non-audio data
through iso packets.

> When the status and control messages are handled by the drivers, consumers
> are userspace applications. Userspace applications perform some reactions
> against the status and control messages. Most of the reactions are archieved
> via fw character devices.

That depends on what those reactions are.  But yes, in *most* cases it's
userspace that will be most interested in these data.

> When considering about userspace applications, permissions of fw character
> devices are important.

For sure.  However, for cases like MOTU, where mixer control setting updates
are pushed to the computer by the device in response to front panel actions,
there will be a need for userspace to somehow tap into this flow.  Userspace
could not gain access to the iso stream because the kernel will have control
over that.  Or can userspace tap into iso streams that have been initiated
by the kernel (that is surprising to me if it's true).

> If possible, I'd like to add enough rules to udevd, including RME and MOTU
> models before working for them.

I have some ideas about how both of these device families might fit in.  No
code yet, unfortunately, due to an unexpectedly busy year.  Note that the
issue of non-audio data extraction from the iso stream to user space isn't
relevant for RME: it's only MOTU which will require this.  In any case, it
goes beyond udevd permissions.

> I'm glad to get your help for these issues, Stefan and Jonathan.

Now that there is functional infrastructure within ALSA to build on I am
hoping to start experimenting with RME and MOTU devices over the next few
months by porting my FFADO streaming drivers to ALSA.

Regards
  jonathan


More information about the Alsa-devel mailing list