Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp483235imm; Mon, 2 Jul 2018 15:30:53 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJms8KklnhfPxvhXmPDdaAVZpIB2zLrs9VNRYzdiOqnDuClP0jSpMK/2iEK9CYBBE8cha+6 X-Received: by 2002:a63:24f:: with SMTP id 76-v6mr23780065pgc.252.1530570652975; Mon, 02 Jul 2018 15:30:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530570652; cv=none; d=google.com; s=arc-20160816; b=wTT39fWNLQqPsW1cr6fhVnZ2kmPn0gQ47IBUcWxpMQpytCQE1JKgTiu1HoQaohBjVS Yx+juBu4PDLPov+BhDw6ffg7kDuTZRudu3LPZteILjabOpPMOaT/u2H2IbMXIekQTh52 c8bgheRNxZgp56AgTNGuIzZ8FK4CZbw0eMiDYn08d3r2D+zY9hqyzmE2w9NGycHlWg9J JBq3PQ1mYm1gO2WOIjwshkoey7AEK6VGKu+gttYIoE0xMZz9q8ddaboUgxcjrKP/AS4R m4ciVy9/0pp03DRYaUH7foQxSMEewpOCM1iHzxIAqjzopvA5T8uHCYB6CDLo0b5MtkBA WxnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=RqjZOyp2ONmBh0Fd62j4s+uDWZ6iaXSQnWLWn03KGmA=; b=M10qN2H+rznuLPg6C3tAQs7ALpPzTYsmCDbPq7XZBaPWDwB5sxRLDELCOEWzRW3+uY i49O7kwaKaYaigfmPUzRYiLIPae2Pr2Zmk8VmHRu78D8QnJd/snNOeoakZMtCic7E1ks pGssyQICLGcGguXX9Vq64shkoY8szOnBdGnYYnGHZdSPBluShPvyMRri4kUjznCqNJff UnSblHSFAqYVX0HzbZp2mE0gjCaqKF+hoDYNhhpxaHh1m1utPQ3MXhtURqOiP9gvzg2h wdpUhTenYebwHJurMl54CmXY5r8ZdCbMt9It5imlBxPuNyYAYeD52G8Mfzc9gPaP92jI kcfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="apmLU/bh"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1-v6si16963892pfb.32.2018.07.02.15.30.38; Mon, 02 Jul 2018 15:30:52 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="apmLU/bh"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932198AbeGBW35 (ORCPT + 99 others); Mon, 2 Jul 2018 18:29:57 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:42775 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753609AbeGBW34 (ORCPT ); Mon, 2 Jul 2018 18:29:56 -0400 Received: by mail-wr0-f193.google.com with SMTP id p1-v6so16991184wrs.9; Mon, 02 Jul 2018 15:29:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=RqjZOyp2ONmBh0Fd62j4s+uDWZ6iaXSQnWLWn03KGmA=; b=apmLU/bhdUKpCQOMwVw7sR6WMLNI6vBfzQkgSbdpKOdjawrSFBo7P63+1BD/klbmg/ OC8mcdlH9HCSpJ/qWX6Om+POGHif11FCEoFDoA70/F+Vje8CSFScHr1PGGoYpqvs6GWC /T10g41Mfh0xLeIUHbR3rvQftgiaUosGwYUghUS1b1uHXG0FQkx3juyYn2hZWNXm7EHg 1+Mj2rQU3JWiZK1ERpPWUgIwP5OPlz1klBchotEOXb9uSx7yFAWi+63ggszyYHABofI4 4u5Ie9el+j0EqZnFK5gNvOgR4smn5hdqMAGjfevXfW3fNbpSnpZaQ1FhqQ/YyCNjpqez iyoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=RqjZOyp2ONmBh0Fd62j4s+uDWZ6iaXSQnWLWn03KGmA=; b=j+9Z77MfD2Pms+7UEl8AdnVhE5YORnGojRfwvKtp2XrDJK+gaUQfTcIaF69M2ncjU4 MnDfBUSJ+7/vFCCLN55CgI0fggKdnm4BNvHtv6IDn92hbh2wB/EvyYgB6t3jYEdF35fe tCBBSTrqTGL5AoqekfbK00uCrmopBJI6/gcyNuy2TU7cTyVqJ+weZ4uXgmRIY7fR/Gv8 1WjygBDmpuaIssDld2KsqaW0y9GnXccm+cGHkv7/csANtUjsBB4eROmPGGT0t67HmOx2 m5cVtXXhdGOo6pDp0GOrnnKTwtS2NHTTyKJyYetwk9pMDu2GWjWeDRiqvL0viC/5RJBX N1PQ== X-Gm-Message-State: APt69E2rkRlbq37le5qAY8D6fM9JruX9aGTh99BVJGdqCwL682hXImw8 v5Gx3Kb11dPPVwtwtst101OolMtNEjaq6wzZX7s= X-Received: by 2002:adf:e9c1:: with SMTP id l1-v6mr7660335wrn.14.1530570594798; Mon, 02 Jul 2018 15:29:54 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:adf:dcce:0:0:0:0:0 with HTTP; Mon, 2 Jul 2018 15:29:54 -0700 (PDT) In-Reply-To: <20180702162436.GA3496@vmlxhi-102.adit-jv.com> References: <2333fe05-da2e-e6f6-931a-16fce2980f17@jusst.de> <20180702162436.GA3496@vmlxhi-102.adit-jv.com> From: Ruslan Bilovol Date: Tue, 3 Jul 2018 01:29:54 +0300 Message-ID: Subject: Re: [PATCHv2 3/3] usb: gadget: f_uac*: Support multiple sampling rates To: Eugeniu Rosca Cc: Julian Scheel , Eugeniu Rosca , Felipe Balbi , Felipe Balbi , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Takashi Iwai Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi guys, On Mon, Jul 2, 2018 at 7:30 PM, Eugeniu Rosca wrote: > Hi Julian, > > [CC:Takashi, since we are discussing sound-related parts of USB] > > On Mon, Jul 02, 2018 at 04:07:19PM +0200, Julian Scheel wrote: >> Hi Eugeniu, >> >> On 30.06.2018 20:16, Eugeniu Rosca wrote: >> > Would it be possible to revive the uac2 multiple sampling rate >> > patch-set [1] by rebasing it onto the most recent kernel? If you >> > don't have time for this, I could help you. >> >> I have this on my todo-list for a while now... In fact I fixed the build >> errors reported by the robot last year, but didn't had the time to >> verify all of it and push again. >> Still, I'd be happy to get this merged, so I'll try to check the state >> of this within the next days and either post to the list or get back to >> you if more work needs to be done. > > We've been living with an internally developed uac2 multiple rate > support since June 2015, initially written on top of v3.14. Due to > significant refactoring of uac2 driver brought by v4.13 commit [1], I > went through the comparison between the in-house implementation (which > no more applied cleanly to post-[1] vanilla) and your proposal from [2]. > When Julian posted his patches, I've been working on UAC3 gadget implementation which I posted later [1]. While I originally tried to make UAC3 function to have same configfs files as UAC1/2, now, preparing UAC3 gadget patch I see it doesn't fit this approach, and patch "usb: gadget: f_uac*: Reduce code duplication" isn't applicable for UAC3 case. Especially for channels configuration which in new spec can be done only through clusters descriptions, which makes configfs interface more complicated and not so straightforward as UAC1/2 have. I didn't finish my UAC3 gadget patch v2 yet, but if you can try to avoid adding patch "Reduce code duplication" or wait for a few weeks, when I'll post UAC3 patches, it would be great; so we will be able to take into account new spec as well. [1]: https://lkml.org/lkml/2017/11/6/1514 Thanks, Ruslan