[alsa-devel] [PATCH 2/3] fireface: add transaction support

Clemens Ladisch clemens at ladisch.de
Tue Dec 8 12:29:07 CET 2015


Takashi Sakamoto wrote:
> On Dec 08 2015 19:22, Clemens Ladisch wrote:
>> Takashi Sakamoto wrote:
>>> +		/* Calculate consume bytes. */
>>> +		consume = calculate_message_bytes(status);
>>> +		if (consume <= 0)
>>> +			return;
>>
>> As far as I can see, sending one of the "undefined" bytes can stop the
>> stream permanently.  Invalid bytes need to be acked to ignore/remove
>> them.
>
> Exactly. We should find better way to handle such messages. Do you have
> any good ideas?

Call snd_rawmidi_transmit_ack(, 1) and continue.


Regards,
Clemens


More information about the Alsa-devel mailing list