All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH]: snd_seq_virmidi.c do not use running status for virmidi raw input
@ 2014-05-07 17:44 Ralf Beck
  2014-05-07 20:41 ` Clemens Ladisch
  0 siblings, 1 reply; 4+ messages in thread
From: Ralf Beck @ 2014-05-07 17:44 UTC (permalink / raw)
  To: alsa-devel

Rationale: Not every rawmidi alsa client (e.q. Bitwig) support running 
status on input.
There is also no need for running status inside a computer.

This patch disables the removal of the status byte when decoding 
snd_midi_event structures to a rawmidi bytestream

--- sound/core/seq/seq_virmidi.c.orig    2014-05-07 19:30:44.175914670 +0200
+++ sound/core/seq/seq_virmidi.c    2014-05-07 19:33:38.931906859 +0200
@@ -212,6 +212,7 @@ static int snd_virmidi_input_open(struct
          kfree(vmidi);
          return -ENOMEM;
      }
+        vmidi->parser->nostat = 1;
      vmidi->seq_mode = rdev->seq_mode;
      vmidi->client = rdev->client;
      vmidi->port = rdev->port;

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH]: snd_seq_virmidi.c do not use running status for virmidi raw input
  2014-05-07 17:44 [PATCH]: snd_seq_virmidi.c do not use running status for virmidi raw input Ralf Beck
@ 2014-05-07 20:41 ` Clemens Ladisch
  2014-05-08  6:00   ` Ralf Beck
  0 siblings, 1 reply; 4+ messages in thread
From: Clemens Ladisch @ 2014-05-07 20:41 UTC (permalink / raw)
  To: ralfbeck1, alsa-devel

Ralf Beck wrote:
> Rationale: Not every rawmidi alsa client (e.q. Bitwig) support running status on input.

Why does Bitwig use RawMIDI when it is only interested in the events?

Anyway, running status is part of the MIDI protocol.
This is a bug in Bitwig.

And changing this setting might introduce regressions in other programs
that rely on the size of the raw MIDI data.

> +        vmidi->parser->nostat = 1;
>      vmidi->seq_mode = rdev->seq_mode;

The patch formatting is still broken.

And please read Documentation/SubmittingPatches,


Regards,
Clemens

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH]: snd_seq_virmidi.c do not use running status for virmidi raw input
  2014-05-07 20:41 ` Clemens Ladisch
@ 2014-05-08  6:00   ` Ralf Beck
  2014-05-08 20:08     ` Clemens Ladisch
  0 siblings, 1 reply; 4+ messages in thread
From: Ralf Beck @ 2014-05-08  6:00 UTC (permalink / raw)
  To: Clemens Ladisch, alsa-devel

Am 07.05.2014 22:41, schrieb Clemens Ladisch:
> Ralf Beck wrote:
>> Rationale: Not every rawmidi alsa client (e.q. Bitwig) support 
>> running status on input. 
> Why does Bitwig use RawMIDI when it is only interested in the events? 
Its a closed source application. I'm not the author, so cannot change 
the application,
but i can change the virmidi code.
> Anyway, running status is part of the MIDI protocol. This is a bug in 
> Bitwig. 
I agree, but see above. I can't change Bitwig.

> And changing this setting might introduce regressions in other 
> programs that rely on the size of the raw MIDI data.
Being able to receive MIDI data with running status disabled is 
mandatory for a midi client.
So any client relying on running status always on would be buggy.

Would the patch be acceptable, if i make switching on/off of running 
status selectable by a module parameter
with the current behaviour being the default?
>> + vmidi->parser->nostat = 1; vmidi->seq_mode = rdev->seq_mode; 
> The patch formatting is still broken. 
I'll look into that.
> And please read Documentation/SubmittingPatches, I'l look into that.

I'l look into that.

Regards
Ralf
>
> Regards, Ralf

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH]: snd_seq_virmidi.c do not use running status for virmidi raw input
  2014-05-08  6:00   ` Ralf Beck
@ 2014-05-08 20:08     ` Clemens Ladisch
  0 siblings, 0 replies; 4+ messages in thread
From: Clemens Ladisch @ 2014-05-08 20:08 UTC (permalink / raw)
  To: ralfbeck1, alsa-devel

Ralf Beck wrote:
> Am 07.05.2014 22:41, schrieb Clemens Ladisch:
>> This is a bug in Bitwig.
>
> I agree, but see above. I can't change Bitwig.

You can submit a bug report.

>> And changing this setting might introduce regressions in other programs that rely on the size of the raw MIDI data.
>
> Being able to receive MIDI data with running status disabled is mandatory for a midi client.
> So any client relying on running status always on would be buggy.

As buggy as Bitwig?

If there is a conflict between two API behaviours, avoiding regressions wins.
Bitwig has no excuse; it has been buggy from the beginning.

> Would the patch be acceptable, if i make switching on/off of running status selectable by a module parameter
> with the current behaviour being the default?

A module parameter would be worse.


Regards,
Clemens

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-05-08 20:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-07 17:44 [PATCH]: snd_seq_virmidi.c do not use running status for virmidi raw input Ralf Beck
2014-05-07 20:41 ` Clemens Ladisch
2014-05-08  6:00   ` Ralf Beck
2014-05-08 20:08     ` Clemens Ladisch

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.