From patchwork Mon Jan 18 08:46:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 12026775 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 81B9FC433E0 for ; Mon, 18 Jan 2021 08:48:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 35E3421D7A for ; Mon, 18 Jan 2021 08:48:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387800AbhARIr5 (ORCPT ); Mon, 18 Jan 2021 03:47:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387750AbhARIrn (ORCPT ); Mon, 18 Jan 2021 03:47:43 -0500 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22F6DC061574 for ; Mon, 18 Jan 2021 00:47:03 -0800 (PST) Received: by mail-wr1-x42a.google.com with SMTP id v15so11938467wrx.4 for ; Mon, 18 Jan 2021 00:47:03 -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=+UUgEPXEmfwW21zan6h2nz/5V5Oq0e9V8hYSvH8Oa/8=; b=YS95PRrGzaLyXZ+zlY6FP6GxzPoMfD7ld7GD4yHFWlfKtC86vUyZFogJdZWO8GloqH ZaraiQRLUarG9P/92GBE8hl6eOsnwHG5WsKNdeY6c/KtlJxGvvNGgB9WPTJeRRO/Z3Be kPjrPGUO6LWHcDVnf9AVLjZ7pq9IIckfzD8XC9Z2Dv2WhNCjvNN3qnbPcx/Bd307kYDK 1MKqHEkkvtSDyoPX4NFAbOAsmrYTt/GlDvE+zaMPCayxlSAQgf06NCsjdyaS8+n4wpp0 w3FYURCP0EkUS3/pDK6BbcCCTrnR1lUYeCMazaEO023t0gc4eU/fhauEKvO3iN1/jaV0 F4Zw== 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=+UUgEPXEmfwW21zan6h2nz/5V5Oq0e9V8hYSvH8Oa/8=; b=jLYXEe/05X3VJFWdRktIQtymHTonmXFcq3n+pVBUfZ63VsDhSrKQuaBzOZ6ayVm3tm u4fEeh8ywT23xNdnIHdR78qOsrJ/rAi7pvLUTZLsJRy4nJbRoitsPcQ2zlAMh2Yrexrk 9NM+5o4y1rOWWHJPPEFhbywlSR4GcdQC3EIFnh2+1vbxRGCkeGz/+QUVtPwgw4EsCgek Gr+zEs45sE3HnJulmALwwxcUuzKo8WwzRkRk1upqDZPdl0nAdofudGGie77/lv8cMuFj b0xWBnSXgxpv/UbBKBSlAEQzRerJ0L+L3+FgJ2CBR81nn8KLROuKT/zbTDHD/fOAUkgt B2qQ== X-Gm-Message-State: AOAM5307aG2cQlfSWExo4uGtkbW5MxUI2NI05fz3Dm2gVrGcMiKPfN4d cjRfG9TCe1FnOKt5VBo2RTQhnQ== X-Google-Smtp-Source: ABdhPJy162AzQgvDZLFRhp0ZSucGQDuDLkT0zoPQTBMXnmb9/lOt52l/1wwvxqUeLy1T7PtxqJsWfA== X-Received: by 2002:a5d:457a:: with SMTP id a26mr25143180wrc.53.1610959621930; Mon, 18 Jan 2021 00:47:01 -0800 (PST) Received: from starbuck.lan (82-65-169-74.subs.proxad.net. [82.65.169.74]) by smtp.googlemail.com with ESMTPSA id y63sm26224518wmd.21.2021.01.18.00.47.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jan 2021 00:47:01 -0800 (PST) From: Jerome Brunet To: Felipe Balbi , Greg Kroah-Hartman Cc: Jerome Brunet , Ruslan Bilovol , Jack Pham , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/4] usb: gadget: audio fixes and clean ups Date: Mon, 18 Jan 2021 09:46:38 +0100 Message-Id: <20210118084642.322510-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-Patchwork-Bot: notify Precedence: bulk List-ID: X-Mailing-List: linux-usb@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. Changes since v2: [3] * Slightly amend comment on dequeue error as requested by Felipe * Drop applied patch Changes since v1: [1] * Jack's patch added to the series (no more deps) * Warning [2] on Patch 3 fixed [1]: https://lore.kernel.org/r/20201221173531.215169-1-jbrunet@baylibre.com [2]: https://lore.kernel.org/r/202012291638.QiDQi3Gs-lkp@intel.com [3]: https://lore.kernel.org/r/20210106133652.512178-1-jbrunet@baylibre.com Jack Pham (1): usb: gadget: u_audio: Free requests only after callback Jerome Brunet (3): 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/u_audio.c | 135 ++++++++++++-------------- 1 file changed, 62 insertions(+), 73 deletions(-)