Message ID | 20190707120759.16371-3-o-takashi@sakamocchi.jp (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <alsa-devel-bounces@alsa-project.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8C751112C for <patchwork-alsa-devel@patchwork.kernel.org>; Sun, 7 Jul 2019 12:10:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6A4132012F for <patchwork-alsa-devel@patchwork.kernel.org>; Sun, 7 Jul 2019 12:10:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5A28521BED; Sun, 7 Jul 2019 12:10:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 95E842012F for <patchwork-alsa-devel@patchwork.kernel.org>; Sun, 7 Jul 2019 12:10:48 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 2596E1684; Sun, 7 Jul 2019 14:09:56 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 2596E1684 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1562501446; bh=X67bm1Rs1jV2t9gKM9OigCwFr6wXLXGNq0AFH5BkIzs=; h=From:To:Date:In-Reply-To:References:Cc:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=m8xBob6dCOwP9ywpuqetIg/PqY+VGWC2rgvDfeXbZdtvT19SOLzQQtIvDGCppgxjc ESuGpbK73zL/5Vn11BrrdjE4+1PvfbD8uVliY0kmveQhmYMjQHNfcv3AYWKVrNpcoD O/hzkIL+9IjGma2zByxV8Av4cy+85pNog51lm+cc= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 01347F800E6; Sun, 7 Jul 2019 14:08:17 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 84F32F80213; Sun, 7 Jul 2019 14:08:13 +0200 (CEST) Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id EB4C2F80212 for <alsa-devel@alsa-project.org>; Sun, 7 Jul 2019 14:08:09 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz EB4C2F80212 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=sakamocchi.jp header.i=@sakamocchi.jp header.b="etzZjgCc"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="tl0SrakQ" Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id C39CB423; Sun, 7 Jul 2019 08:08:07 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 07 Jul 2019 08:08:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sakamocchi.jp; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm2; bh=5xAFGf5x+J2/x 2IdTBF9OdBnxOjGZVSya2Z1caroaIc=; b=etzZjgCc7iJgrM/bwoROhspjz3bgn 4ajlmvVae2T6ipY0TI/CakuBsRvtRvIGaNWDI8kFRtAYXS6qMl72YOtUan4hMSWE 4o88bZAlMDe4q3S+l21Mj7CYAQBxwinRZquaEdVR+YYi8TYmRl0pcPYPJ5bTmQaS IdMSM2byWTi5FCefZ4kAox4cWdaQ24u1trU6iq+H+rn+uuSxhhI9BVmN4/PqcMX9 HgOHMWVyPArwPjPQag1n1Z1vL+ovP9OFMJL/YXkSl6DNTTgimB1Te8QzUiIBAqdo X0B35CPFT3OuEKpuwFf0nk6cmQiCbMPsQ9voEHoDfygKLC7D6Dz3ZjNSQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=5xAFGf5x+J2/x2IdTBF9OdBnxOjGZVSya2Z1caroaIc=; b=tl0SrakQ OjvIipY18Kb6X9nZIdrZrUkbIzDjT0EzIS2ZMCsju3KAaRtsXGs91lGDT1rP2dhv Ks1XKISlMB6vges28v+ya5wSr2kbqTu129dEloTNNxfLVWbT6Ek8fBVBCjYDgQDP X9sZJn98LknNLSG+FUDJzqxarKwt5kvsj4TUTPwiBs3F31nU4Oisgf2NSdUYMK2w hr7oyB/e/b3QsAQmVP09wW0+v0MOrW/ksdYo/IbZ7YL/fnAhZ9C1X7MkglkfXmwU GMppLs5QD+huj3GPTrJJW7NEaQNu2DZJTyA/PCwal78iScQOcnbcBOPJL5C7aqLz B/NfcYEw48XyFg== X-ME-Sender: <xms:p-AhXZgm3ESdQD9puru4eGaI-CspbDTBYM8xEacosGQFN8Z1YAHx9Q> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrfeekgdehvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtkeertd ertddtnecuhfhrohhmpefvrghkrghshhhiucfurghkrghmohhtohcuoehoqdhtrghkrghs hhhisehsrghkrghmohgttghhihdrjhhpqeenucfkphepudegrdefrdejhedrudekudenuc frrghrrghmpehmrghilhhfrhhomhepohdqthgrkhgrshhhihesshgrkhgrmhhotggthhhi rdhjphenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: <xmx:p-AhXad_GGTY8DIOptBsb4y9A6F2joHWN6SS-fgZwPCuhsFx1rzFDQ> <xmx:p-AhXQWv8CsSlIo27i7lBJHGs1r6kNpTnsqMsmbFGqlQzrP9qnq98Q> <xmx:p-AhXUwfql4jFnvV91xUQWTt4VGZtUu7Dk4TX2YQnhNEEPGTbjo7Jg> <xmx:p-AhXc54LFuYnpsuFXAKtAGynUD8MJUnL3ZPKZL8yHRys7jsyibGlw> Received: from workstation.flets-east.jp (ae075181.dynamic.ppp.asahi-net.or.jp [14.3.75.181]) by mail.messagingengine.com (Postfix) with ESMTPA id E423F80059; Sun, 7 Jul 2019 08:08:05 -0400 (EDT) From: Takashi Sakamoto <o-takashi@sakamocchi.jp> To: clemens@ladisch.de, tiwai@suse.de Date: Sun, 7 Jul 2019 21:07:54 +0900 Message-Id: <20190707120759.16371-3-o-takashi@sakamocchi.jp> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190707120759.16371-1-o-takashi@sakamocchi.jp> References: <20190707120759.16371-1-o-takashi@sakamocchi.jp> MIME-Version: 1.0 Cc: alsa-devel@alsa-project.org Subject: [alsa-devel] [PATCH 2/7] ALSA: firewire-lib/fireface: fix initial value of data block counter for IR context with CIP_NO_HEADER X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" <alsa-devel.alsa-project.org> List-Unsubscribe: <https://mailman.alsa-project.org/mailman/options/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=unsubscribe> List-Archive: <http://mailman.alsa-project.org/pipermail/alsa-devel/> List-Post: <mailto:alsa-devel@alsa-project.org> List-Help: <mailto:alsa-devel-request@alsa-project.org?subject=help> List-Subscribe: <https://mailman.alsa-project.org/mailman/listinfo/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" <alsa-devel-bounces@alsa-project.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
ALSA: firewire-lib: some fixes for tracepoints events
|
expand
|
diff --git a/sound/firewire/amdtp-stream.c b/sound/firewire/amdtp-stream.c index 6c9f4d026505..c8d77bb05798 100644 --- a/sound/firewire/amdtp-stream.c +++ b/sound/firewire/amdtp-stream.c @@ -646,8 +646,12 @@ static int parse_ir_ctx_header(struct amdtp_stream *s, unsigned int cycle, err = 0; *data_blocks = *payload_length / sizeof(__be32) / s->data_block_quadlets; - *dbc = s->data_block_counter; *syt = 0; + + if (s->data_block_counter != UINT_MAX) + *dbc = s->data_block_counter; + else + *dbc = 0; } if (err >= 0 && s->flags & CIP_DBC_IS_END_EVENT)
For IR context, ALSA IEC 61883-1/6 engine uses initial value of data block counter as UINT_MAX, to detect first isochronous packet in the middle of packet streaming. At present, when CIP_NO_HEADER is used (i.e. for ALSA fireface driver), the initial value is used for tracepoints event. 0x00 should be for the event when the initial value is UINT_MAX because isochronous packets with CIP_NO_HEADER option has no field for data block count. This commit fixes the bug. Fixes: 76864868dbab ("ALSA: firewire-lib: cache next data_block_counter after probing tracepoints event for IR context") Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> --- sound/firewire/amdtp-stream.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)