Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp243428pxb; Wed, 24 Feb 2021 00:26:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJx+E1RemzfOqaZVfGzX/Mi4p6En6LfSf6DNxplj+SagjUO1sOE0SYJIUUrvxli+KsToKRJA X-Received: by 2002:a17:906:943:: with SMTP id j3mr12249684ejd.501.1614155182939; Wed, 24 Feb 2021 00:26:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614155182; cv=none; d=google.com; s=arc-20160816; b=yv0eeAVZZhMNC+9c3YGIPG9AAD1deN0MEHXipFX6b1CkbxbhLDdgWS/p8Oj/oUAI7C wOoLx+aoBmHiIsLv38z5tvqaLLYqRJtaKeFFPGmMX0Nxoo9G6R8towDM0mZnL8gxqj7z U+R+drzb9f67JiIi0rYNyFAJ7HsCavxpvnCbx7bIOgQWcmB6bydMTCo3NvHb/BFnuWQ/ R9ME6jaQVAHOMEYHGzYuMDeRJZP0uyjQVpMoi6oBjmHZNdKLj/D8CJxU7dOs5ysiikvr rME6XF4/hrmK4Vj4wjodlQZEjhFVYPPvh5ZnyTw40MZ87ul0+U9GQKbFvmCpgtZXUjUz mojA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date; bh=V1fPY5EpZKB9ceHR/RPop48aSBBSVdt8+rTQUE3aw6g=; b=jruryQQzzpQVIjZShWJHXNjx8wPxFk0ybpXWgKw8aTJ6DNOtpbss9t7ANZQ6W/vKNS ZriPIy4Chb3RCj68dn/OPrA0MBlVeM9vFjUIxsKbWy5xTOcRiYdpicxmBvTg5w7UxcIU DkzqurgYLvXErnqHGp2J2582ZM4rVii1ue9xdcY75A+/VwhMKRhw7aq/exfWcT4UemDt zgG54BzR9/rlpC5Kav5rsI8tpmOMh6vdCRGq99vRTh76d6Z/zPw0hd6JQdR26ek1iSds g+rf17T2e4dCfVVQ4Ez0RCpnRbYM0LFAg8F7c94X1z5CKJbM7ga/tGg2DIQp/PqE0QTd Osxg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l20si980290eje.712.2021.02.24.00.25.58; Wed, 24 Feb 2021 00:26:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233954AbhBXH7v (ORCPT + 99 others); Wed, 24 Feb 2021 02:59:51 -0500 Received: from mx2.suse.de ([195.135.220.15]:41012 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233912AbhBXH6N (ORCPT ); Wed, 24 Feb 2021 02:58:13 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 267D1AD2B; Wed, 24 Feb 2021 07:57:29 +0000 (UTC) Date: Wed, 24 Feb 2021 08:57:28 +0100 Message-ID: From: Takashi Iwai To: George Harker Cc: alsa-devel@alsa-project.org, Clemens Ladisch , Jaroslav Kysela , Takashi Iwai , linux-kernel@vger.kernel.org Subject: Re: [PATCH] sound/usb generate midi streaming substream names from jack names In-Reply-To: <20210221094333.30499-1-george@george-graphics.co.uk> References: <20210221094148.30447-1-george@george-graphics.co.uk> <20210221094333.30499-1-george@george-graphics.co.uk> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 21 Feb 2021 10:43:32 +0100, George Harker wrote: > > A number of devices have named substreams which are hard to remember / > decypher from MIDI n names. Eg. Korg puts a pass through on > one substream and iConnectivity devices name the connections. > > This makes it easier to connect to the correct device. Devices which > handle naming through quirks are unaffected by this change. > > Addresses TODO comment in sound/usb/midi.c > > Signed-off-by: George Harker The code changes look almost OK, but could you try the following? - Split the patch: one for rewriting with the structs in linux/usb/midi.h, another for adding the MIDI device name support - Try to avoid magic numbers: a few places should be replaced with sizeof() or ARRAY_SIZE(). thanks, Takashi