From patchwork Tue Jan 22 13:16:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Takashi Sakamoto X-Patchwork-Id: 10775471 Return-Path: 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 08ED4139A for ; Tue, 22 Jan 2019 13:17:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E93F92A053 for ; Tue, 22 Jan 2019 13:17:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DD4892A071; Tue, 22 Jan 2019 13:17:25 +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,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]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 613982A053 for ; Tue, 22 Jan 2019 13:17:24 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 6306C2674A8; Tue, 22 Jan 2019 14:17:21 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 0BA392674AC; Tue, 22 Jan 2019 14:17:19 +0100 (CET) Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) by alsa0.perex.cz (Postfix) with ESMTP id 0406E26749F for ; Tue, 22 Jan 2019 14:17:14 +0100 (CET) Received: by mail-pl1-f193.google.com with SMTP id y1so11468094plp.9 for ; Tue, 22 Jan 2019 05:17:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fCXojpWmL+dfzh1yRMhdywJVL22PXBgq84dsfskBwVc=; b=QJGs0uyR42iPcPBtU4Z45xMS1+dI/Pqcs+XuuCGHEWdolqIVZPj3dLcsBg/Z0C41eg Bkf+12+HusfA0GE1x3A71resjehu93axRMYR+u/auFv4BReVfo0WD5pnTaSxqu7TxmL6 sjDZj4m51QPgwg82bKGx9artPmV/R/EMAQ3ckAZN8rBc09tSXazPSmsuGOFDPfYk87UP HxXFZBabwHr4YyoDl6g50fv3YZly6eGJNpUWwCBdlSWj45nZ01IG6QRV3+bzzu13SJd3 zXPempHOnLoZRz48N7k6a/p/1yUDozCkRRID87C98Jj0VCcYglxpU1uMT3GWIbVfa6hI AyzQ== X-Gm-Message-State: AJcUukfPBuwILvNCx8sh6TRFyR/NO0ZiGX+oXnFROdmhGDO3E+j4YCV+ gPlIgvSZ4WpxOB/yr8EocOo= X-Google-Smtp-Source: ALg8bN5UnEmLa1FutJU2CLhz2rw1xhw/3hkjDd6nfvWFEUN1TLc/wIQhFbE1KKOJlsxXArsWjKzEKQ== X-Received: by 2002:a17:902:a6:: with SMTP id a35mr34312797pla.201.1548163033166; Tue, 22 Jan 2019 05:17:13 -0800 (PST) Received: from localhost.localdomain ([2405:6580:9660:3200:1949:39f0:8232:584a]) by smtp.gmail.com with ESMTPSA id u69sm26969569pfj.116.2019.01.22.05.17.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Jan 2019 05:17:12 -0800 (PST) From: Takashi Sakamoto To: clemens@ladisch.de, tiwai@suse.de Date: Tue, 22 Jan 2019 22:16:59 +0900 Message-Id: <20190122131705.23213-1-o-takashi@sakamocchi.jp> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Cc: alsa-devel@alsa-project.org, ffado-devel@lists.sourceforge.net Subject: [alsa-devel] [PATCH 0/6] ALSA: fireface: support MIDI functionality of Fireface UCX X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, This patchset is a supplement of my previous one and to complete support for Fireface UCX: [alsa-devel] [PATCH 0/9] ALSA: fireface: add support for Fireface UCX http://mailman.alsa-project.org/pipermail/alsa-devel/2019-January/144465.html The mechanism to use MIDi functionality of Fireface UCX is different from the other supported devices; Fireface 800 and Fireface 400. This patchset extends abstraction layer of hardware specification and communication protocol. Unfortunately, a bitflag to decide lower part of address to transfer asynchronous transaction for MIDI message is in option register which has the other options. This driver expects userspace applications to configure the option as expected. In detail please refer to third patch. For testers, a remote branch is available to backport a series of patches to Linux kernel v4.17 or later: https://github.com/takaswie/snd-firewire-improve/tree/topic/ff-ucx-midi A userspace tool to configure addressed register is available in another remote branch for hinawa-utils: https://github.com/takaswie/hinawa-utils/tree/topic/ff-ucx As I noted in previous patchset, this work is based on my packet analysis from rent device for a short term (2 weeks). I'm happy to get your response till next weekend. Regards Takashi Sakamoto (6): ALSA: fireface: change prototype of handler for async transaction with MIDI messages ALSA: fireface: add model-dependent parameter for address range to receive async transaction ALSA: fireface: support tx MIDI functionality of Fireface UCX ALSA: fireface: add model-dependent parameter for address to receive async transaction for MIDI messages ALSA: fireface: add protocol-specific operation to fill transaction buffer with MIDI messages ALSA: fireface: support rx MIDI functionality for Fireface UCX sound/firewire/fireface/ff-midi.c | 2 +- sound/firewire/fireface/ff-protocol-former.c | 29 +++- sound/firewire/fireface/ff-protocol-latter.c | 139 +++++++++++++++++++ sound/firewire/fireface/ff-transaction.c | 44 +++--- sound/firewire/fireface/ff.c | 31 +++-- sound/firewire/fireface/ff.h | 10 +- 6 files changed, 210 insertions(+), 45 deletions(-)