Received: by 10.213.65.68 with SMTP id h4csp1645996imn; Mon, 19 Mar 2018 09:32:19 -0700 (PDT) X-Google-Smtp-Source: AG47ELsUGbQqh1vzUR/FBx57QsgzZfiC3Pzr1ePUXVBuMmoU8K687ebGsVre6pcvXRwrNhzaYQjD X-Received: by 10.98.42.71 with SMTP id q68mr10579333pfq.155.1521477138974; Mon, 19 Mar 2018 09:32:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521477138; cv=none; d=google.com; s=arc-20160816; b=kp/rflCRfLVB1i3gxCYpUjtBY5NrDzsxCJnZptNkqGUORMJV8T7zpOxigyXxIO9Z7x aw+ppbqzVctQ+8tC7xD4ILDxO/1eaKDgIGO5Vz+OpZK9Rc20iGH+F+SFVcGetAlRtY7L XNzslL28p9fgzVOAqXbF9cVvO2GitNzGZqPy+3HQPxPKYuae4jhqQ7kK4LrmA2TGhz+Z fX/7EPv5NHhF4sPNPnM44m8BWT6WlnDKhVDN7EHw3EnF33hbmsSFG2Lc8OoC9W7+at+0 MhiM1UcMcm2+p1jxtdLxg3YTULC5D37VI+HBINjYjzYRMIq4YRnnZNIgI0D6JMzTiQsq BNBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date :arc-authentication-results; bh=grNLNVy21OfrgJreHIVymUzDqo3J0wEjlW+jbppxqdg=; b=RPJ+IaEc2QAEZf5wnJhzSphYDg1qw84GdDHXF+SI+K7X91auahWYTvILjjmYvcDWuE REQrPp2+voTKtYRnCQdjQWKOMYOZX/RG2mo7U075u+1/UUZsTufiFMQucXOTMpplUZDX AsxiZSNuhBn7ZODiwhSz2SkgHgbOSN6pQO9c4YiT0wE09fa2JfKy4C/Ou+bp1vgsQ//f pfrM6Ob000PbeWJtWAI5N33GxXq00rqrqLxeV4Uhfd10q2e/zUu/S+jdskHtwAQm2WqT yo460JH2v85XQmOuMuAotUxLvYxJvkeJzdll5xMfRdsPb1fnx1cy/AaPm68MKyZXIWaY k1Mg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p33-v6si276169pld.106.2018.03.19.09.32.04; Mon, 19 Mar 2018 09:32:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935579AbeCSQ3J (ORCPT + 99 others); Mon, 19 Mar 2018 12:29:09 -0400 Received: from mx2.suse.de ([195.135.220.15]:47897 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935570AbeCSQ25 (ORCPT ); Mon, 19 Mar 2018 12:28:57 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 9CCC3AEB0; Mon, 19 Mar 2018 16:28:56 +0000 (UTC) Date: Mon, 19 Mar 2018 17:28:56 +0100 Message-ID: From: Takashi Iwai To: "Ruslan Bilovol" Cc: , "Jorge" , "Pierre-Louis Bossart" , "Greg Kroah-Hartman" , Subject: Re: [PATCH v2 2/2] ALSA: usb: initial USB Audio Device Class 3.0 support In-Reply-To: <1521423963-24677-3-git-send-email-ruslan.bilovol@gmail.com> References: <1521423963-24677-1-git-send-email-ruslan.bilovol@gmail.com> <1521423963-24677-3-git-send-email-ruslan.bilovol@gmail.com> 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 19 Mar 2018 02:46:03 +0100, Ruslan Bilovol wrote: > > Recently released USB Audio Class 3.0 specification > introduces many significant changes comparing to > previous versions, like > - new Power Domains, support for LPM/L1 > - new Cluster descriptor > - changed layout of all class-specific descriptors > - new High Capability descriptors > - New class-specific String descriptors > - new and removed units > - additional sources for interrupts > - removed Type II Audio Data Formats > - ... and many other things (check spec) > > It also provides backward compatibility through > multiple configurations, as well as requires > mandatory support for BADD (Basic Audio Device > Definition) on each ADC3.0 compliant device > > This patch adds initial support of UAC3 specification > that is enough for Generic I/O Profile (BAOF, BAIF) > device support from BADD document. > > Signed-off-by: Ruslan Bilovol Most code changes look fairly straightforward, and not breaking the UAC1/UAC2 stuff. So the stuff is good enough through a quick glance. I suppose it's better to merge via sound git tree. Greg, could you check include/linux/usb/* (and uapi) stuff and give an ack if it's OK? In anyway, I'll check the specs and compare with the definitions in this patch. And, just minor nitpicking regarding the code change: it's better to drop the parentheses in a line like below > + if ((protocol == UAC_VERSION_1) || (protocol == UAC_VERSION_2)) { that is, if (protocol == UAC_VERSION_1 || protocol == UAC_VERSION_2) { The indentation became so deep in some functions, and it's better to refactor, but this can be done later once after all implementations are finished. thanks, Takashi