Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4347660pxu; Mon, 21 Dec 2020 10:06:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJy0N+/6yiHfimCUUd3A2SpjrRlBEEtZkk7IhOVa4g6OrvXkOowB48HDWeqzzhBLTLm57+37 X-Received: by 2002:aa7:d916:: with SMTP id a22mr16853789edr.122.1608574013060; Mon, 21 Dec 2020 10:06:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608574013; cv=none; d=google.com; s=arc-20160816; b=byOGYlcajpY/0JDmsnDoE6euYvEatiJh9myCCP+BgnGcqXonqCkQX/gfFG5FBwYh98 mUAY26MjWkOEfdOzJNOKsokgFbEpuGluVMeNsvxClpvSCZ+DbLylXn30CV6NDRloY0Bw AZByjQEm280y6pjJoaAPHuex2heOcWss21LPZg8KbJqu2+cbIFXVK8Bmtq5pLJIZjKDE M234UGnifK6QEVWQBkvXi1oNQQwHvnEquXykk0P+TvU84o3Lp1nmguCnPL37SCnduRFj FLE2H0wBX4LyDZU+3E0cqxCh0NoTMkctlNFHLp4Ynkvk9K97YJDzbTVLhTvHNE5imqac A1Uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=6GOIuyVrU+RFGPTfL16iF1lbuFwHWSwNBXld0jU71tg=; b=QI3/Fo1VtkHuLfKZDE0uKK2xiIsWFc6tBdKkVObUrWZcoe6keJEUP1lOSxBgcprqpW XLOnHYi0NdFbrZnMR6MivojmYUg7yhGMzk3yZBo5MAU1wLZO0UxFkPSZo1P+pMZ6rDg8 NjtaWE4spAeEEITsDoanmKrku5/XYWJCNG+WBhPUWp+AYVCds5L2DuxOpVF6rQ66Pi5t 5eBloVqbE1rARDQoXfQw2TzYOd7YM1/jVGJFt32f6Huew6gFnBqvaiCYO6dBuq3a9mdM GpFu4Pzlj+r+QUIjtwNxZNEmswpBB/AVUM0T4cJeOstgtXpQ0iQ2aFo8Tk6lI3BwI8s8 fcGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=OuCyfDsL; 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 t10si10952553edq.447.2020.12.21.10.06.30; Mon, 21 Dec 2020 10:06:53 -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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=OuCyfDsL; 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 S1726281AbgLUSEj (ORCPT + 99 others); Mon, 21 Dec 2020 13:04:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725899AbgLUSEi (ORCPT ); Mon, 21 Dec 2020 13:04:38 -0500 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25F9CC0613D6 for ; Mon, 21 Dec 2020 10:03:58 -0800 (PST) Received: by mail-ej1-x62f.google.com with SMTP id b9so14738308ejy.0 for ; Mon, 21 Dec 2020 10:03:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6GOIuyVrU+RFGPTfL16iF1lbuFwHWSwNBXld0jU71tg=; b=OuCyfDsLA66E6tSeeNV5W3tIR6FpEBwwEByxbYdc99ny29D4QNuO0Ufm8iCqEuBuVL myXsOOxx+QJ1ZvZ0nwN8DBfGu/TFzcML6SAIJI3veH+uT+mmz4MXxTVGj8HLDw0FT0Mc nJi77ZQmqyc6e/DDY/SfAxeQFxnHZ1OdM4YttHhhqDEy52VIvv6h0ycyjYslxHRPcLPQ Ec1MLJdv16AI/0IWB9mPTM3TbxJCOKF9rcBDCPfuttNhI8K5xotFUnMuTEfHSZDNgbUd yVQ6ALlQYFriVjUN0puMieHWDP3H1T0rA3+JCxN89jBXvs20xpiyAWBaSv/tvNwAK+sJ MK3w== 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=6GOIuyVrU+RFGPTfL16iF1lbuFwHWSwNBXld0jU71tg=; b=jW8//nHHjVJIHPZIrvzll35lX3DW/jdMnv+MEGcapUaMByzFZyVBbFXqKuOtQB8+J+ ErzjAFLfW0hPXY61WQN5vOA/gzKNseH4lQk9Wc7DPoGGeJaf0NeWadn1Z9cSQuPLStvV WYApTADg9phKyIHNslL8hR55HGxGIYl0CSOPhtPDgt4JSSl/pjLdy+cBGFJzD+A6HMAF HKRZ6Y5OE0lYTTqz5Cwllqkihi/N8hNFkYLWs6mL6aZN9l0IeiNxCBbP8vmONbbKgzQa ot62wB4LT6sXxBgxqZu3l6oEIryaPYIVNAuE7QkOSkEE6iMdmguIqiX807HcvGY4lxF2 fcGQ== X-Gm-Message-State: AOAM530nsLqV6t3N/Xyk2US2Z2SYwtSGiItAkQSt0o/Ks5uHYSKFRKy/ LxHcSYDnTKwi9WzHCW3BUlOp8BBgs4EA9R8x X-Received: by 2002:a17:906:2755:: with SMTP id a21mr10777094ejd.374.1608572140837; Mon, 21 Dec 2020 09:35:40 -0800 (PST) Received: from starbuck.lan (82-65-169-74.subs.proxad.net. [82.65.169.74]) by smtp.googlemail.com with ESMTPSA id dd18sm9338408ejb.53.2020.12.21.09.35.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Dec 2020 09:35:40 -0800 (PST) From: Jerome Brunet To: Felipe Balbi , Greg Kroah-Hartman Cc: Jerome Brunet , Ruslan Bilovol , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/4] usb: gadget: audio fixes and clean ups Date: Mon, 21 Dec 2020 18:35:27 +0100 Message-Id: <20201221173531.215169-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset is a collection of fixes and clean ups found while working on the uac2 gadget. Details are provided in each change. The series depends on this fix [0] by Jack Pham to apply cleanly [0]: https://lore.kernel.org/linux-usb/20201029175949.6052-1-jackp@codeaurora.org/ Jerome Brunet (4): usb: gadget: f_uac2: reset wMaxPacketSize usb: gadget: u_audio: factorize ssize to alsa fmt conversion usb: gadget: u_audio: remove struct uac_req usb: gadget: u_audio: clean up locking drivers/usb/gadget/function/f_uac2.c | 69 ++++++++++++--- drivers/usb/gadget/function/u_audio.c | 122 +++++++++++--------------- 2 files changed, 105 insertions(+), 86 deletions(-) -- 2.29.2