Patch "ALSA: firewire-lib: add a quirk of packet without valid EOH in CIP format" has been added to the 4.9-stable tree
This is a note to let you know that I've just added the patch titled
ALSA: firewire-lib: add a quirk of packet without valid EOH in CIP format
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
alsa-firewire-lib-add-a-quirk-of-packet-without-valid-eoh-in-cip-format.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Sun Mar 18 16:55:33 CET 2018
From: Takashi Sakamoto <[email protected]>
Date: Wed, 22 Mar 2017 21:30:27 +0900
Subject: ALSA: firewire-lib: add a quirk of packet without valid EOH in CIP format
From: Takashi Sakamoto <[email protected]>
[ Upstream commit 2128f78f75a36a34dfef0e127273c2f820c5c904 ]
In IEC 61883-1, when two quadlets CIP header is used, the most significant bit in second CIP header stands. However, packets from units with MOTU protocol version 3 have a quirk without this flag. Current packet streaming layer handles this as protocol error.
This commit adds a new enumeration constant for this quirk, to handle MOTU protocol version 3.
--- sound/firewire/amdtp-stream.c | 5 +++-- sound/firewire/amdtp-stream.h | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-)
sound/firewire/amdtp-stream.c +3 -2
@@ -471,8 +471,9 @@ static int handle_in_packet(struct amdtp* This module supports 'Two-quadlet CIP header with SYT field'. * For convenience, also check FMT field is AM824 or not. */ -if (((cip_header[0 ] &CIP_EOH_MASK ) ==CIP_EOH ) || - ((cip_header[1 ] &CIP_EOH_MASK ) !=CIP_EOH )) { +if ((((cip_header[0 ] &CIP_EOH_MASK ) ==CIP_EOH ) || + ((cip_header[1 ] &CIP_EOH_MASK ) !=CIP_EOH )) && + (!(s->flags &CIP_HEADER_WITHOUT_EOH ))) {dev_info_ratelimited (&s->unit->device,"Invalid CIP header for AMDTP: %08X:%08X\n" , cip_header[0 ], cip_header[1 ]);
sound/firewire/amdtp-stream.h +3 -0
@@ -29,6 +29,8 @@* @CIP_JUMBO_PAYLOAD: Only for in-stream. The number of data blocks in an * packet is larger than IEC 61883-6 defines. Current implementation * allows 5 times as large as IEC 61883-6 defines. +* @CIP_HEADER_WITHOUT_EOH: Only for in-stream. CIP Header doesn't include +* valid EOH. */ enum cip_flags {CIP_NONBLOCKING =0x00 ,
@@ -39,6 +41,7 @@ enum cip_flags {CIP_SKIP_DBC_ZERO_CHECK =0x10 ,CIP_EMPTY_HAS_WRONG_DBC =0x20 ,CIP_JUMBO_PAYLOAD =0x40 , + CIP_HEADER_WITHOUT_EOH = 0x80, };/**
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/alsa-firewire-digi00x-handle-all-midi-messages-on-streaming-packets.patch queue-4.9/alsa-firewire-digi00x-add-support-for-console-models-of-digi00x-series.patch queue-4.9/alsa-firewire-lib-add-a-quirk-of-packet-without-valid-eoh-in-cip-format.patch